欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

Linux下安装 Sqlite问题解决

程序员文章站 2022-05-28 20:20:04
...

Linux下安装 Sqlite居然碰到Linux: pecl install sqlite/tmp/pear/SQLite-1.0.3/sqlite.c:125: warning: initialization from in

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

Linux下安装 Sqlite问题解决