免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1010 | 回复: 3
打印 上一主题 下一主题

编译php4.3出错? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-03-07 17:05 |只看该作者 |倒序浏览
configure: error: installation or configuration problem: C compiler cannot creat
e executables.
已安装了gcc-3.2.2-sol8-sparc-local,libgcc-3.2.2-sol8-sparc-local软件包。请指教!

论坛徽章:
0
2 [报告]
发表于 2003-03-08 08:58 |只看该作者

编译php4.3出错?

install these:

gcc (recommended, other C compilers may work)
make
flex
bison
m4
autoconf
automake
perl
gzip
tar
GNU sed


(ar is important!)

gunzip apache_1.3.x.tar.gz
2.  tar xvf apache_1.3.x.tar
3.  gunzip php-x.x.x.tar.gz
4.  tar xvf php-x.x.x.tar
5.  cd apache_1.3.x
6.  ./configure --prefix=/www
7.  cd ../php-x.x.x
8.  ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
9.  make
10. make install
11. cd ../apache_1.3.x
12. ./configure --activate-module=src/modules/php4/libphp4.a
13. make
14. make install
15. cd ../php-x.x.x
16. cp php.ini-dist /usr/local/lib/php.ini
17. Edit your httpd.conf or srm.conf file and add:
      AddType application/x-httpd-php .php

18. Use your normal procedure for restarting the Apache server. (You must
    stop and restart the server, not just cause the server to reload by
    use a HUP or USR1 signal.)

论坛徽章:
0
3 [报告]
发表于 2003-03-08 10:30 |只看该作者

编译php4.3出错?

* By default, `configure` picks `c++` as the compiler name and GNU
     `c++` links with `-lg++`.  If you are using `gcc`, this can cause
     problems during configuration such as this:

          configure: error: installation or configuration problem:
          C++ compiler cannot create executables.

     You might also observe problems during compilation related to
     `g++`, `libg++` or `libstdc++`.

     One cause of these problems is that you may not have `g++`, or you
     may have `g++` but not `libg++` or `libstdc++`.  To work around
     these problems, you can use `gcc` as your C++ compiler.  Try
     setting the environment variable `CXX` to `"gcc -O3"`.  For
     example:

          shell>; CXX="gcc -O3" ./configure

     This works because `gcc` compiles C++ sources as well as `g++`
     does, but does not link in `libg++` or `libstdc++` by default.

     Another way to fix these problems, of course, is to install `g++`,
     `libg++` and `libstdc++`.

论坛徽章:
0
4 [报告]
发表于 2003-03-08 15:56 |只看该作者

编译php4.3出错?

./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
中的--with-mysql必须指定mysql的安装路径,另外php4.3在solaris上安装好像需要作一下更改,否则不能正常安装,最好是用php4.2或php4.1.2
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP