brew 安装个软件,没装成功却开始报这个错了:
Already up-to-date.
Error: Calling needs :cxx11 is disabled! There is no replacement.
Please report this to the chrisdeeming/legacyphp
tap: /usr/local/Homebrew/Library/Taps/chrisdeeming/homebrew-legacyphp/Formula/php@7.0.rb:41
我晕。现在都7.2了,这个源还报错?看了下官网。原来这个源不再需要:needcxx11了。OK,官网说重新brew update一下就好了。
重新brew update。恢复正常
1、https://github.com/chrisdeeming/homebrew-legacyphp/pull/4
2、https://github.com/chrisdeeming/homebrew-legacyphp/issues/2
简单的弄一下。因为有时候要改配置,然后打开mamp,点击重启会耗时特别长。。。。所以简单的弄了一下
XML/HTML代码
- #!/bin/bash
-
- function start(){
- /Applications/MAMP/Library/bin/httpd -f "/Library/Application Support/appsolute/MAMP PRO/conf/httpd.conf" -k start
- }
-
- function stop(){
- /Applications/MAMP/Library/bin/httpd -f "/Library/Application Support/appsolute/MAMP PRO/conf/httpd.conf" -k stop
- }
-
- function restart(){
- (stop)
- (start)
- }
-
- function status(){
- ps aux|grep httpd
- }
-
- echo "which do you want to?input the number."
- echo "1. start"
- echo "2. stop"
- echo "3. restart"
- echo "4. status"
- read num
-
- case "$num" in
- [1] ) (start);;
- [2] ) (stop);;
- [3] ) (restart);;
- [4] ) (status);;
- *) echo "exit";;
- esac