|
|
小弟,今天给公司内部升级linux系统,但是在安装开源代码包 安装上遭到不受害.请大哥们多多指教.
系统为:red hat linux 4.0
apache 为httpd-2.0.55.tar.gz
php 为 php-5.1.2.tar.gz
mysql为mysql-standard-5.0.20-linux-i686-icc-glibc23.tar.gz
就在安装编译时,却发生了,这样怪的事.
PHP是这样安装的 :
#./configure --with-apxs2=/usr/local/apache/bin/apxs
--with-mysql=/usr/local/mysql
错误提示是:configure : error : Try adding --with-zlib-dir=<DIR>. please check config.log for more informatin
MYSQL是这样安装的 :
#groupadd mysql
#useradd -g mysql mysql
#ln -s mysql源目录/mysql
#cd mysqlmysql
#/scripts/mysql_intall_db --user=mysql
mysql#chown -R root .
mysql#chown -R mysql data
mysql#chgrp -R mysql .
mysql#bin/mysqld_safe --user=mysql &
#mysql 启动时就有错误了!
错误提示是:mysql : error while locaing shared libraries: libstdc++.so.5:cannot open shared object file: No such file or directory
|
|