- 论坛徽章:
- 0
|
刚学solaris,遇到几个问题。。。。
8.8 如何单独获得Solaris编译环境
Q: 我需要安装哪些包
A: Seán Boran
需要下列Solaris安装包:
SUNWbtool、SUNWsprot、SUNWtoo、SUNWhea、SUNWarc、SUNWlibm、SUNWlibms
可以用pkginfo [-l]检查是否安装了这些包
$ pkginfo SUNWbtool SUNWsprot SUNWtoo SUNWhea SUNWarc SUNWlibm SUNWlibms
system SUNWarc Archive Libraries
system SUNWbtool CCS tools bundled with SunOS
system SUNWhea SunOS Header Files
system SUNWlibm Sun WorkShop Bundled libm
system SUNWlibms Sun WorkShop Bundled shared libm
system SUNWsprot Solaris Bundled tools
system SUNWtoo Programming Tools
$
可以从Solaris CD中单独安装缺少的包(pkgadd)
象make这样的工具安装在/usr/ccs/bin,增加到$PATH环境变量中。但是这个make和
某些工具相冲突,比如BIND,此时应该安装GNU make,确认GNU make的搜索路径位于
/usr/ccs/bin/make之前。另外,$PATH环境变量中/usr/ccs/bin应该位于/usr/ucb之
前。
Q4:
I have installed gcc, but when I try to compile something I get:
gcc: installation problem, cannot exec 'as' :No such file or directory.
A4:
The 'as' program can be found in the directory
/usr/ccs/bin/
You will need to add this to your UNIX PATH. If you cannot find this in the above directory, you may not have installed all of the Sun packages. See the next question also.
--------------------------------------------------------------------------------
Q5:
When I try to compile a program using gcc I get a message like: /usr/ccs/bin/ld: cannot open values-Xa.0: No such file or directory
A5:
Here is a response to this from the Solaris FAQ at http://www.wins.uva.nl/pub/solaris/solaris2/ :
6.2) What about the linker, the assembler and make?
Solaris ships with everything you need, except for the compiler.
All this stuff lives in /usr/ccs/bin and /usr/ccs/lib.
If you still can't find it, make sure you have the following
packages installed on your system:
for tools (sccs, lex, yacc, make, nm, truss, ld, as):
SUNWbtool, SUNWsprot, SUNWtoo
for libraries & headers:
SUNWhea, SUNWarc, SUNWlibm, SUNWlibms
SUNWdfbh, SUNWcg6h
for ucb compat:
SUNWsra, SUNWsrh
These packages are all on the Solaris 2.x CD.
我的系统只装了一个
bash-2.05$ pkginfo SUNWbtool SUNWsprot SUNWtoo SUNWhea SUNWarc SUNWlibm SUNWlib
ms
system SUNWlibms Sun WorkShop Bundled shared libm
ERROR: information for "SUNWbtool" was not found
ERROR: information for "SUNWsprot" was not found
ERROR: information for "SUNWtoo" was not found
ERROR: information for "SUNWhea" was not found
ERROR: information for "SUNWarc" was not found
ERROR: information for "SUNWlibm" was not found
bash-2.05$
自问自答,两天没人回答,看来好象没人玩编程,都是管理的:( |
|