免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2890 | 回复: 3
打印 上一主题 下一主题

刚学solaris,遇到几个问题。。。。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-06-27 12:08 |只看该作者 |倒序浏览
我的gcc出什么问题了呢?怎么办?\r\n\r\n怎么装openwin?\r\n\r\nCDE呢?    \r\n\r\n给出点东西\r\n\r\nbash-2.05$ PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/sbin:/usr/cc\r\ns/bin:/usr/ucb:/usr/openwin/bin:.;export PATH\r\nbash-2.05$ cat p.c\r\nmain(){\r\nprintf(\"hello world\";\r\n}\r\nbash-2.05$ gcc -o p p.c\r\ngcc: installation problem, cannot exec `as\': No such file or directory\r\nbash-2.05$ ls -la /usr/openwin/\r\ntotal 20\r\ndrwxr-xr-x   3 root     bin          512 Nov 30  2002 .\r\ndrwxr-xr-x  22 root     sys          512 Jun 20 16:14 ..\r\ndrwx------   2 root     root        8192 Nov 30  2002 lost+found\r\nbash-2.05$ ls -la /usr/dt/\r\ntotal 4\r\ndrwxrwxr-x   2 root     bin          512 Nov 30  2002 .\r\ndrwxr-xr-x  22 root     sys          512 Jun 20 16:14 ..\r\nbash-2.05$
kaka 该用户已被删除
2 [报告]
发表于 2003-06-27 22:44 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
3 [报告]
发表于 2003-06-27 23:10 |只看该作者

刚学solaris,遇到几个问题。。。。

是啊,怎么你也在这里,我刚装的gcc,怎么又要我重装:(\r\n我机器里的linux也坏了\r\n\r\nmount: error 6 mounting ext3\r\npivotroot: pivot_root (/sysroot,sysroot/initrd) failed: 2\r\nfreeing unused kernel memory: 304k freed\r\nkernel panic: no init found. try passing init=option to kernel\r\n\r\n不知道怎么搞,顺便这里也问下

论坛徽章:
0
4 [报告]
发表于 2003-06-29 21:36 |只看该作者

刚学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自问自答,两天没人回答,看来好象没人玩编程,都是管理的:(
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP