Nightmare installing mcrypt

Issues related to software problems.
Post Reply
deoxymono
Posts: 1
Joined: 2011/06/10 11:17:00

Nightmare installing mcrypt

Post by deoxymono » 2011/06/10 11:21:26

Hi, I want to run magento on a VPS just purchased. However running the magento compatibility checks reveals 1 error which is:

"You are missing the mcrypt extension"

I've tried and tried to get mcrypt installed but to no avail :(

Server info: VPS server, Linux 2.6.18-028stab079.1, CentOS 5.6, Parallels Plesk 10.2.0, PHP 5.2.10, MySQL 5.0.77

N.B I'm a relative newbie with SSH and server administartion outside of Cpanel/WHM

OK after googling the 1st thing I came across was using yum to install mcrypt:

Steps I followed were:

1. Type "yum install mcrypt*". Say yes to the prompts.
2.Type "yum install mhash*". Say yes to the prompts.
3. Type "yum install php-mcrypt*". Say yes to the prompts.
4.Type "yum install php-mhash*". Say yes to the prompts.
5. Restart server

All steps seemed successful apart from step 1: "yum install mcrypt*"

Which gives me message 'No package mcrypt available'

So I decided to try installing it manually, I downloaded the mcrypt 2.6.4 files, unzipped and uploaded with WinSCP to a folder

named mcrypt in the root of my server. Then I:

1. cd to mcrypt directory
2. typed ./configure
3. It returns error 'no acceptable C compliler found in $PATH'

Ok after more googling it seems I need to install a compiler GCC seems to be what everyone uses.

So my next steps are:

1. yum install gcc
2. which returns another error: 'Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-

58.el5_6.3.x86_64 (updates)'

I'm not really sure what that means but I think it seems to be saying gcc needs an older or equal to version of kernel headers

2.2.1 but I have a newer version?

Well that is about as much as I know what to do, I'm completely stumped now and don't know how to move forward with this :( The

annoying thing is I know in Cpanel/WHM you can install mcrypt with a couple of clicks through WHM>easyapache. I wish plesk had

this feature.

Does anyone have any ideas how I can install mcrypt or fix the issues above so I can install gcc? I would be very grateful as I

feel like banging my head against a brick wall at the moment!

pjwelsh
Posts: 2632
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: Nightmare installing mcrypt

Post by pjwelsh » 2011/06/10 15:50:34

[url=http://wiki.centos.org/PackageManagement/SourceInstalls]Please don't compile from source[/url]. mcrypt is part of the libmcrypt rpm package and is (at least) [url=http://wiki.centos.org/AdditionalResources/Repositories]installable from the rpmforge repository[/url].

lystor
Posts: 187
Joined: 2008/09/10 15:46:12
Location: Ukraine, Donetsk

Re: Nightmare installing mcrypt

Post by lystor » 2011/06/11 18:33:21

[quote]
deoxymono wrote:
Does anyone have any ideas how I can install mcrypt or fix the issues above so I can install gcc? I would be very grateful as I
feel like banging my head against a brick wall at the moment![/quote]

Hi
[url=http://pkgs.org/package/php-mcrypt]php-mcrypt rpm[/url] is available on third-party EPEL, Utter Ramblings, CentALT, Les RPM de Remi and other third-party repos.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Nightmare installing mcrypt

Post by pschaff » 2011/06/13 14:46:18

[quote]
deoxymono wrote:
...
Server info: VPS server, Linux 2.6.18-028stab079.1, CentOS 5.6, Parallels Plesk 10.2.0, PHP 5.2.10, MySQL 5.0.77
...
1. yum install gcc
2. which returns another error: 'Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-

58.el5_6.3.x86_64 (updates)'
[/quote]

I thoroughly agree with the previous advice to avoid [url=http://wiki.centos.org/PackageManagement/SourceInstalls]Source Installs[/url] and use known repos; however, just for the record, your difficulties with gcc are likely due to the fact that your VPS is based on OpenVZ as can be seen from the kernel version, and despite what you may have been told is not really CentOS. Please see the following for more:
[url=http://wiki.centos.org/AdditionalResources/OtherVoices]Other Voices[/url]
[url=http://wiki.centos.org/AdditionalResources/OtherSpins]When CentOS Is Not CentOS[/url]
[url=http://wiki.centos.org/TipsAndTricks/BrokenVserver]Broken Virtual Server[/url]

rvegasna
Posts: 3
Joined: 2012/03/20 18:59:07

Re: Nightmare installing mcrypt

Post by rvegasna » 2012/03/20 22:44:30

Hi

I am a new guy, I don't know much about CentOS(5.6).

I 've my PHP5.3.3 installed on apache 2.2.

Now, I am trying to install mhash and mcrypt, But I am not Successful.

Can any one help on how to do a mhash and mcrypt installations.

I was getting this error when trying to yum install mcrypt

base | 1.1 kB 00:00
extras | 2.1 kB 00:00
updates | 1.9 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.1.6-15.el5.centos.1 set to be updated
--> Processing Dependency: php-api = 20041225 for package: php-mcrypt
--> Processing Dependency: php >= 5.1.6 for package: php-mcrypt
--> Running transaction check
---> Package php.x86_64 0:5.1.6-32.el5 set to be updated
--> Processing Dependency: php-cli = 5.1.6-32.el5 for package: php
---> Package php-common.x86_64 0:5.1.6-32.el5 set to be updated
--> Running transaction check
---> Package php-cli.x86_64 0:5.1.6-32.el5 set to be updated
--> Processing Conflict: php53-common conflicts php-common
--> Finished Dependency Resolution
php53-common-5.3.3-5.el5.x86_64 from installed has depsolving problems
--> php53-common conflicts with php-common
Error: php53-common conflicts with php-common
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest


Thanks in advance.

rvegasna
Posts: 3
Joined: 2012/03/20 18:59:07

Re: Nightmare installing mcrypt

Post by rvegasna » 2012/03/20 23:10:04

Hi All,

I am able to install mcrypt by downloading from here, but I am unable to find mhash.

[code]http://pkgs.org/centos-5-rhel-5/epel-x86_64/php53-mcrypt-5.3.3-1.el5.x86_64.rpm/download/[/code]

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Nightmare installing mcrypt

Post by pschaff » 2012/03/20 23:59:13

Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

After reading those links you should realize why you should not hijack threads as you have done. Please start a new Topic for your issue to get the attention you need, providing a link to this one if required for context.

Don't use obsolete/unsupported releases - 5.8 is the current CentOS-5 release. See the [url=http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.8]CentOS 5.8 Release Notes[/url] for details. By not updating you are implicitly accepting that you will live with numerous bugs and security issues (and associated known exploits) that have subsequently been fixed.

Post Reply