像"libgtk + -devel"或"python-devel"等开发包的效用是什么?它们是否包含图书馆的来源?它与libgtk +等非开发包有什么不同?
尝试根据安装Git博客上的说明在Unix和Linux机器上安装git,但是失败了以下错误
make prefix=/usr/local all
GIT_VERSION = 1.8.3.4
* new build flags
CC credential-store.o
In file included from cache.h:4,
from credential-store.c:1:
git-compat-util.h:221:25: warning: openssl/ssl.h: No such file or directory
git-compat-util.h:222:25: warning: openssl/err.h: No such file or directory
In file included from credential-store.c:1:
cache.h:11:21: warning: openssl/sha.h: No such file or directory
cache.h:19:18: warning: zlib.h: No such file or directory
In file included from credential-store.c:1:
cache.h:21: syntax error before "z_stream"
cache.h:21: warning: no semicolon at end of struct or …Run Code Online (Sandbox Code Playgroud) 您可以将此问题视为如何在Ubuntu上安装OpenSSL C++库的后续问题?
我正在尝试在需要OpenSSL 1.0.0的Ubuntu 10.04 LTS上构建一些代码.
Ubuntu 10.04 LTS附带OpenSSL 0.9.8k:
$ openssl version
OpenSSL 0.9.8k 25 Mar 2009
Run Code Online (Sandbox Code Playgroud)
所以在运行sudo apt-get install libssl-dev和构建之后,运行ldd确认我已经在0.9.8中链接了:
$ ldd foo
...
libssl.so.0.9.8 => /lib/i686/cmov/libssl.so.0.9.8 (0x00110000)
...
libcrypto.so.0.9.8 => /lib/i686/cmov/libcrypto.so.0.9.8 (0x002b0000)
...
Run Code Online (Sandbox Code Playgroud)
如何安装OpenSSL 1.0.0和1.0.0开发包?
更新:我在阅读SB的答案后(但在尝试之前)写了这个更新,因为很明显我需要解释下载和安装OpenSSL 1.0.0的明显解决方案不起作用:
成功执行以下操作后(在INSTALL文件中推荐):
$ ./config
$ make
$ make test
$ make install
Run Code Online (Sandbox Code Playgroud)
......我仍然得到:
OpenSSL 0.9.8k 25 Mar 2009
Run Code Online (Sandbox Code Playgroud)
...和:
$ sudo apt-get install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state …Run Code Online (Sandbox Code Playgroud) 我提取了Cmake zip 文件(从 github 下载)并尝试安装它但发生了错误。我尝试安装OpenSSL并尝试安装 Cmake,但仍然出现错误(相同)
终端输出如下:
CMake 3.16.20191118, Copyright 2000-2019 Kitware, Inc. and Contributors
Found GNU toolchain
C compiler on this system is: gcc
C++ compiler on this system is: g++
Makefile processor on this system is: make
g++ has setenv
g++ has unsetenv
g++ does not have environ in stdlib.h
g++ has stl wstring
g++ has <ext/stdio_filebuf.h>
---------------------------------------------
make: 'cmake' is up to date.
loading initial cache file /root/Cmake/Bootstrap.cmk/InitialCacheFlags.cmake
-- Could NOT find OpenSSL, try …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用Certbot续订Let's Encrypt证书.它停止工作,我不知道为什么.这是错误:
ImportError: /root/.local/share/letsencrypt/local/lib/python2.7/site-packages/cryptography/
hazmat/bindings/_openssl.so: undefined symbol: OPENSSL_sk_num
Run Code Online (Sandbox Code Playgroud)
我安装了最新的OpenSSL版本
OpenSSL 1.1.0d 26 Jan 2017
Run Code Online (Sandbox Code Playgroud)
我尝试通过执行以下操作来调试此问题.首先我尝试在python控制台中添加导入OpenSSL.它工作得很好,没有错误.但是,当我尝试
. ~/.local/share/letsencrypt/bin/activate
Run Code Online (Sandbox Code Playgroud)
然后>>> import OpenSSl
我得到错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/OpenSSL/rand.py", line 12, in <module>
from OpenSSL._util import (
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/OpenSSL/_util.py", line 6, in <module>
from cryptography.hazmat.bindings.openssl.binding import Binding
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 14, in <module>
from cryptography.hazmat.bindings._openssl import ffi, lib …Run Code Online (Sandbox Code Playgroud)