php installation on 64bit hardware with 64 redhat Ent.
Hi,
I need help of guys as i am facing problem installation php from source with supporting libs on redhat enterprise (64bit).
i manage to install following supporting libs of php -
curl
freetype
libjpeg
libiconv
libpng
libmcrypt
mysql and apache installation from source was smooth and is running fine...
configure command
==================
./configure --with-apxs2=/usr/local/apache2/bin/apxs --disable-debug --enable-ftp --enable-inline-optimization --enable-magic-quotes --enable-mbstring --enable-mm=shared --enable-safe-mode --enable-track-vars --enable-trans-sid --enable-wddx=shared --enable-xml --with-dom --with-gd --enable-gd-native-tt --enable-gd --with-freetype-dir=/usr/local --with-gettext --with-mysql=/usr/local/mysql --with-regex=system --with-zlib-dir=/usr/lib --with-mcrypt=/usr/local/libmcrypt --with-xml--with-freetype-dir=/usr/local --with-png-dir=/usr/local --with-jpeg-dir=/usr/local --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-sigchild --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql-sock=/tmp/mysql.sock --with-zlib --with-zlib-dir --with-bz2 --enable-gd-native-ttf --with-ttf --with-iconv=/usr/local --with-curl=/usr/local --with-config-file-path=/usr/local/apache2/conf --enable-trans-id --with-cpdflib=/usr/local --enable-pcntl --enable-module=/usr/local/mod_geoip2_1.2.0/mod_geoip.c --with-pic --with-fPIC
error getting while "make"
===========================
/usr/bin/ld: /usr/local/lib/libjpeg.a(jcapimin.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libjpeg.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
Regards,
Pawan
|