3 回答

TA貢獻(xiàn)1775條經(jīng)驗(yàn) 獲得超11個(gè)贊
源代碼安裝.
下載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中,程序報(bào)錯(cuò),make: *** [sqlite3.lo] Error 1,網(wǎng)上查是版本不兼容,只能選第一個(gè)方法,因?yàn)閏entos6以上.php默認(rèn)是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

TA貢獻(xiàn)1826條經(jīng)驗(yàn) 獲得超6個(gè)贊
void InitList(SqList *L){
L -> elem = (ElemType *)malloc(MAXSIZE * sizeof(ElemType));
if(!L -> elem)exit(ERROR);
L -> length = 0;
L -> listsize = MAXSIZE;
}
- 3 回答
- 0 關(guān)注
- 518 瀏覽
添加回答
舉報(bào)