[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

error building mhash extension for php

Asked by varnold61 in PHP Installation, Red Hat Linux

Tags: redhat, 5, php, mhash, mcrypt


 i have to install mcrypt for php and i did it successfully on our dev box. but when trying to replicate on qa server, i've run into a snag and cannot get past it.

 i got the .gz files for mycrypt, libmcrypt, and mhash. i built them and did make install on them successfully. now, i have to do the following forthe php extension mhash and mcrypt which is to go to php_src_dir/ext/mhash and do the usual configure,e tc...

i was able to build mcrypt (after having to set the LD_LIBRARY_PATH variable) but when i try to ./configure it in the php_src_dir/ext/mhash  i get this error :

 checking for mhash support... yes, shared
configure: error: Please reinstall libmhash - I cannot find mhash.h




i even tried :
CFLAGS="-I/usr/local/mhash/include -L/usr/local/mhash/lib" ./configure --with-prefix=/usr/local/mhash && make

nothing seems to help me get past this error. any help would be appreciated.
it's php 5.2.9
mcrypt-2.6.7.tar.gz
libmcrypt-2.5.8.tar.gz
mhash-0.9.9.tar.gz
[+][-]11/05/09 05:41 PM, ID: 25756027Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625