+ -
当前位置:首页 → 问答吧 → 怎样安装gcc、make、Autoconf

怎样安装gcc、make、Autoconf

时间:2002-05-31

来源:互联网

  我是solaris的新手,装好solaris后就不知道其它软件该怎么安装了。我打算在我的机器上安装mysql、php,不过听说还要使用到gcc、make、Autoconf,但是gcc、make、Autoconf都是压缩包,是不是解压后要放在什么特定的文件下哦,真不知道解压后该怎么办了。所以请各位大侠一定帮帮小妹我,先谢了!      

作者: gleafwm   发布时间: 2002-05-31

tar -zxvf gcc*.tar.gz
要生成一个gcc开头的文件夹
cd gcc*
看看install和readme文件,一般的步骤是
./configure
make
make install
make calear
(前提是安装好了make)
安装make好像应该可以用sun自己的安装程序。我用了几天,觉得很麻烦,特别是shell很不爽,就format了。
你自己摸索摸索      

作者: colorlinux   发布时间: 2002-06-01

安装gcc ./configure 的时候最好看看INSTALL下的说明,我常用./configure --enable-shared --disable-checking --enable-threads=posix --prefix=/usr
过后就是make bootstrap
make install
make clean      

作者: lenger81   发布时间: 2002-06-01

谢谢两位的提示,不过我下的gcc怎么解压后就只有一个文件呢,完全没有什么install文档      

作者: gleafwm   发布时间: 2002-06-03

你下载的gcc吗?好像solarsi里面没有自带,反正我安装的时候没有装上。如果只有一个文件,那说不定是二进制文件,可以直接运行安装。      

作者: colorlinux   发布时间: 2002-06-05

呵呵,我就是不知道该怎么直接运行安装了。我下载的是gcc-3.1-sol7-sparc-local.gz ,是在http://www.sunfreeware.com下载的,网站上同时还有gcc-3.1.tar.gz,我不知道我到底应该用哪个好,但是由于我的系统是sol7-sparc的,所以我就下了gcc-3.1-sol7-sparc-local.gz ,但是下载了之后,就不知道该怎么办了。由于我也不知道怎么在sol7-sparc上安装gzip,所以,我是直接在win2000下解压的,解压后发现只有一个文件,没有什么install文档,我现在担心在win2000下解压和在sol7-sparc下解压的结果会有不同,想直接在sol7-sparc下解压,但是我又该怎么安装gzip呢?虽然网站上的说明是“The gzip compress/uncompression system installs in /usr/local.”,但是在我的机子上没有/usr/local目录。唉,对solaris太陌生了!help,help me!      

作者: gleafwm   发布时间: 2002-06-06

唉,疯都疯了!好容易在书上找到安装gzip的方法,但是按照书上写的输入后,依然不行:# pkgadd gzip-1.3.3-sol7-sparc-local
  pkgadd: ERROR: 在</var/spool/pkg>中没有发现包
我把gzip-1.3.3-sol7-sparc-local拷到/var/spool/pkg下,结果还是一样,还是说没有发现包,真不知该怎么办了。      

作者: gleafwm   发布时间: 2002-06-06

gcc,make解压缩以后都只有一个文件,不知道该怎么安装到solaris上      

作者: ywy47   发布时间: 2002-06-10

#gunzip -d gcc-3.1-sol7-sparc-local.gz
#pkgadd -d gcc-3.1-sol7-sparc-local      

作者: aaron2002   发布时间: 2002-06-10

thank you!根据您的提示我已经安装好了gzip、gcc、make、prel、gtar、autoconf、libpng、zlib。
对了,知道以tar.gz为后缀的该怎么安装吗?当然,为了方便,我大部分软件都是安装的以.gz为后缀的,但是对于php、gd,我就只找到了以tar.gz为后缀的,按照一些网页上写的,我使用了#gunzip -d < php-4.2.1.tar.gz | tar vxf ?
但是在./configure的时候,输出了如下错误:
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}... ./configure: make: not found
no
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... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
但是我明明是安装了gcc的,我真的不知道该怎么设路径了。      

作者: gleafwm   发布时间: 2002-06-11

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

Good luck!      

作者: aaron2002   发布时间: 2002-06-11

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

作者: gleafwm   发布时间: 2002-06-11

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

作者: aaron2002   发布时间: 2002-06-11

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

作者: gleafwm   发布时间: 2002-06-11

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


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



      

作者: cqcw   发布时间: 2002-06-17

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

作者: gleafwm   发布时间: 2002-06-18

对了,忘了告诉大家,我现在根据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又不能工作呢?      

作者: gleafwm   发布时间: 2002-06-18

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      

作者: gleafwm   发布时间: 2002-06-19

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

作者: zhuozhanmen   发布时间: 2002-06-26

热门下载

更多