I tried to follow the walkthrough from here to install pear on my mac os x mojave.
So went to /tmp folder and got the install-pear-nozlib.phar and after that tried to run it but no luck. The response was an html with 404.
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
解决了此问题
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.