19 12
发新话题
打印

怎样安装gcc、make、Autoconf

怎样安装gcc、make、Autoconf

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

TOP

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

TOP

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

TOP

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

TOP

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

TOP

呵呵,我就是不知道该怎么直接运行安装了。我下载的是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!      
草草

TOP

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

TOP

有谁也能告诉我,我也存在同样的问题

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

TOP

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

TOP

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的,我真的不知道该怎么设路径了。      
草草

TOP

 19 12
发新话题