请问如下环境变量应该如何设置
应该放到什么地方呢?原文说加到“your .cshrc (or other startup) file”,根本找不到这个文件啊。我用的是RH 9.0,原文如下。请大家帮忙。
Several environment variables are required for the RenderMan Artist Tool applications to function correctly. The RAT tools utilize a combination of your searchpath and environment variables to specify versions and locations of the various components of the toolset. You'll find that this simple mechanism allows you to quickly switch between versions of RAT and RenderMan. Please add the following lines to your .cshrc (or other startup) file:
# RMANTREE establishes the location of your prman distribution
# RATTREE establishes the location of your RAT distribution
# RATDOCTREE establishes the location of your Pixar documentation distribution
# RMANFB establishes your framebuffer display program
# MAYA_PLUG_IN_PATH tells maya's plugin manager where to consider looking
# for plugins.
# MAYA_SCRIPT_PATH establishes the location of maya scripts.
# MAYA_LOCATION establishes the location of maya - used below for convenience only
# XBMLANGPATH establishes the location of additional icons
# LD_LIBRARY_PATH establishes the search order used by the dynamic loader
# to locate shared objects
# path established the searchpath for the execution of programs.Because
# RAT tools execute other programs (eg: MTOR launches glimpse), this path
# governs application versions.
#
setenv RMANTREE /opt/pixar/prman-10.0
setenv RATTREE /opt/pixar/rat-5.0
setenv RATDOCTREE /opt/pixar/docs-5.0
setenv RMANFB it
setenv AW_LOCATION /usr/aw
setenv MAYA_LOCATION $AW_LOCATION/maya
setenv MAYA_PLUG_IN_PATH$RATTREE/bin
setenv MAYA_SCRIPT_PATH $RATTREE/lib/mtor/resources
setenv XBMLANGPATH "$RATTREE/lib/mtor/resources/%B"
setenv LD_LIBRARY_PATH "$MAYA_LOCATION/lib:$RATTREE/bin"
if ($RATTREE == $RMANTREE) then
set path = ($path $RMANTREE/bin)
else
set path = ($path $RATTREE/bin $RMANTREE/bin)
endif 请大家帮忙 rh9 默认用的是 bash
原文说加到“your .cshrc (or other startup) file
ls -a ~/.bashrc #《---- 这个文件吧
//
要是你想修改的话先备份
cd ~/
cp .bashrc .bashrc.bak
vi .bashrc
# bash 的最后添加这些,不过语法得改一下
export RMANTREE=/opt/pixar/prman-10.0 # <---改成这种形式,下同.
setenv RATTREE /opt/pixar/rat-5.0
setenv RATDOCTREE /opt/pixar/docs-5.0
setenv RMANFB it
setenv AW_LOCATION /usr/aw
setenv MAYA_LOCATION $AW_LOCATION/maya
setenv MAYA_PLUG_IN_PATH $RATTREE/bin
setenv MAYA_SCRIPT_PATH $RATTREE/lib/mtor/resources
setenv XBMLANGPATH "$RATTREE/lib/mtor/resources/%B"
setenv LD_LIBRARY_PATH "$MAYA_LOCATION/lib:$RATTREE/bin"
#
# 下面的 path 是否试 bash 中的 PATH ?
# 你如果运行有问题你换一下试试。
#
if [ $RATTREE = $RMANTREE ]; then # <--- if 语法要改
export path=$path:$RMANTREE/bin # <---- 这里这样改一下试试, 下同
else
set path = ($path $RATTREE/bin $RMANTREE/bin)
fi
谢谢斑竹的指导,我在linux上不了网,现在马上去试。
另外,请问把这些内容加到
/etc/profile
里面也是一样的吗?
修改内容是否应该这样:
export RMANTREE=/opt/pixar/prman-10.0
export RATTREE=/opt/pixar/rat-5.0
export RATDOCTREE=/opt/pixar/docs-5.0
export RMANFB=it
export AW_LOCATION=/usr/aw
export MAYA_LOCATION=$AW_LOCATION/maya
export MAYA_PLUG_IN_PATH=$RATTREE/bin
export MAYA_SCRIPT_PATH=$RATTREE/lib/mtor/resources
export XBMLANGPATH="$RATTREE/lib/mtor/resources/%B"
export LD_LIBRARY_PATH="$MAYA_LOCATION/lib:$RATTREE/bin"
if [ $RATTREE = $RMANTREE ]; then
export path=$path:$RMANTREE/bin
else
export path=$path:$RATTREE/bin:$RMANTREE/bin
fi
另外,我装的软件,RAT,是在RH7.3下面的版本,我现在装的是RH9,请问一般来说需要改哪些地方呢?
谢谢。 嗯,可以写到 /etc/profile中,不过备份先!!
那个 path 问题我觉得还是用 PATH
也就是改成:
export PATH=$PATH:$RMANTREE/bin
这样的形式。
//
这个没有 rh9 下的版本吗?
没有用过,你装的是 xxxx.bin 吗?
你可以试试看! 在Maya里面装载的路径是找到了,应该没大问题,不过还是装载不了,估计就是版本的兼容问题了。
RenderMan Artist Tools本来就是稀有资源,在windows下的版本都是很难找,不过还能有,呵呵。在Linux下的版本就很罕见了,估计没几个人能装上的原因。
软件一共是5个rpm包:
license-2.0-0.i386.rpm
docs-5.5-RH7.2.i386.rpm
prman-11.3-0.i386.rpm
(这三个是不分版本的)
alfserver-2.5-RH7.2.i386.rpm
(这个可以不装)
rat-5.5.1-RH7.3.i386.rpm
(问题的关键就是这个包)
一般情况下可能需要改哪些地方呢? 你启动或运行这个程序的时候有什么提示吗?最好能从终端中启动,把程序输出的信息贴出来,
不太明白你说的改动? 我把path改成path后启动不了了……
连ls,vi这些命令都认不到了,cd还能认。
可能是什么原因呢? 也可能是这些改动的原因:
我照说明来做的。
Running the License Server
After installing your license, you will need to start a license server daemon on the license server host. The license server daemon can be manually started on a host by using the shell script /opt/pixar/license-version/startlm.sh. The script may be invoked interactively by any user or from the system startup. The license manager needs no special privileges to run.
In order to have the license server be started automatically, you may want to install an rc.d script. For example:
#!/bin/sh
# Start the license manager
case "$1" in
'start')
( cd /opt/pixar/license-1.0 ; ./startlm.sh) > /dev/null 2>&1
;;
'stop')
( cd /opt/pixar/license-1.0 ; ./stoplm.sh) > /dev/null 2>&1
;;
*)
echo "usage: $0 {start|stop}"
;;
esac
can be placed into the directory /etc/rc2.d and renamed to S99startlm.
Running the Alfred Maitre-d
If you have decided to run an Alfred Maitre-d, and you have already configured alfred.ini (see the above section on Alfred), you will need to ensure that the maitre-d machine is running the alfred maitre-d before running the alfred UI or dispatcher on other machines.
The alfred maitre-d is started by running alfred with the -maitre_d flag. The alfred executable is located by default in /opt/pixar/rat-version/bin. It should not be run as root, since it does not require special permissions.
In order to have the license server be started automatically, you may want to install an rc.d script. For example:
#!/bin/sh
# Start the license manager
case "$1" in
'start')
( cd /opt/pixar/rat-5.0/bin ; ./alfred -maitre_d) > /dev/null 2>&1
;;
'stop')
( cd /opt/pixar/rat-5.0/bin ; ./alfred -maitre_d) > /dev/null 2>&1
;;
*)
echo "usage: $0 {start|stop}"
;;
esac
can be placed into the directory /etc/rc2.d and renamed to S99maitred.
那个改动是问题的关键呢?
应该怎么恢复呢?我没软驱。 我把path改成path后启动不了了……
连ls,vi这些命令都认不到了,cd还能认。
可能是什么原因呢?
这个 path 是大写!
出现无法找到 ls, vi ??
你 echo $PATH 看看,如果没有解决,在你的 /etc/profile 中的
#!/bin/sh
#<-------- 这之后添加
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11"
//
至于你贴的这两个脚本,我不太清楚它的使用,看它说明是要你
将这两个脚本改名 放到 /etc/rc2.d 目录中 .... 是的,那两个脚本我就是做好了,放到了/ect/rc2.d目录中。
现在的问题是启动不了X,Ctral+Alt+F1退出也无法来用init 3命令,说都不认识这些命令。
现在好象就只能用cd,怎么解决应该? 老兄你能把你的 echo $PATH 输出贴出来吗?
我也有个参考啊 马上哈,我菜,刚才没理解你意思。
不知道这个命令能不能用。 echo $PATH
的结果是
/opt/pixar/rat-5.5.1/bin:/opt/pixar/prman-11.3/bin:/root/bin
前面那两个是我设置的,下面应该怎么操作?
/opt/pixar/rat-5.5.1/bin:/opt/pixar/prman-11.3/bin:/root/bin
前面那两个是我设置的
//
你怎么设置的,是用上面的 /etc/profile 吗? 没有 /root/bin 这个目录!
//
如果找不到命令你可以手动增加 shell 搜索路径
PATH=$PATH:/bin:/usr/bin:/usr/loca/bin:/usr/bin/X11
页:
[1]
2