- 论坛徽章:
- 0
|
今天我使用一台solaris9的主机,安装apache2.2.6+php5.2.5+mysql5.0.51,在安装php时,我按如下操作
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/php/etc \
--with-openssl=/usr/local/ssl --with-gd=/usr/local --with-gdbm=/usr/lib \
--with-freetype-dir=/usr/local/freetype --with-jpeg-dir=/usr/local/jpeg \
--with-png-dir --with-zlib=/usr/local/zlib --enable-mbstring --enable-sockets
但是却报:
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
creating libtool
appending configuration tag "CXX" to libtool
Generating files
creating ./config.status
creating php5.spec
creating main/build-defs.h
creating scripts/phpize
creating scripts/man1/phpize.1
creating scripts/php-config
creating scripts/man1/php-config.1
creating sapi/cli/php.1
creating main/php_config.h
main/php_config.h is unchanged
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+
Thank you for using PHP.
# --with-freetype-dir: 命令没有找到
我的freetype已经确认安装过了,安装在/usr/local/freetype内,libfreetype.so所在目录如下
# find / -name libfreetype.so
/usr/sfw/lib/libfreetype.so
/usr/sfw/lib/sparcv9/libfreetype.so
/usr/local/freetype/lib/libfreetype.so
/export/lq/freetype-2.3.1/objs/.libs/libfreetype.so
我查过php的configure的帮助文件,内有描述:
--with-freetype-dir[=DIR] GD: Set the path to FreeType 2 install prefix
不知道为什么一直提示找不到--with-freetype-dir这个命令,请各位帮忙,谢谢!
[ 本帖最后由 hotren 于 2008-4-2 11:18 编辑 ] |
|