Home > Database > Mysql Tutorial > Linux下安装 Sqlite问题解决

Linux下安装 Sqlite问题解决

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:56:02
Original
1247 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template