Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old May 11th, 2000, 12:55 PM
rtna rtna is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 79 rtna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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;

Reply With Quote
  #2  
Old May 11th, 2000, 11:03 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #3  
Old May 12th, 2000, 12:48 PM
rtna rtna is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 79 rtna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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 ?

Reply With Quote
  #4  
Old May 12th, 2000, 08:46 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
  #5  
Old May 12th, 2000, 08:58 PM
rtna rtna is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 79 rtna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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).]

Reply With Quote
  #6  
Old August 22nd, 2000, 01:46 AM
H.Bonenkamp H.Bonenkamp is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Veenendaal, The Netherlands
Posts: 3 H.Bonenkamp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.


Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > make ERROR when instal Apache


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway