1

这是我迄今为止尝试过的:

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

安装运行。我可以运行以下命令:

> ./pear/ info phing/phing

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

如果我运行命令

>ls -al

未列出 Phing。

您现在可以运行以下命令:

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

谢谢你的帮助。

4

1 回答 1

1

也许它是一个路径问题。尝试检查 phing 的位置:

locate phing

甚至,如果您有时间:

find / -name "phing"

然后,如果你找到它,你可以将它的路径添加到你的 .profile 文件中:

echo "export PATH=/path/to/phing/:$PATH" >> ~/.profile
于 2010-03-03T16:43:52.753 回答