- 论坛徽章:
- 0
|
刚学solaris,遇到几个问题。。。。
8.8 如何单独获得Solaris编译环境 \r\n\r\nQ: 我需要安装哪些包 \r\n\r\nA: Seán Boran \r\n\r\n需要下列Solaris安装包: \r\nSUNWbtool、SUNWsprot、SUNWtoo、SUNWhea、SUNWarc、SUNWlibm、SUNWlibms \r\n\r\n可以用pkginfo [-l]检查是否安装了这些包 \r\n\r\n$ pkginfo SUNWbtool SUNWsprot SUNWtoo SUNWhea SUNWarc SUNWlibm SUNWlibms \r\nsystem SUNWarc Archive Libraries \r\nsystem SUNWbtool CCS tools bundled with SunOS \r\nsystem SUNWhea SunOS Header Files \r\nsystem SUNWlibm Sun WorkShop Bundled libm \r\nsystem SUNWlibms Sun WorkShop Bundled shared libm \r\nsystem SUNWsprot Solaris Bundled tools \r\nsystem SUNWtoo Programming Tools \r\n$ \r\n\r\n可以从Solaris CD中单独安装缺少的包(pkgadd) \r\n\r\n象make这样的工具安装在/usr/ccs/bin,增加到$PATH环境变量中。但是这个make和 \r\n某些工具相冲突,比如BIND,此时应该安装GNU make,确认GNU make的搜索路径位于 \r\n/usr/ccs/bin/make之前。另外,$PATH环境变量中/usr/ccs/bin应该位于/usr/ucb之 \r\n前。 \r\n\r\n\r\nQ4:\r\nI have installed gcc, but when I try to compile something I get: \r\ngcc: installation problem, cannot exec \'as\' :No such file or directory. \r\n\r\nA4:\r\nThe \'as\' program can be found in the directory \r\n/usr/ccs/bin/ \r\n\r\nYou 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. \r\n\r\n\r\n--------------------------------------------------------------------------------\r\n\r\nQ5:\r\nWhen 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 \r\nA5:\r\nHere is a response to this from the Solaris FAQ at http://www.wins.uva.nl/pub/solaris/solaris2/ : \r\n6.2) What about the linker, the assembler and make? \r\n\r\nSolaris ships with everything you need, except for the compiler.\r\nAll this stuff lives in /usr/ccs/bin and /usr/ccs/lib.\r\nIf you still can\'t find it, make sure you have the following\r\npackages installed on your system: \r\n\r\nfor tools (sccs, lex, yacc, make, nm, truss, ld, as):\r\nSUNWbtool, SUNWsprot, SUNWtoo\r\nfor libraries & headers:\r\nSUNWhea, SUNWarc, SUNWlibm, SUNWlibms\r\nSUNWdfbh, SUNWcg6h\r\nfor ucb compat:\r\nSUNWsra, SUNWsrh\r\n\r\n\r\nThese packages are all on the Solaris 2.x CD. \r\n\r\n\r\n\r\n我的系统只装了一个\r\n\r\nbash-2.05$ pkginfo SUNWbtool SUNWsprot SUNWtoo SUNWhea SUNWarc SUNWlibm SUNWlib\r\nms\r\nsystem SUNWlibms Sun WorkShop Bundled shared libm\r\nERROR: information for \"SUNWbtool\" was not found\r\nERROR: information for \"SUNWsprot\" was not found\r\nERROR: information for \"SUNWtoo\" was not found\r\nERROR: information for \"SUNWhea\" was not found\r\nERROR: information for \"SUNWarc\" was not found\r\nERROR: information for \"SUNWlibm\" was not found\r\nbash-2.05$\r\n\r\n\r\n自问自答,两天没人回答,看来好象没人玩编程,都是管理的:( |
|