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编译安装完成
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号