用freetype编译PHP错误

Rob*_*oss 5 php makefile compilation configure

我自己配置​​了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 to `core_globals_id'
Run Code Online (Sandbox Code Playgroud)

未定义的引用出现在几个方面.

所以它在这里失败但是当我最初编译PHP时它没有.这是怎么回事?我需要重新配置整个东西吗?

提前致谢.

Pie*_*rre 3

您应该使用--with-freetype-dirfreetype 安装前缀的路径:--with-freetype-dir=/usr/local您的情况下。

make clean当您执行干净构建( 、configure、 )时,编译错误应该消失make