我尝试按照 here 中的演练进行操作在我的 mac os x mojave 上安装 pear。
然后转到/tmp 文件夹并获取 install-pear-nozlib.phar,然后尝试运行它但没有成功。 响应是带有 404 的 html。
这是我终端上发生的事情
MacBook-Pro-2:tmp manoshatzi$ sudo php install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin
Password:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /install-pear-nozlib.phar was not found on this server.</p>
<hr>
<address>Apache/2.4.25 (Debian) Server at pear.php.net Port 80</address>
</body></html>
关于它的任何建议都将是完美的。
谢谢,
马诺斯
最佳答案
我通过更换解决了这个问题
http://pear.php.net/install-pear-nozlib.phar
和 https://pear.php.net/install-pear-nozlib.phar
关于php - 在 Mac OSX Mojave 10.14 上安装 pear 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54451601/