我尝试按照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>
任何建议都将是完美的。
谢谢
马诺斯
答案 0 :(得分:0)
我通过替换来解决此问题
http://pear.php.net/install-pear-nozlib.phar
与https://pear.php.net/install-pear-nozlib.phar