目前我正在尝试安装 Zend 框架。该框架带有一个命令行工具,zf.sh
适用于 *nix 系统和zf.bat
Windows 系统。要使用zf.sh
,我尝试将其添加到我的环境路径中。不知何故,我无法让它工作。
我的~/.profile
export PATH=$PATH:/Applications/MAMP/bin/php/php5.3.6/bin/
export ZEND=/Applications/MAMP/bin/php/php5.3.6/bin/zf.sh
# 2012-06-05 make alias for zf
# Make an alias for the zf.sh so we can call it with zf instead of zf.sh
alias zf=/Applications/MAMP/bin/php/php5.3.6/bin/zf.sh
# Add the path to the Zend files so that the zf.sh can work with them
ZEND_TOOL_INCLUDE_PATH=/Applications/MAMP/bin/php/php5.3.6/lib/php/Zend
我的/etc/paths
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
~/Development/play-2.0
/Applications/Racket\ v5.2/bin/
/Applications/MAMP/bin/php/php5.3.6/bin/
但是当我这样做时echo $PATH
/usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/X11R6/bin
或者zf
fish: Unknown command 'zf'