2010-03-03 51 views
1

這是我迄今爲止嘗試:Phing不是OSX/MAMP工作

> cd /Applications/MAMP/bin/php5/bin/ 
> ./pear channel-discover pear.phing.info 
> ./pear install phing/phing 

安裝運行。如果我運行命令未列出

>ls -al 

Phing

> ./pear/ info phing/phing 

About pear.phing.info/phing-2.4.0 
================================= 
Release Type   PEAR-style PHP-based Package 
Name     phing 

: 我可以運行以下。

您現在可以運行這個命令:

> ./phing -h 
-bash: ./phing: No such file or directory 
> phing 
-bash: phing: command not found 

感謝您的幫助。

回答

1

也許它是一個路徑問題。嘗試以檢查phing是:

locate phing 

甚至,如果你有一段時間了:

find/-name "phing" 

然後,如果你找到它,你可以增加它的路徑.profile文件:

echo "export PATH=/path/to/phing/:$PATH" >> ~/.profile 
+0

the > find/-name「phing」 幫助我找到我正在尋找的答案!謝謝! – 2010-03-03 17:00:09