19 12
发新话题
打印

怎样安装gcc、make、Autoconf

先echo $PATH看看你的路径,你的gcc应该安装在/usr/local/bin/下,如果没有这个路径,编辑/etc/profile,增加两个路径:
/usr/local/bin/
/usr/local/sbin/

Good luck!      

TOP

晕!
我不知道怎么把路径
/usr/local/bin/
/usr/local/sbin/
增加到/etc/profile里,profile里是用程序编的,我不知道该把这两个路径放到什么位置,怎样写语句。      
草草

TOP

如果这个都不会,那你得先看些书了,你别告诉我你连vi都不会用.
^_^      

TOP

真的不会,人家是新手嘛,才接触这些东东了啦。可以告诉我哪个网站(网页)上有相关的介绍吗,或者什么书上有?      
草草

TOP

[QUOTE]最初由 gleafwm 发布
[B]真的不会,人家是新手嘛,才接触这些东东了啦。可以告诉我哪个网站(网页)上有相关的介绍吗,或者什么书上有? [/B][/QUOTE]


还是买本书看一下把,不要舍不得钱。。



      
相信自己,力量在心中。

TOP

唉,不是钱不钱的问题啦,是买什么书好,我也买了不少书,在网上看了不少文章,但是还是不行。我想都是由于我对solaris的了解太少,所以选书的时候都不晓得选哪种的好,有点病急乱投医的感觉,并且我目前急需把php装在我的机子上,没有那么多的时间去详细系统的了解solaris,所以想请各位提个醒,于是跑来发帖子了。      
草草

TOP

对了,忘了告诉大家,我现在根据aaron2002的提示,已经可以暂时把路径加载,使用的是:
PATH=$PATH:/usr/local/bin
export PATH
由于我的机子上没有他所说的:/usr/local/sbin路径,所以只加载了:/usr/local/bin,但是这只是暂时的,因为我的机子上的/etc/profile只是一个文本文件,并且用vi 加入了如上语句也不行;在网上看见应该修改一个叫.profile的文件,但是在/etc下没有,只有在/etc/skel/下和其他用户名下有,但是我把这些文件都加入了如上语句都还是不行。
先不说永久保存路径了,就是临时加载完毕,在configure php 的时候又出现了如下错误(我的web服务器是安的iplanet的):
# ./configure --with-nsapi=/export/home/netscape/serrver4
loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking host system type... sparc-sun-solaris2.7
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets ${MAKE}... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking how to run the C preprocessor... cc -E
checking for AIX... no
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

所以很奇怪,怎么找得到gcc而gcc又不能工作呢?      
草草

TOP

gcc不能工作问题已解决,原来机子上应该安装有如下系统包:
SUNWhea
SUNWsrh
SUNWbtool
SUNWscpu
SUNWtoo
SUNWlibm
SUNWsprot
SUNWarc

新问题又出现:make的时候出现如下错误:
# make
Making all in Zend
make[1]: Entering directory `/usr/local/php-4.2.1/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -I../TSRM -DTHREAD=1  -g -O2 -pthreads -DZTS -prefer-pic -c -o zend_language_parser.lo `test -f zend_language_parser.c || echo './'`zend_language_parser.c
In file included from zend_compile.h:24,
                 from zend_language_parser.c:147:
zend.h:55:19: unix.h: No such file or directory
make[1]: *** [zend_language_parser.lo] Error 1
make[1]: Leaving directory `/usr/local/php-4.2.1/Zend'
make: *** [all-recursive] Error 1      
草草

TOP

草草,这么多高手都不能回答你的问题,悲哀!!! :o      

TOP

 19 12
发新话题