小编Rob*_*oss的帖子

用freetype编译PHP错误

我自己配置​​了PHP,包括了我需要的所有库......但后来意识到我忘记了freetype库.

所以我回到我的php-5.3.2目录并运行./configure'--with-free-type =/usr/local/lib'

PHP确实配置正常,没有错误.

但是当我运行make时:

collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1
Run Code Online (Sandbox Code Playgroud)

经常出现的事情:

/php-5.3.2/ext/libxml/libxml.c:336: undefined reference to `ts_resource_ex'
/php-5.3.2/ext/sqlite3/sqlite3.c:663: undefined reference to `executor_globals_id'
ext/sqlite3/.libs/sqlite3.o: In function `php_sqlite3_callback_final':
/php-5.3.2/ext/sqlite3/sqlite3.c:811: undefined reference to `ts_resource_ex'
ext/sqlite3/.libs/sqlite3.o: In function `php_sqlite3_callback_step':
/php-5.3.2/ext/sqlite3/sqlite3.c:799: undefined reference to `ts_resource_ex'
ext/sqlite3/.libs/sqlite3.o: In function `php_sqlite3_callback_func':
/php-5.3.2/ext/sqlite3/sqlite3.c:788: undefined reference to `ts_resource_ex'
ext/sqlite3/.libs/sqlite3.o: In function `php_sqlite3_authorizer':
/php-5.3.2/ext/sqlite3/sqlite3.c:1782: undefined reference to `ts_resource_ex'
/php-5.3.2/ext/sqlite3/sqlite3.c:1787: undefined reference to `core_globals_id'
ext/sqlite3/.libs/sqlite3.o: In function `zim_sqlite3_open':
/php-5.3.2/ext/sqlite3/sqlite3.c:161: undefined reference to `core_globals_id'
/php-5.3.2/ext/sqlite3/sqlite3.c:123: undefined reference …
Run Code Online (Sandbox Code Playgroud)

php makefile compilation configure

5
推荐指数
1
解决办法
9477
查看次数

标签 统计

compilation ×1

configure ×1

makefile ×1

php ×1