Linux下安装|Linux下安装 Sqlite问题解决

Linux下安装 Sqlite居然碰到


Linux: pecl install sqlite
/tmp/pear/SQLite-1.0.3/sqlite.c:125: warning: initialization from incompatible pointer type
/tmp/pear/SQLite-1.0.3/sqlite.c:126: warning: initialization from incompatible pointer type
make: *** [sqlite.lo]
ERROR: `make' failed# pecl download SQLite

Linux: tar xzf SQLite-1.0.3.tgz
Linux: phpize
Linux: ./configure
Linux: vim sqlite.c

56行static unsigned char arg3_force_ref[] = {3, BYREF_NONE, BYREF_NONE, BYREF_FORCE
注释
/* static unsigned char arg3_force_ref[] = {3, BYREF_NONE, BYREF_NONE, BYREF_FORCE }; */

把125行PHP_FE(sqlite_open, arg3_force_ref)替换 PHP_FE(sqlite_open, third_arg_force_ref)
把126行 PHP_FE(sqlite_popen, arg3_force_ref) 替换 PHP_FE(sqlite_popen, third_arg_force_ref)
Linux:make && make install
sqlite编译安装完成


阅读全文
类别: about → *-nix查看评论 【Linux下安装|Linux下安装 Sqlite问题解决】转载于:https://www.cnblogs.com/ygmpkk/archive/2011/04/01/2002069.html

    推荐阅读