故事要从php不能用了说起。。。
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib
mac本来安装的是php@5.6 毫无预兆的运行时候出现了上面的提示,从此就进入了怎么都解决不了的悲催世界里,全部网上能找的办法都找遍了,愣是解决不了。于是卸载了php5.6,想重装却发现brew 没有7之前的版本,好吧,开始我的编译安装之旅吧
1、到官网下载apache2.4
http://httpd.apache.org/download.cgi#apache24
2、解压
tar -jxvf httpd-2.4.37.tar.bz2
3、进入解压后的文件夹
cd httpd-2.4.37
4、配置
./configure --prefix=/usr/local/httpd --enable-mods-shared=most --enable-so --enable-module=so --enable-cache --enable-file-cache --enable-mem-cache --enable-disk-cache --enable-ssl --enable-dav --enable-maintainer-mode --with-ssl=/usr/local/Cellar/openssl/1.0.2o_1 --with-apr=/usr/local/Cellar/apr/1.6.5/bin/apr-1-config --with-apr-util=/usr/local/Cellar/apr-util/1.6.1_1/bin/apu-1-config
ps:由于apr、apr-util、openss