简体   繁体   English

在Mac OSX Mojave 10.14上安装pear的问题

[英]Issue with installing pear on Mac OSX Mojave 10.14

I tried to follow the walkthrough from here to install pear on my mac os x mojave. 我尝试按照此处的演练在我的Mac OS X Mojave上安装pear。

So went to /tmp folder and got the install-pear-nozlib.phar and after that tried to run it but no luck. 因此转到/ tmp文件夹并获得install-pear-nozlib.phar,然后尝试运行它,但没有运气。 The response was an html with 404. 响应是带有404的html。

Here is what happened on my terminal 这是我终端上发生的事情

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>

Any advise about it will be perfect. 任何建议,将是完美的。

Thanks, 谢谢,

Manos 马诺斯

我通过将http://pear.php.net/install-pear-nozlib.phar替换为https://pear.php.net/install-pear-nozlib.phar解决了此问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM