Chinaunix首页 | 论坛 | 博客
  • 博客访问: 541213
  • 博文数量: 76
  • 博客积分: 2990
  • 博客等级: 少校
  • 技术积分: 827
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-26 10:53
文章分类

全部博文(76)

文章存档

2011年(47)

2010年(13)

2009年(5)

2008年(11)

分类:

2011-04-19 18:21:45

在64位centos上编译php时使用了如下参数:


cd php-5.2.11/

 ./configure  --prefix=/usr/local/php/ \

 --enable-fastcgi --enable-ftp --enable-mbstring --enable-bcmath \

 --with-mysql=/usr/local/mysql/ --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql \

 --with-pcre-regex=yes --with-openssl --with-curl \

 --enable-sockets --with-gd --enable-gd-native-ttf --with-mcrypt  \

  --with-jpeg-dir=/usr --with-libdir=lib64 \

 --with-freetype-dir=/usr/ --with-zlib


编译时报错:

checking for MySQL UNIX socket location... no

configure: error: Cannot find libmysqlclient under /usr/local/mysql/.

Note that the MySQL client library is not bundled anymore!



应该是由于我使用了--with-libdir=lib64参数有关,解决办法 :



cd /usr/local/mysql/

ln -s lib lib64 

阅读(4926) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~