免费注册 查看新帖 |

Chinaunix

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

在/etc/profile中找不到path环境变量???? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-12-11 11:34 |只看该作者 |倒序浏览
我新装了solaris10,在上面装了gcc新版需修改path\r\n打开/etc/profile 怎么里面只有这些:\r\n\r\n#ident  \"@(#)profile    1.18    98/10/03 SMI\"   /* SVr4.0 1.3   */\r\n\r\n# The profile that all logins get before using their own .profile.\r\n\r\ntrap \"\"  2 3\r\nexport LOGNAME PATH\r\n\r\nif [ \"$TERM\" = \"\" ]\r\nthen\r\n        if /bin/i386\r\n        then\r\n                TERM=sun-color\r\n        else\r\n                TERM=sun\r\n        fi\r\n        export TERM\r\nfi\r\n\r\n#       Login and -su shells get /etc/profile services.\r\n#       -rsh is given its environment in its .profile.\r\n\r\ncase \"$0\" in\r\n-sh | -ksh | -jsh)\r\n\r\n        if [ ! -f .hushlogin ]\r\n        then\r\n                /usr/sbin/quota\r\n                #       Allow the user to break the Message-Of-The-Day only.\r\n                trap \"trap \'\' 2\"  2\r\n                /bin/cat -s /etc/motd\r\n                trap \"\" 2\r\n\r\n                /bin/mail -E\r\n                case $? in\r\n                0)\r\n                        echo \"You have new mail.\"\r\n                        ;;\r\n                2)\r\n                        echo \"You have mail.\"\r\n                        ;;\r\n                esac\r\n        fi\r\nesac\r\n\r\numask 022\r\ntrap  2 3\r\n\r\n\r\n________________________________\r\n在里面打不到path\r\n应该上哪找啊????\r\n我是新手,请各位英雄帮忙啊!!!!!!

论坛徽章:
0
2 [报告]
发表于 2005-12-11 13:43 |只看该作者
if it hasn\'t needed envionment variables,you must add them into this profile file.at first,solaris profile file hasn\'t \"path\" variable.

论坛徽章:
0
3 [报告]
发表于 2005-12-12 08:07 |只看该作者
把你需要的环境变量添加进去.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP