无法读取opensslv.h:没有这样的文件或目录 [英] unable to read opensslv.h:No such file or directory
问题描述
当我尝试安装 OpenSSL 版本时,我收到以下错误 1.0.1h 在MAC OS(山狮)终端,
无法读取opensslv.h:没有这样的文件或目录
我是在终端中使用以下命令,
sudo /tmp/ssl/openssl-1.0.1h/Configure darwin64-x86_64-cc --prefix = / usr无线程共享
我按照此链接。这里有什么问题?
我正在按照此链接的说明进行操作。这里有什么问题?
您没有按照说明进行操作。看起来你错过了第06步:
06。 cd进入openssl-1.0.0c如下...
< blockquote>
sudo /tmp/ssl/openssl-1.0.1h/Configure darwin64-x86_64-cc --prefix = / usr无线程共享
不要 make
与 sudo
。尝试这样:
/tmp/ssl/openssl-1.0.1h/Configure darwin64-x86_64-cc --prefix = / usr没有线程共享
make -f /tmp/ssl/openssl-1.0.1h/Makefile
sudo make -f /tmp/ssl/openssl-1.0.1h/Makefile install
如果您 cd
到 / tmp / ssl / openssl-1.0.1h /
。然后它减少到:
tar xzf openssl-1.0.1h.tar.gz
cd openssl-1.0.1h
./Configure darwin64-x86_64-cc --prefix = / usr无线程共享
make
sudo make install
您还可以使用以下内容来避免记住三元组:
export KERNEL_BITS = 64
./config shared no-threads shared no-ssl2 ...
安装完成后,OpenSSL将安装在 / usr / local / ssl
除非您使用 - openssldir
或 - 前缀
更改它。
sudo /tmp/ssl/openssl-1.0.1h/Configure darwin64-x86_64-cc --prefix = / usr no-threads shared
- prefix = / usr
可能是一个痛点为你。苹果附带OpenSSL 0.9.8,它不是与OpenSSL 1.0.1h二进制兼容。一旦您将系统版本的OpenSSL替换为您的版本,您应该会遇到无法解释的崩溃和不明原因的错误结果。
最后,您 sudo make install
,您应该 make test
以确保一切正常。
I am getting the following error when I try to install OpenSSL version 1.0.1h on MAC OS (Mountain Lion) Terminal,
unable to read opensslv.h:No such file or directory
I am using the following command in the Terminal,
sudo /tmp/ssl/openssl-1.0.1h/Configure darwin64-x86_64-cc ––prefix=/usr no-threads shared
I am following the instructions on this link. What is wrong here?
I am following the instructions on this link. What is wrong here?
You did not follow the instructions. It looks like you missed step 06:
06. cd into openssl-1.0.0c as follow...
sudo /tmp/ssl/openssl-1.0.1h/Configure darwin64-x86_64-cc ––prefix=/usr no-threads shared
Don't make
with sudo
. Try this:
/tmp/ssl/openssl-1.0.1h/Configure darwin64-x86_64-cc ––prefix=/usr no-threads shared
make -f /tmp/ssl/openssl-1.0.1h/Makefile
sudo make -f /tmp/ssl/openssl-1.0.1h/Makefile install
Its usually easier if you cd
into /tmp/ssl/openssl-1.0.1h/
first. Then it reduces to:
tar xzf openssl-1.0.1h.tar.gz
cd openssl-1.0.1h
./Configure darwin64-x86_64-cc ––prefix=/usr no-threads shared
make
sudo make install
You could also use the following to avoid memorizing the triplet:
export KERNEL_BITS=64
./config shared no-threads shared no-ssl2 ...
After make install, OpenSSL will be installed in /usr/local/ssl
unless you change it with --openssldir
or ––prefix
.
sudo /tmp/ssl/openssl-1.0.1h/Configure darwin64-x86_64-cc ––prefix=/usr no-threads shared
––prefix=/usr
is probably going to be a pain point for you. Apple ships with OpenSSL 0.9.8, which is not binary compatible with OpenSSL 1.0.1h. You should experience unexplained crashes and unexplained incorrect results once you replace the system's version of OpenSSL with your version.
Finally, before you sudo make install
, you should make test
to ensure everything is OK.
这篇关于无法读取opensslv.h:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!