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库都时候没有问题 

解决方案 »

  1.   

    可以都不安, 就把PHP安上, 扩展再用phpize一点点加。
      

  2.   

    enable-shared  这个命令也报错了
      

  3.   

    昨天就装了一个 wine  和 新立得软件管理 不知道有影响不
      

  4.   

    shell> cd xxx/php-5.3.6
    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
      

  5.   


    先检查一下 提示目录错了什么的 是否目录的确是错了,或者重新编译一次那些需要的扩展 例如 gd啥的,然后确认目录都ok了 再来编译php.
      

  6.   

    解决不了  只好用神技了 apt-get