dongpu2476 2019-08-13 12:20
浏览 272
已采纳

在我的mac上安装带有自制软件的php 71时出错

I have been developing with Vallet for some time now. Today i wanted to update laravel 5.4 to 5.5. Before doing so i run composer global update. Causing Vallet to stop working.

Fist i tried to do the following:

cd ~/.composer/

sudo chown -R $(whoami) vendor

source: https://laracasts.com/discuss/channels/general-discussion/getting-valet-not-found-error

I did not solve the issue. Then i decided to reinstall Vallet. Hereby i did the following:

I followed this: https://github.com/laravel/valet/issues/321

Stop and uninstall services

sudo brew services stop php71 dnsmasq nginx
brew uninstall php71 dnsmasq nginx

Remove related config files and valet home folder

sudo rm -r /usr/local/etc/php /usr/local/etc/nginx /usr/local/etc/dnsmasq.conf
sudo rm -r ~/.valet /var/root/.valet

Install services i tried this:

brew install php71
$ brew tap homebrew/php
$ brew install php71
brew install homebrew/php/php71 

All gave the following error:

MacBook-Pro:~ mblivier$ brew install homebrew/php/php71 
==> Installing php71 from homebrew/php Error: The following formula: php71 
cannot be installed as a binary package and must be built from source.

Install the Command Line Tools:xcode-select --install

I new in this and don't know how to solve this. Any suggestions how to install php and go further with reinstalling Vallet?

  • homebrew is installed and working
  • 写回答

2条回答 默认 最新

  • duanshaiduhao2471 2019-08-13 12:49
    关注

    You need xcode to build php, so first run:

    xcode-select --install
    

    to install xcode and later you can brew install php71

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘