This is a discussion on Installing mcrypt within the PHP General forums, part of the PHP Programming Forums category; I am installing mcrypt on a linux server. I first installed libmcrypt 2.5.7 and now am working on ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I am installing mcrypt on a linux server. I first installed libmcrypt 2.5.7 and now am working on mcrypt 2.6.4. When I do a ./configure for mcrypt 2.6.4, it gives me this error: checking for libmcrypt - version >= 2.5.0... *** 'libmcrypt-config --version' returned 2.5.7, but LIBMCRYPT (2.5.6) *** was found! If libmcrypt-config was correct, then it is best *** to remove the old version of LIBMCRYPT. You may also be able to fix the error *** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing *** /etc/ld.so.conf. Make sure you have run ldconfig if that is *** required on your system. *** If libmcrypt-config was wrong, set the environment variable LIBMCRYPT_CONFIG *** to point to the correct copy of libmcrypt-config, and remove the file config.cache *** before re-running configure configure: error: *** libmcrypt was not found There has only been one version of libmcrypt (new server), so I'm not sure why it thinks there is a 2.5.6 version on it. Where do I find the LD_LIBRARY_PATH enviroment variable to change it? Or is there another solution? Thanks! -Mike |
|
|||
|
Mike At Spy wrote:
> I am installing mcrypt on a linux server. I first installed libmcrypt 2.5.7 > and now am working on mcrypt 2.6.4. > > When I do a ./configure for mcrypt 2.6.4, it gives me this error: > > checking for libmcrypt - version >= 2.5.0... > *** 'libmcrypt-config --version' returned 2.5.7, but LIBMCRYPT (2.5.6) > *** was found! If libmcrypt-config was correct, then it is best > *** to remove the old version of LIBMCRYPT. You may also be able to fix the > error > *** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing > *** /etc/ld.so.conf. Make sure you have run ldconfig if that is > *** required on your system. > *** If libmcrypt-config was wrong, set the environment variable > LIBMCRYPT_CONFIG > *** to point to the correct copy of libmcrypt-config, and remove the file > config.cache > *** before re-running configure > configure: error: *** libmcrypt was not found > > There has only been one version of libmcrypt (new server), so I'm not sure > why it thinks there is a 2.5.6 version on it. > > Where do I find the LD_LIBRARY_PATH enviroment variable to change it? Or is > there another solution? I had a similiar problem recently when trying to install aspell from source. Don't know if this will help you, but check to see if you have the RPM of libmcrypt installed too...that might be causing the conflict. -- By-Tor.com It's all about the Rush http://www.by-tor.com |
|
|||
|
> > > > There has only been one version of libmcrypt (new server), so > I'm not sure > > why it thinks there is a 2.5.6 version on it. > > > > Where do I find the LD_LIBRARY_PATH enviroment variable to > change it? Or is > > there another solution? > > I had a similiar problem recently when trying to install aspell from > source. Don't know if this will help you, but check to see if you have > the RPM of libmcrypt installed too...that might be causing the conflict. > That was it. :) Problem is, I'm getting a different error now: *** 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 Anyone know how to change the LD_LIBRARY_PATH variable? Or where to, actually..... :) Thanks, -Mike |
|
|||
|
Mike R wrote:
> > That was it. :) > > Problem is, I'm getting a different error now: > > *** 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 > > Anyone know how to change the LD_LIBRARY_PATH variable? Or where to, > actually..... You can put where-ever you installed libmcrypt into /etc/ld.so.conf...ie, if you used '--prefix=/usr/local' when configuring libmcrypt, put /usr/local into /etc/ld.so.conf, and run 'ldconfig' -- By-Tor.com It's all about the Rush http://www.by-tor.com |
|
|||
|
> -----Original Message----- > From: John Nichel [mailto:jnichel@by-tor.com] > Sent: Wednesday, November 12, 2003 12:33 PM > To: Mike R > Cc: php-general@lists.php.net > Subject: Re: [php] Installing mcrypt > > > Mike R wrote: > > > > That was it. :) > > > > Problem is, I'm getting a different error now: > > > > *** 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 > > > > Anyone know how to change the LD_LIBRARY_PATH variable? Or where to, > > actually..... > > You can put where-ever you installed libmcrypt into > /etc/ld.so.conf...ie, if you used '--prefix=/usr/local' when configuring > libmcrypt, put /usr/local into /etc/ld.so.conf, and run 'ldconfig' Did that. Same error. :\ -Mike |
|
|||
|
Mike R wrote:
<snip> >>-----Original Message----- >>From: John Nichel [mailto:jnichel@by-tor.com] >> >>You can put where-ever you installed libmcrypt into >>/etc/ld.so.conf...ie, if you used '--prefix=/usr/local' when configuring >>libmcrypt, put /usr/local into /etc/ld.so.conf, and run 'ldconfig' > > > > Did that. Same error. :\ > > -Mike You ran ldconfig after, right? I'm afraid I can't help you more than that, as I'm not sure where to set the actual LD_LIBRARY_PATH...I mean, you can probably set it in /etc/profile, but I don't know if that's the proper place. If you want to give it a try, edit /etc/profile, and add this.... LD_LIBRARY_PATH=/path/to/ld:$LD_LIBRARY_PATH export LD_LIBRARY_PATH If that isn't it, or if you want to be sure, you may want to try a mailing list for your OS. Sorry I couldn't be of more help. -- By-Tor.com It's all about the Rush http://www.by-tor.com |