/usr/bin/ld: cannot find -lmysqlcliient
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] 错误 1
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] 错误 1
0
[root@localhost php-5.3.27]# ps aux |grep mysqld
root 5484 0.0 0.0 5980 736 pts/2 S+ 20:11 0:00 grep mysqld
root 6334 0.0 0.0 3048 1300 pts/2 S 19:48 0:00 /bin/sh ./bin/mysqld_safe --datadir=/data/mysql --pid-file=/data/mysql/localhost.localdomain.pid
mysql 6443 0.3 2.2 391872 43924 pts/2 Sl 19:48 0:04 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/data/mysql --user=mysql --log-error=/data/mysql/localhost.localdomain.err --pid-file=/data/mysql/localhost.localdomain.pid --socket=/tmp/mysql.sock --port=3306
刚开始自学看不太懂,麻烦阿铭老师指点
root 5484 0.0 0.0 5980 736 pts/2 S+ 20:11 0:00 grep mysqld
root 6334 0.0 0.0 3048 1300 pts/2 S 19:48 0:00 /bin/sh ./bin/mysqld_safe --datadir=/data/mysql --pid-file=/data/mysql/localhost.localdomain.pid
mysql 6443 0.3 2.2 391872 43924 pts/2 Sl 19:48 0:04 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/data/mysql --user=mysql --log-error=/data/mysql/localhost.localdomain.err --pid-file=/data/mysql/localhost.localdomain.pid --socket=/tmp/mysql.sock --port=3306
刚开始自学看不太懂,麻烦阿铭老师指点
0
[root@localhost php-5.3.27]# ps aux |grep mysqld
root 5484 0.0 0.0 5980 736 pts/2 S+ 20:11 0:00 grep mysqld
root 6334 0.0 0.0 3048 1300 pts/2 S 19:48 0:00 /bin/sh ./bin/mysqld_safe --datadir=/data/mysql --pid-file=/data/mysql/localhost.localdomain.pid
mysql 6443 0.3 2.2 391872 43924 pts/2 Sl 19:48 0:04 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/data/mysql --user=mysql --log-error=/data/mysql/localhost.localdomain.err --pid-file=/data/mysql/localhost.localdomain.pid --socket=/tmp/mysql.sock --port=3306
刚开始自学看不太懂,麻烦阿铭老师指点
阿铭 发表于 2014-10-10 09:21
这个是缺少mysql相关的库,你的mysql安装了吗?编译参数又是怎么样的?
[root@localhost php-5.3.27]# ps aux |grep mysqld
root 5484 0.0 0.0 5980 736 pts/2 S+ 20:11 0:00 grep mysqld
root 6334 0.0 0.0 3048 1300 pts/2 S 19:48 0:00 /bin/sh ./bin/mysqld_safe --datadir=/data/mysql --pid-file=/data/mysql/localhost.localdomain.pid
mysql 6443 0.3 2.2 391872 43924 pts/2 Sl 19:48 0:04 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/data/mysql --user=mysql --log-error=/data/mysql/localhost.localdomain.err --pid-file=/data/mysql/localhost.localdomain.pid --socket=/tmp/mysql.sock --port=3306
刚开始自学看不太懂,麻烦阿铭老师指点
0
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-bz2 --with-openssl --with-mcrypt --enable-soap --enable-gd-native-ttf --enable-mbstring --enable-sockets --enable-exif --disable-ipv6
开始以为把哪个漏了才出错了,所以把你教程上的参数都写了上去
阿铭 发表于 2014-10-10 10:07
php 编译的参数是怎么写的
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-bz2 --with-openssl --with-mcrypt --enable-soap --enable-gd-native-ttf --enable-mbstring --enable-sockets --enable-exif --disable-ipv6
开始以为把哪个漏了才出错了,所以把你教程上的参数都写了上去
编辑回复