我尝试在MAC OS 10.11.1中安装wget,但是当我运行时出现./configure --with-ssl=openssl此错误:
configure: error: --with-ssl=openssl was given, but SSL is not available.
Run Code Online (Sandbox Code Playgroud)
如何在OSX 10.11.1中解决此问题?
我已经下载并编译了openssl-1.1.0.
我可以加密,并使用相同的exe解密openssl(如这里)
me@ubuntu:~/openssl-1.1.0$ LD_LIBRARY_PATH=. ./apps/openssl aes-256-cbc -a -salt -in file.txt -out file.txt.enc
enter aes-256-cbc encryption password: 123
Verifying - enter aes-256-cbc encryption password:
me@ubuntu:~/openssl-1.1.0$ LD_LIBRARY_PATH=. apps/openssl aes-256-cbc -a -d -in file.txt.enc -out file.txt.dec
enter aes-256-cbc decryption password: 123
Run Code Online (Sandbox Code Playgroud)
这openssl用于:libcrypto.so.1.1, libssl.so.1.1
当我尝试openssl使用我的ubuntu上安装的解密时,它使用:
/lib/x86_64-linux-gnu/libssl.so.1.0.0, /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
我收到一个错误:
me@ubuntu:~/openssl-1.1.0$ openssl aes-256-cbc -a -d -in file.txt.enc -out file.txt.dec2
enter aes-256-cbc decryption password: 123
bad decrypt
140456117421728:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:539:
Run Code Online (Sandbox Code Playgroud)
可能是什么原因导致的 谢谢
我想知道是否有人知道使用libssl作为编程库的任何好例子.它只是通过libssl的代码挖掘试图理解它而烦人.在最糟糕的情况下,我会继续@尝试和错误.
我的Mac上有一个python django dev设置,刚升级到El Capitan.
我在virtualenv中安装了psycopg2但是当我运行我的服务器时出现以下错误 -
django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: dlopen(/Users/aidan/Environments/supernova/lib/python2.7/site-packages/psycopg2/_psycopg.so, 2): Library not loaded: libssl.1.0.0.dylib
Referenced from: /Users/aidan/Environments/supernova/lib/python2.7/site-packages/psycopg2/_psycopg.so
Reason: image not found
Run Code Online (Sandbox Code Playgroud)
我已经尝试重新安装我的virtualenv
pip install -f requirements.txt
Run Code Online (Sandbox Code Playgroud)
我尝试升级psycopg2
pip uninstall psycopg2
pip install psycopg2
Run Code Online (Sandbox Code Playgroud)
但我仍然得到同样的错误.
我也尝试过添加符号链接,/usr/lib但El Capitan的新无根的东西不允许 -
$ sudo ln -s /Library/PostgreSQL/9.2/lib/libssl.1.0.0.dylib
/usr/lib
ln: /usr/lib/libssl.1.0.0.dylib: Operation not permitted
Run Code Online (Sandbox Code Playgroud)
所以我试着/usr/local无济于事.
openssl的系统版本似乎是1.0.2 -
$ openssl version
OpenSSL 1.0.2d 9 Jul 2015
Run Code Online (Sandbox Code Playgroud)
我该如何解决?
当我打电话时uwsgi,它总是显示以下内容:
dyld: Library not loaded: libssl.1.0.0.dylib
Referenced from: /Users/xingshi/anaconda/bin/uwsgi
Reason: image not found
Trace/BPT trap: 5
Run Code Online (Sandbox Code Playgroud)
这是我Mac上的所有libssl.1.0.0.dylib:
$ locate libssl.1.0.0.dylib
/Library/PostgreSQL/9.2/lib/libssl.1.0.0.dylib
/Library/PostgreSQL/9.2/pgAdmin3.app/Contents/Frameworks/libssl.1.0.0.dylib
/Users/xingshi/anaconda/lib/libssl.1.0.0.dylib
/Users/xingshi/anaconda/pkgs/openssl-1.0.1c-0/lib/libssl.1.0.0.dylib
/opt/local/lib/libssl.1.0.0.dylib
Run Code Online (Sandbox Code Playgroud)
而我uwsgi在anaconda
$which uwsgi
/Users/xingshi/anaconda/bin/uwsgi
Run Code Online (Sandbox Code Playgroud)
有任何想法吗 ?
我有一个使用libssl的简单C程序.
在Linux上,我安装了openssl-dev包并使用以下行编译程序:
gcc test_libssl.c -o test_libssl -lcrypto -lssl
Run Code Online (Sandbox Code Playgroud)
现在我想在我的Mac上做同样的事情.同一行导致:
fatal error: 'openssl/conf.h' file not found
Run Code Online (Sandbox Code Playgroud)
我尝试用home-brew via安装openssl(openssl-dev没有用) brew install openssl
这给了我:
...
==>安装openssl
==>正在下载https://www.openssl.org/source/openssl-1.0.2a.tar.gz curl:(22)请求的URL返回错误:404 Not Found
我发现了一个没有答案的相关问题.
我也试过了
brew info openssl
Run Code Online (Sandbox Code Playgroud)
并得知这一点
这个公式只是keg.Mac OS X已经提供此软件并且并行安装另一个版本会造成各种麻烦.
Apple不赞成使用OpenSSL来支持自己的TLS和加密库
为了能够在OS X上编译libssl-C程序,我需要做什么/安装?
或者,首先是一个坏主意(鉴于上面的警告)?
更新:
我用brew安装了openssl.我不确定这是不是问题,但我更新了brew.以啤酒的建议
您应该将/ usr/local的所有权和权限更改回您的用户帐户. sudo chown -R $(whoami):admin/usr/local
并考虑到这个问题.
然后,根据@Alex Reynolds的建议,我成功编译了它
gcc test_libssl.c -o test_libssl -lssl -lcrypto -L/usr/local/opt/openssl/lib -I/usr/local/opt/openssl/include
Run Code Online (Sandbox Code Playgroud) 我正在使用Ubuntu 12.04 - 服务器并且始终如一:
/usr/lib/libcrypto.so.1.0.0:没有可用的版本信息(由/usr/lib/libpython2.7.so.1.0要求)
和
/usr/lib/libssl.so.1.0.0:没有可用的版本信息(由/usr/lib/libpython2.7.so.1.0要求)
没有任何模式的错误消息.它可以像运行vi一样简单.文件在那里,它们不是链接.
在学习了ldap服务器的基础知识的同时,在编译和安装OpenLDAP之后,使用其网站上的说明开始了这一点.我当然删除了openLDAP以尝试删除问题.我还重新安装了OpenSSL和libssl1.0.0来尝试测试该解决方案.
任何帮助将不胜感激,不幸的是谷歌没有用.
sudo apt-get install libssl1.1
正在读取软件包列表...已完成 构建依赖关系树...已完成 正在读取状态信息...已完成 软件包 libssl1.1 不可用,但被另一个软件包引用。这可能意味着该包丢失、已过时或只能从其他来源获得
E:软件包“libssl1.1”没有安装候选者
尝试在AWS lambda上为Python中的Pusher服务部署包.
当我运行像这样的简单代码
from pusher import Pusher
def pusherTest(context, event):
mypusher = Pusher(app_id=u'***', key=u'***', secret=u'***')
mypusher.trigger('testchannel', 'testevent', {u'some': u'data'})
Run Code Online (Sandbox Code Playgroud)
我得到了这个堆栈跟踪.
libssl.so.1.0.0: cannot open shared object file: No such file or directory: ImportError
Traceback (most recent call last):
File "/var/task/Lambda.py", line 3, in pusherTest
mypusher = Pusher(app_id=u'***', key=u'***', secret='***')
File "/var/task/pusher/pusher.py", line 42, in __init__
from pusher.requests import RequestsBackend
File "/var/task/pusher/requests.py", line 12, in <module>
import urllib3.contrib.pyopenssl
File "/var/task/urllib3/contrib/pyopenssl.py", line 54, in <module>
import OpenSSL.SSL
File "/var/task/OpenSSL/__init__.py", line 8, in <module> …Run Code Online (Sandbox Code Playgroud) 我一直在使用Ubuntu 16.04。最近我对 PHP 安装做了一些实验,恐怕我已经严重破坏了东西。我试过
sudo apt install php7.0
Run Code Online (Sandbox Code Playgroud)
但它显示了依赖性和损坏的包错误
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php7.0 : Depends: libapache2-mod-php7.0 but it …Run Code Online (Sandbox Code Playgroud)