Solaris 10 x86系统下安装gcc过程
2012-04-12 10:08
537 查看
本文转载于 http://www.jb51.net/os/Solaris/1701.html
Solaris 10 x86系统下安装gcc过程
来源:互联网 作者:佚名 时间:09-08 19:12:28 【大 中 小】
点评:1. 系统环境准备 a. 由于系统默认的shell使用不太方便,所以将系统shell更改为bash。
# which bash usr/bin/bash
# usermod -s /usr/bin/ba-
1. 系统环境准备
a. 由于系统默认的shell使用不太方便,所以将系统shell更改为bash。
# which bash
usr/bin/bash
# usermod -s /usr/bin/bash root
b. 建立系统 .profile文件:
# cp /etc/skel/local.profile /.profile
c. 在.profile文件中添加如下内容
PATH=/usr/bin:/usr/local/bin:/usr/ucb:/etc:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin:/opt/csw/bin:.
export PATH
export PS1='\u:\w#'
d. 从Solaris 10安装光盘中安装如下工具包
# pkgadd –d /cdrom/Solaris_10/Product SUNWwgetr
# pkgadd –d /cdrom/Solaris_10/Product SUNWwgetu
# pkgadd –d /cdrom/Solaris_10/Product SUNWwgetS
# pkgadd –d /cdrom/Solaris_10/Product SUNWgcmn
2. 下载gcc软件
# wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/gcc-3.4.6-sol10-x86-local.gz
# wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libiconv-1.11-sol10-x86-local.gz
# wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libgcc-3.4.6-sol10-x86-local.gz
# wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libintl-3.4.0-sol10-x86-local.gz
注:第一个为gcc的应用程序,下面3个为gcc的库文件包
3. 解压和安装
# gunzip gcc-3.4.6-sol10-x86-local.gz
# gunzip libiconv-1.11-sol10-x86-local.gz
# gunzip libgcc-3.4.6-sol10-x86-local.gz
# gunzip libintl-3.4.0-sol10-x86-local.gz
#pkgadd -d gcc-3.4.6-sol10-x86-local
#pkgadd -d libiconv-1.11-sol10-x86-local.gz
#pkgadd -d libgcc-3.4.6-sol10-x86-local.gz
#pkgadd -d libintl-3.4.0-sol10-x86-local.gz
4. 修改 .profile文件
在 .profile文件中增加如下内容
export LD_LIBRAEY_PATH=/usr/local/lib:.
export CC=gcc
详细出处参考:http://www.jb51.net/os/Solaris/1701.html
Solaris 10 x86系统下安装gcc过程
来源:互联网 作者:佚名 时间:09-08 19:12:28 【大 中 小】
点评:1. 系统环境准备 a. 由于系统默认的shell使用不太方便,所以将系统shell更改为bash。
# which bash usr/bin/bash
# usermod -s /usr/bin/ba-
1. 系统环境准备
a. 由于系统默认的shell使用不太方便,所以将系统shell更改为bash。
# which bash
usr/bin/bash
# usermod -s /usr/bin/bash root
b. 建立系统 .profile文件:
# cp /etc/skel/local.profile /.profile
c. 在.profile文件中添加如下内容
PATH=/usr/bin:/usr/local/bin:/usr/ucb:/etc:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin:/opt/csw/bin:.
export PATH
export PS1='\u:\w#'
d. 从Solaris 10安装光盘中安装如下工具包
# pkgadd –d /cdrom/Solaris_10/Product SUNWwgetr
# pkgadd –d /cdrom/Solaris_10/Product SUNWwgetu
# pkgadd –d /cdrom/Solaris_10/Product SUNWwgetS
# pkgadd –d /cdrom/Solaris_10/Product SUNWgcmn
2. 下载gcc软件
# wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/gcc-3.4.6-sol10-x86-local.gz
# wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libiconv-1.11-sol10-x86-local.gz
# wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libgcc-3.4.6-sol10-x86-local.gz
# wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libintl-3.4.0-sol10-x86-local.gz
注:第一个为gcc的应用程序,下面3个为gcc的库文件包
3. 解压和安装
# gunzip gcc-3.4.6-sol10-x86-local.gz
# gunzip libiconv-1.11-sol10-x86-local.gz
# gunzip libgcc-3.4.6-sol10-x86-local.gz
# gunzip libintl-3.4.0-sol10-x86-local.gz
#pkgadd -d gcc-3.4.6-sol10-x86-local
#pkgadd -d libiconv-1.11-sol10-x86-local.gz
#pkgadd -d libgcc-3.4.6-sol10-x86-local.gz
#pkgadd -d libintl-3.4.0-sol10-x86-local.gz
4. 修改 .profile文件
在 .profile文件中增加如下内容
export LD_LIBRAEY_PATH=/usr/local/lib:.
export CC=gcc
详细出处参考:http://www.jb51.net/os/Solaris/1701.html
相关文章推荐
- Solaris 10 x86系统下安装gcc过程
- Solaris 10 x86系统上添加新硬盘过程
- Solaris 10 x86环境下安装gcc
- Solaris 10 x86系统上添加新硬盘
- gcc在solaris上安装的过程
- Solaris 10(x86)构建Oracle 11gR2 RAC之--配置系统环境(2)
- Android系统开发(1)——GCC编译器的编译和安装过程
- Solaris 10 x86系统上添加新硬盘
- Solaris 10(x86)构建Oracle 11gR2 RAC之--配置系统环境(2)
- Solaris 10(x86)安装 weblogic 10
- RHEL5.4 x86_64 GCC 4.1.2 升级到4.7.0版过程(含安装MPFR、GMP、MPC过程)
- 安装solaris_11.2与windows双系统(VM10模拟实现)(一)
- 在Solaris 10 X86上安装Oracle 10g RAC详解 (2)
- 转:在solaris 10 u3 x86上安装oracle 10g r2时,按照安装手册
- 我的x86系统可以安装Solaris或者OpenSolaris吗?
- solaris 10下安装gcc
- 在Solaris 10 X86上安装Oracle 10g RAC详解 (1)
- 转:在solaris 10 u3 x86上安装oracle 10g r2时,按照安装手册
- 在安装linux X86-64的Oracle10201时,在链接过程中出现gcc错误
- CentOS学习10_CentOS系统安装过程和配置细节