|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
I run the 'make' command after configure.
But stop in: gcc -rpath /usr/local/mysql/bin/mysql..... Because unrecognized option "-rpath" /usr/local/mysql/bin/mysql: file not recognized: Is a directory ... ... make[4]:***[mod_vhost_alias.so] Error 1 ... ... I use redhat 6.1 php="php-4.0b2" apache="apache_1.3.12" layout="mod_layout-1.6" phpini="/usr/local/lib/php.ini" www_dir="/home/httpd" --------------------- PHP configuration: ./configure --with-mysql=${mysql_dir} --with-apache=../${apache} --enable-track-vars --disable-debug; --------------------- Apache configuration: ./configure --prefix=${www_dir} --enable-rule=SHARED_CORE --enable-shared=max --enable-module=most --add-module=/tmp/${layout}/mod_layout.c --enable-shared=layout --activate-module=src/modules/php4/libphp4.a; |
|
#2
|
|||
|
|||
|
The easiest way to compile PHP to Apache is to use 'apxs'.
1) Install Mysql 2) Compile apache_1.3.12.tar.gz Please note: Apache will use 'config.layout' by default. ./configure --prefix=/usr/local/apache --datadir=/home/httpd --logfiledir=/var/log/httpd --enable-module=most --enable-shared=max --disable-rule=WANTHSREGEX Please note: You should not set prefix=/home/httpd, that should be 'datadir' instead. 3) Why not install php-4.0RC2.tar.gz instead of php-4.0b2.tar.gz? ./configure --with-apxs=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache --with-mysql=/usr/local/mysql --with-system-regex 4) Edit /usr/local/apache/php3.ini 5) Edit httpd.conf and uncomment this line LoadModule php4_module libexec/libphp4.so and.. AddModule mod_php4.c 6) cd /usr/local/apache/bin ./apachectl graceful |
|
#3
|
|||
|
|||
|
When I install PHP
........... Making Install in . make[1]:Entering directory /tmp/php-4.0RC2 /usr/local/apache/bin/apxs -i -a -n php4 libs/libphp4.s* cp libs/libphp4.so /usr/local/apache/libexec/libphp4.so chmod 755 /usr/local/apache/libexec/libphp4.so [activating module 'php4' in /usr/local/apache/conf/httpf.conf] installing shared modules into /usr/local/lib/php/extension/debug-non-zts-20000401 cp:modules/*:No such file or directory make[1]:Leaving directory 'tmp/php-4.0RC2' Makeing install in pear ......... []#/usr/local/apache/bin/apachectl graceful Syntax error on....../conf/httpd.conf Cannot load /usr/local/apache/libexec/libphp4.so into server:libmysqlclient.so.6:cannot open shared object file:No such file or directory ........ My MySQL Install configuration: mysql="mysql-3.22.32" mysql_dir="/usr/local/mysql" ./configure --prefix=${mysql_dir} --with-low-memory --with-charset=big5; ------------------------------------------ Would you please tell me what's wrong ? |
|
#4
|
|||
|
|||
|
Did you install Mysql first, then Apache, and PHP last?
>>libmysqlclient.so.6:cannot open shared object file:No such file or directory Go to /usr/local/mysql/lib or whatever directory and search for this file 'libmysqlclient.so.6.0.0', then make a symlink this way. ln -s /usr/local/mysql/lib/libmysqlclient.so.6.0.0 /usr/local/mysql/lib/libmysqlclient.so.6 You probably need to make another symlink of 'libmysqlclient.so' as well. |
|
#5
|
|||
|
|||
|
Yes,I Install Mysql,Apache, then PHP.
I can find these files: /usr/local/mysql/lib/mysql/libmysqlclient.so /usr/local/mysql/lib/mysql/libmysqlclient.so.6 /usr/local/mysql/lib/mysql/libmysqlclient.so.6.0.0 And lib*client.so and lib*client.so.6 are lrwxr-xr-x point to lib*clinet.so.6.0.0 already. But /usr/local/apache/libexec/libphp4.so is not in the same directory. Therefore, I copy all libmysqlclient.so.* to /usr/local/apache/libexec and start http, same error message display. Thanks [This message has been edited by rtna (edited May 12, 2000).] [This message has been edited by rtna (edited May 12, 2000).] |
|
#6
|
|||
|
|||
|
libmysqlclient.so.6 cannot be found by ld.
In Linux during the make process, the gcc uses an ld programm to load dynamic loadable modules. It has a configuration file in /etc/ld.so.conf containing the path's ld is going to search for such modules. Add the path were libmysqlclient.so.6 resides to ld.so.conf and then run ldconfig, normally to be found in /sbin. Then rerun the make command. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > make ERROR when instal Apache |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|