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编译安装完成

相关内容