在Mac OS X Lion 10.7中配置错误-OpenSSL需要库'crypto' [英] Configure error in Mac OS X Lion 10.7 -- Library 'crypto' is required for OpenSSL

查看:502
本文介绍了在Mac OS X Lion 10.7中配置错误-OpenSSL需要库'crypto'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试brew install postgres并收到以下错误:

datadir=/usr/local/Cellar/postgresql/9.2.4/share/postgresql --docdir=/usr/local/Cellar/postgresql
checking for library containing gss_init_sec_context... -lgssapi_krb5
checking for library containing com_err... none required
checking for library containing krb5_sendauth... none required
checking for CRYPTO_new_ex_data in -lcrypto... no
configure: error: library 'crypto' is required for OpenSSL

OpenSSL似乎安装正确(我brew安装了它,没有任何抱怨,并且brew医生没有提出任何关于它的标志),并且我的XCode开发人员工具也是最新的.到处寻找如何在Mac(OS X Lion 10.7)上安装加密货币,并且几乎没有资源.任何想法出什么问题或如何解决?

OpenSSL seems to be installed correctly (I brew installed it, with no complaints, and brew doctor doesn't raise any flags about it), and my XCode developer tools are also up to date. Looked around for how to install crypto on a mac, (OS X Lion 10.7), and there are surprisingly few resources. Any ideas what's wrong or how to fix it?

我尝试卸载/重新安装OpenSSL.

I tried uninstalling/reinstalling OpenSSL.

推荐答案

问题最终基于一个莫名其妙的空libcrypto.dylib文件.有一个备份(libcrypto.dylib.BAK),我只是用它覆盖了空文件,所有问题都消失了.首先不知道那是怎么发生的,但是如果有人遇到类似的问题,我会在usr/lib/中寻找.BAK文件,并(如果有的话)查看相关文件是否为空.

The problem ended up being based on an inexplicably empty libcrypto.dylib file. There was a backup (libcrypto.dylib.BAK), and I just overwrote the empty file with it and all the problems went away. No idea how that happened in the first place, but if anyone's having similar problems, I'd look for .BAK files in usr/lib/ and (if there are any) see if the associated files are empty.

这篇关于在Mac OS X Lion 10.7中配置错误-OpenSSL需要库'crypto'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆