shell>./configure --prefix=/usr/local/php \
--with-apxs2=/usr/local/http2/bin/apxs \
--with-mysql=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-freetype-dir=/usr/local/freetype \
--with-gd=/usr/local/gd \
--with-zlib --with-libxml-dir=/usr/local/libxml2 \
--with-jpeg-dir=/usr/local/jpeg \
--with-png-dir \
--enable-mbstring=all \
--enable-mbregex \
--enable-shared
遇到root@ubuntu:/home/chen/tar/php-5.3.6# --with-gd=/usr/local/gd \
>
-su: --with-gd=/usr/local/gd: 没有那个文件或目录root@ubuntu:/home/chen/tar/php-5.3.6# --with-jpeg-dir=/usr/local/jpeg \
>
-su: --with-jpeg-dir=/usr/local/jpeg: 没有那个文件或目录
之前都软件都已经安装好了 CD也可以直接选中 回头重新安装昨天安装过都GD库也出现了这个问题 昨天安装GD库都时候没有问题
--with-apxs2=/usr/local/http2/bin/apxs \
--with-mysql=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-freetype-dir=/usr/local/freetype \
--with-gd=/usr/local/gd \
--with-zlib --with-libxml-dir=/usr/local/libxml2 \
--with-jpeg-dir=/usr/local/jpeg \
--with-png-dir \
--enable-mbstring=all \
--enable-mbregex \
--enable-shared
遇到root@ubuntu:/home/chen/tar/php-5.3.6# --with-gd=/usr/local/gd \
>
-su: --with-gd=/usr/local/gd: 没有那个文件或目录root@ubuntu:/home/chen/tar/php-5.3.6# --with-jpeg-dir=/usr/local/jpeg \
>
-su: --with-jpeg-dir=/usr/local/jpeg: 没有那个文件或目录
之前都软件都已经安装好了 CD也可以直接选中 回头重新安装昨天安装过都GD库也出现了这个问题 昨天安装GD库都时候没有问题
shell> ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/http2/bin/apxs --with-mysql=mysqlnd --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-freetype-dir=/usr/local/freetype --with-gd=/usr/local/gd --with-zlib --with-libxml-dir=/usr/local/libxml2 --with-jpeg-dir=/usr/local/jpeg --with-png-dir --enable-mbstring=all --enable-mbregex --enable-shared
shell> make
shell> make install
先检查一下 提示目录错了什么的 是否目录的确是错了,或者重新编译一次那些需要的扩展 例如 gd啥的,然后确认目录都ok了 再来编译php.