如何安裝php-sqlite擴展組件
3 回答

當年話下
TA貢獻1890條經(jīng)驗 獲得超9個贊
源代碼安裝.
下載sqlite-1.03版本
tar zxcf sqlite-1.03.tar.gz
cd sqlite-1.03
phpize
./configure --with-php-config=/usr/bin/php-config
make
在命令make中,程序報錯,make: *** [sqlite3.lo] Error 1,網(wǎng)上查是版本不兼容,只能選第一個方法,因為centos6以上.php默認是5.3.3版本,到網(wǎng)上找了很久才找到5.3.3版本,總算安裝成功.
tar zxvf php-5.3.3.tar.gz
cd php-5.3.3/ext
phpize
./configure --with-php-config=/usr/bin/php-config
make && make install

Cats萌萌
TA貢獻1805條經(jīng)驗 獲得超9個贊
void InitList(SqList *L){
L -> elem = (ElemType *)malloc(MAXSIZE * sizeof(ElemType));
if(!L -> elem)exit(ERROR);
L -> length = 0;
L -> listsize = MAXSIZE;
}
- 3 回答
- 0 關注
- 1213 瀏覽
添加回答
舉報
0/150
提交
取消