我有一个64位Linux AMI的Amazon EC2实例。 我把我的shell改为tcsh,然后用.tcshrc设置
PATH = ".:/usr/local/lib/play-1.1:$PATH"
之后
$ source ~/.tcshrc $ echo $PATH /usr/local/lib/play-1.1:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
我不能把任何东西放到我的道路上,并由于某种原因被拿走。
我也尝试了一个别名:
$ ln -s /usr/local/lib/play-1.1/play /usr/local/bin/play $ play play: command not found
同样的结果,它不会在我的路上被拾起。 我对某些全局configuration无知吗? 我的经验是用CentOS,所以这对我来说很奇怪。
/home/notbrain notbrain@aws-dev1: echo $PATH .:/usr/local/lib/play-1.1:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin /home/notbrain notbrain@aws-dev1: ls /usr/local/bin total 8.0K 4.0K drwxr-xr-x 2 root 4.0K Jan 28 05:41 ./ 4.0K drwxr-xr-x 13 root 4.0K Jan 11 21:44 ../ 0 lrwxrwxrwx 1 root 28 Jan 28 05:41 play -> /usr/local/lib/play-1.1/play* /home/notbrain notbrain@aws-dev1: play play: Command not found. /home/notbrain notbrain@aws-dev1: sudo play sudo: play: command not found /home/notbrain notbrain@aws-dev1: /usr/local/bin/play ~ _ _ ~ _ __ | | __ _ _ _| | ~ | '_ \| |/ _' | || |_| ~ | __/|_|\____|\__ (_) ~ |_| |__/ ~ ~ play! 1.1, http://www.playframework.org ~ ~ Usage: play cmd [app_path] [--options] ~ ~ with, new Create a new application ~ run Run the application in the current shell ~ help Show play help ~ /home/notbrain notbrain@aws-dev1:
谢谢,
布赖恩
对于tcsh或csh:
set PATH = (. /usr/local/lib/play-1.1 $PATH)