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库都时候没有问题
解决方案 »
- php报错:不识别的变量?
- 有没有软件可以搜索php文件里的关键词
- 这段代码在PHP CURL代码在命令模式下运行正常,但在游览器模式下不行
- 菜鸟求知:在windows下用php5能否连上linux下的oracle数据库,如何连接,请大侠指教?
- discuz论坛偷走用户资料的大讨论
- 哪位对 Symfony 非常了解? 急!
- 本人小菜,请这里的人帮忙~~~~~~~~~~
- 查询9天内的数据!!SQL语句咋整!!
- 如何把一个Select的值传到php的变量中?
- php文件从echo到?>全都显示;phpinfo()为空白
- javascript中的toString()方法,在php中有什么一样的函数吗?
- 文本框数组求和问题
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.