在Mac上更新php版本 [英] Updating php version on mac
问题描述
我想更新php版本,目前我有5.5.38,我想要7.1
I want to update php version, currently I have 5.5.38 and I want 7.1
到目前为止,我尝试使用的是该命令:
What I tried so far is using this command:
curl -s https://php-osx.liip.ch/install.sh | bash -s 7.1
我尝试了几种不同的版本,但是没有一个起作用.
它将打开bash_profile一秒钟,然后出现Received SIGHUP or SIGTERM
和以下消息:
I tried several different versions but none of them worked.
It opens bash_profile for a second and then I get Received SIGHUP or SIGTERM
and message below:
写入/Users/Morpheus/.bash_profile.save.6的缓冲区
Buffer written to /Users/Morpheus/.bash_profile.save.6
不确定发生了什么问题以及为什么它不会更新...
Not sure what went wrong and why it won't update...
有什么想法吗?
谢谢.
推荐答案
使用自制软件:
我可能会建议安装自制软件为您管理此类安装.安装完成后,您只需运行以下命令即可安装php7.1
Use Homebrew:
I would probably recommend installing homebrew to manage such installations for you. With that installed you can just run the following command to install php7.1
brew update
brew install php@71
这篇关于在Mac上更新php版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!