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编译安装完成
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编译安装完成
相关推荐
specialbrian 2020-07-31
loveandroid0 2020-06-18
DAV数据库 2020-06-17
URML 2020-06-13
Dlanguage 2020-06-12
Plant 2020-06-07
疯狂老司机 2020-06-07
chibangyuxun 2020-06-07
sdwylry 2020-06-04
airfling 2020-05-31
Plant 2020-05-31
zbcaicai 2020-05-26
chaochao 2020-05-19
Plant 2020-05-17
小火车 2020-05-14
beibeijia 2020-04-25
Rain 2020-04-16