mac osx 10.11.2安装PHP7提示“configure: error: libcrypto not found!”
刚升级到了最新的系统OS X 10.11.2,在安装PHP7时
./configure --prefix=/usr/local/php7 --with-config-file-path=/usr/local/php7/etc --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-mysqli --with-pdo-mysql --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --disable-fileinfo --enable-maintainer-zts
时,提示错误:
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... yes
checking for OpenSSL support... yes
checking for Kerberos support... no
checking whether to use system default cipher list instead of hardcoded value... no
checking for RAND_egd... no
checking for pkg-config... no
checking for OpenSSL version... >= 0.9.8
checking for CRYPTO_free in -lcrypto... no
configure: error: libcrypto not found!
百度了一下,这个和openssl有关系 ,目前openssl已经安装过了,版本为0.9.8,此错误好像是openssl-devel开发包里的内容,但用brew install 安装好像并没有找到此包,不知应该如何解决。。。
已经解决,重新用brew install openssl安装了一次openssl,然后指定了openssl的路径。
--with-openssl=/usr/local/opt/openssl
原来试了不行,来回折腾了下,竟然又可以了。
相关阅读:
webpack怎么处理没有模块规范的js,比如zepto等
为什么function a(b){alert(b)}(1) 不会报错
CEF项目编译问题
express如何部署到生产环境?
Mysql中,一张表的数据删除的同时,在另一张表中插入的问题。
Java接口内定义泛型方法如何实现
环境变量提示warning怎么解决
thinkphp中的一个奇葩现象
在width值与浏览器宽度是固定比例的情况下,css怎么设置div的高恒等于宽?
Flask 怎样禁止通过http访问我们的python文件
Python判断编码的问题
浏览器的Chart set(UTF8,GBK等)设置对Javascript无效?
App中前端静态资源如何缓存并且实时更新最新版本 ?
tomcat服务器上的项目的日志在哪里?logs里面的日志只有post/get 请求,没有报错信息呀?
git 如何克隆或下载一个仓库子文件夹?
两个网站如果要用redis共享SESSION的话,那么这两个网站的域名必须这样配置吗?
postgresql偶尔会出现些commit,执行很长时间,请问怎么解决?
开发移动端应用时如何实现免注册,同一设备再次连接服务器时仍可以识别出来
WAMPserver安装出问题
求助memcache的问题?