1,像偉大的SUN默哀1 min
2,使用 open Solaris live CD 0906安裝一個測試環境。
運行gcc
root@opensolaris:~# gcc
-bash: gcc: command not found
root@opensolaris:~#
沒有找到gcc,安裝
圖形介面
System->Administration –> Package Manager
Search all package for “GCC” or “SUNWgcc”
Install /update packages
“installation completed successfully”
root@opensolaris:~# cd /usr/sfw/bin
root@opensolaris:/usr/sfw/bin# ls gcc
gcc
root@opensolaris:/usr/sfw/bin# ./gcc
gcc: no input files
root@opensolaris:/usr/sfw/bin# ./gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs
Configured with: /builds2/sfwnv-111a/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++,f77,objc --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-20050802)
root@opensolaris:/usr/sfw/bin#
没有评论:
发表评论