I installed php 5.3.8 from source on Ubuntu 10.10 and now i need mcrypt. I also installed mcrypt from source and restarted apache but still i am not able to see it in my php configuration. I understand i would need a mcrypt.so
in my php extensions directory. I have installed a lot of extensions and like xdebug and apc and dont want to go through the pain of installing them again.
Now how can i install mcrypt without re-installing php and passing mcrypt as a parameter to configure?
I installed php 5.3 and some modules using
yum install php53-{module-name}
But mcrypt did not work.
I searched like this:
yum list php* | grep mcry
The only package that came up was
php-mcrypt.x86-64 5.1.6-15.e15.centos.1 extras
I have the same exact problem with mhash. The results for php are even more confusing.
I know this is probably a dumb question, but any help would be appreciated. I am used to Ubuntu's simple "apt-get install" and everything works. CentOS seems to be a lot more detail oriented.
Thanks.
EDIT: Here's what I tried:
yum install php53-mcrypt
Result:
No package php53-mcrypt available
And trying this:
yum install php-mcrypt
Results in:
Error: php53-common conflicts with php-common
Because php-mcrypt tries to get php-common as a dependency (?) and I am trying to use php 5.3 rather than the default php 5.1 on CentOS 5.7.
I'm trying to install php-mcrypt on my Centos 6.0, 64 bit, php 5.3.3.
I'm using epel repo rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
, the last one.
But after I run yum install php-mcrypt
I'm getting an error
[root@CentOS-60-64-minimal ~]# yum install php-mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.kiewel-online.ch
* epel: mirror.fraunhofer.de
* extras: centos.kiewel-online.ch
* rpmforge: ftp-stud.fht-esslingen.de
* updates: centos.kiewel-online.ch
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.1.6-5.el5 will be installed
--> Processing Dependency: php-api = 20041225 for package: php-mcrypt-5.1.6-5.el5.x86_64
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php-mcrypt-5.1.6-5.el5.x 86_64
--> Running transaction check
---> Package libmcrypt.x86_64 0:2.5.7-5.el5 will be installed
---> Package php-mcrypt.x86_64 0:5.1.6-5.el5 will be installed
--> Processing Dependency: php-api = 20041225 for package: php-mcrypt-5.1.6-5.el5.x86_64
--> Finished Dependency Resolution
**Error:** Package: php-mcrypt-5.1.6-5.el5.x86_64 (epel)
**Requires: php-api = 20041225**
Installed: php-common-5.3.3-3.el6_1.3.x86_64 (@updates)
php-api = 20090626
Available: php-common-5.3.3-3.el6.x86_64 (base)
php-api = 20090626
You could try using --skip-broken to work around the problem
Why epel doesn't give last mcrypt for me? php-mcrypt-5.1.6-5.el5.x86_64 is not the latest version on the repo... What can I do?
I'm trying to install php-mcrypt on a CentOS 5.4 but while the extensions appears to be installed, there's nothing about it when I do a phpinfo().
For example, you can see below that php-mcrypt appears to be installed properly:
[root@... ~]# rpm -qi php-mcrypt | grep Version
Version : 5.1.6 Vendor: CentOS
[root@... ~]# rpm -qi libmcrypt | grep Version
Version : 2.5.8 Vendor: CentOS
I've tried uninstalling and re-installing it with no luck. When I do a phpinfo(), it lists "/etc/php.d/mcrypt.ini" in the "additional ini files parsed" section, but there's no mention of the mcrypt extension anywhere else. The mcrypt.ini file contains the single line "extension=mcrypt.so" (not commented out).
When I run php -v
I get the following:
PHP 5.2.6 (cli) (built: May 5 2008 10:32:59)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
There's no errors related to not being able to load the extension (my PHP version is 5.2.6 but if you see the php-mcrypt version above, it says "5.1.6" I'm not sure if that's incorrect of it's just a coincidence, but I would have expected an error when running php
if it the version of the extension was incorrect).
Obviously, I've restarted apache since installing mcrypt, but that doesn't make a difference either.
I can't think of anything else that I could be missing... does anybody have any ideas?
We have an RHEL5 server that I'm trying to install PHP-Mcrypt on and I'm stuck when I tried to run ./configure for mcrypt source files.
I was using this guide: http://atlantatechpro.com/howtos/howtoslinux/howtosmhashmcrypt
When I try to install (./configure) mcrypt, I get this
checking for libmcrypt - version >= 2.5.0... no
Could not run libmcrypt test program, checking why... The test program compiled, but did not run. This usually means that the run-time linker is not finding LIBMCRYPT or finding the wrong version of LIBMCRYPT. If it is not finding LIBMCRYPT, you'll need to set your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point to the installed location Also, make sure you have run ldconfig if that is required on your system
If you have an old version installed, it is best to remove it, although you may also be able to get things to work by modifying LD_LIBRARY_PATH
configure: error: *** libmcrypt was not found
I also made a file at /etc/ld.so.conf.d/libmcrypt.conf
with /usr/local/libmcrypt
in it and ran /sbin/ldconfig
I might have screwed things up by trying to reinstall libmcrypt without the configure arguments.
Any suggestions on what to do now?