Mac 下安装PHP遇到的问题
2023-09-27 14:22:24 时间
checking for CRYPTO_free in -lcrypto... no configure: error: libcrypto not found!
http://www.openssl.org/source/
openssl-0.9.8y.tar.gz
cd openssl-0.9.8y/
make clean
./Configure darwin64-x86_64-cc --shared
make
make install
./configure --prefix=/usr/local/php --with-iconv --with-zlib --enable-xml --disable-rpath --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-mysql --with-mysqli --enable-sqlite-utf8 --with-pdo-mysql --enable-ftp --with-jpeg-dir --with-freetype-dir --with-png-dir --enable-fpm --with-fpm-user=www --with-fpm-group=www
====================================================
curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1
当brew安装成功后,就可以随意安装自己想要的软件了,例如wget,命令如下:
sudo brew install wget
卸载的话,命令如下:
sudo brew uninstall wget
查看安装软件的话,命令如下:
sudo brew search /apache*/
注意/apache*/是使用的正则表达式,用/分割。
相关文章
- PHP 数组排序:内置函数、算法排序
- PHP M题 - 技巧
- 基于 Docker 的 PHP 开发环境
- 编译安装php
- PHP错误:call to undefined function imagecreatetruecolor
- php_memcache 缓存 下载-安装-配置-学习
- PHP Shell生成工具Weevely
- Memcached 笔记与总结(3)安装 php-memcache(windows 系统下)
- 《PHP、MySQL和Apache入门经典(第5版)》一一2.4 在Mac OS X上安装MySQL
- 《PHP、MySQL和Apache入门经典(第5版)》一2.4 在Mac OS X上安装MySQL
- 《PHP、MySQL和Apache入门经典(第5版)》一2.6 安装故障排除
- brew 安装 nginx 配合PHP工作
- 用PHP实现 HTTP断点续传、分块下载文件(Socket)
- 转 PHP编程过程中需要了解的this,self,parent的区别
- 安装PHP过程中,make步骤报错:(集合网络上各种解决方法)
- 安装php时,make test报错
- PHP时间戳和日期相互转换(文字有问题)
- PHP扩展代码结构详解
- 使用PHP画统计图的方法
- php使用mongodb教程
- Linux下安装libiconv使php支持iconv函数