【问题标题】:Phing not working on OSX / MAMPPhing 在 OSX / MAMP 上不起作用
【发布时间】:2023-03-20 05:57:01
【问题描述】:

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

> 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

感谢您的帮助。

【问题讨论】:

    标签: php macos mamp phing


    【解决方案1】:

    可能是路径问题。尝试检查 phing 在哪里:

    locate phing
    

    或者,如果你有时间的话:

    find / -name "phing"
    

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

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

    【讨论】:

    • the >find / -name "phing" 帮助我找到了我正在寻找的答案!谢谢!
    猜你喜欢
    • 2016-11-28
    • 2011-08-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多