phpize编译mysql扩展
时间:2011-03-14
来源:互联网
PHP Warning: PHP Startup: Unable to load dynamic library '/home/henuphp/mysql.so'
我不知怎么回事,请各问大侠帮忙啊,
我的php是php-5-3-3
作者: henuphp 发布时间: 2011-03-14
he phpize command is used to prepare the build environment for a PHP extension. In the following sample, the sources for an extension are in a directory named extname:
$ cd extname
$ phpize
$ ./configure
$ make
# make install
A successful install will have created extname.so and put it into the PHP extensions directory. You'll need to and adjust php.ini and add an extension=extname.so line before you can use the extension.
手册里说phpize之后会把编译出来的so文件放置在php扩展目录下,你的目录怎么是/home/heub?这样php的执行权限是nobody,应该是执行不了的吧
作者: qxhy123 发布时间: 2011-03-15
恩,是放在扩展目录下面,扩展目录是/usr/lib/php5/20090626+lfs/,我修改了权限chmod 777 /usr/lib/php5/20090626+lfs/mysql.so可还是不行,不知怎么回事
作者: henuphp 发布时间: 2011-03-15
作者: qxhy123 发布时间: 2011-03-15
是啊,我从别处拷贝了一个mysql.so放在目录下,也会提示这样的错误,你遇到果这样的问题吗?
作者: henuphp 发布时间: 2011-03-15
作者: qxhy123 发布时间: 2011-03-15
./configure --with-php-config=$PATH_TO_YOUR_PHP_LIB/bin/php-config
make clean && make && make install
作者: laruence 发布时间: 2011-03-17
apt-get install mysql-dev
作者: cc0cc 发布时间: 2011-03-23
作者: yuzuan 发布时间: 2012-12-11
再话说php5.3之后不是有了mysqlnd了么,直接用
./configure --with-mysql=mysqlnd就可以了,不需要额外mysql库文件
作者: 网鬼 发布时间: 2013-04-22
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28