Solaris 10 x86系统下安装gcc过程
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
温馨提示:本网使用的部分文字和图片来源于互联网,若有版权问题,请与我们联系!
相关文章推荐
-
Win7不独占,英特尔联手Unity开发安卓x86游戏
8月21日消息,处理器芯片巨头英特尔、热门游戏引擎Unity两家公司正式宣布建立合作关系,后者旗下的Unity 4.x/Unity 5游戏引擎将首次原生支持安卓x86平台,共同开发x86架构的游戏和应用软件。 据英特尔开发者社区介绍,本次合作对英特尔、全球的游戏开发商的
-
solaris系统下更改IP地址
1、ifconfig命令暂时修改 ifconfig用来配置网卡的IP地址,改动后即生效, 但并不保存,下次启动后失效。 #ifconfig -a ---得出网卡的名字,一般第一块100M网卡名为pcn0 #ifconfig pcn0 down ---先把网卡pcn0的 服务 暂时停止 #ifconfig pcn0 192.168.180.80 net
-
Solaris 10 x86系统下安装gcc过程
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文件中添加如下
-
Solaris 10 x86系统上添加新硬盘
过程: 1. 识别新增硬盘 root:/# format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c0d0 DEFAULT cyl 1302 alt 2 hd 255 sec 63 /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0 Specify disk (enter its number): ^C root:/# devfsadm root:/# forma