mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-26 21:30:55 +08:00
Merge pull request #1881 from geekpi/master
[Translated]Linux FAQs with Answers--How to fix “fatal error: openssl/ae...
This commit is contained in:
commit
0c8cc00646
@ -1,32 +0,0 @@
|
|||||||
Translating---------geekpi
|
|
||||||
|
|
||||||
|
|
||||||
Linux FAQs with Answers--How to fix “fatal error: openssl/aes.h: No such file or directory”
|
|
||||||
================================================================================
|
|
||||||
> **Question**: I am trying to compile a program on Linux, but the compilation fails with an error saying: "fatal error: openssl/aes.h: No such file or directory". How can I install the requested header file and solve this problem on [insert your Linux distro]?
|
|
||||||
|
|
||||||
fatal error: openssl/aes.h: No such file or directory
|
|
||||||
|
|
||||||
If you encounter this error during compilation, this is because of the following: The program you are trying to build is using OpenSSL, but necessary development files (libraries and header files) required to link with OpenSSL are missing on your Linux platform.
|
|
||||||
|
|
||||||
To fix this problem, you have to install **OpenSSL development package**, which is available in standard repositories of all modern Linux distributions.
|
|
||||||
|
|
||||||
To install OpenSSL development package on Debian, Ubuntu or their derivatives:
|
|
||||||
|
|
||||||
$ sudo apt-get install libssl-dev
|
|
||||||
|
|
||||||
To install OpenSSL development package on Fedora, CentOS or RHEL:
|
|
||||||
|
|
||||||
$ sudo yum install openssl-devel
|
|
||||||
|
|
||||||
After installing the package, try recompiling the program.
|
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
via: http://ask.xmodulo.com/fix-fatal-error-openssl.html
|
|
||||||
|
|
||||||
作者:[作者名][a]
|
|
||||||
译者:[译者ID](https://github.com/译者ID)
|
|
||||||
校对:[校对者ID](https://github.com/校对者ID)
|
|
||||||
|
|
||||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
|
@ -0,0 +1,29 @@
|
|||||||
|
Linux 有问必答 -- 如何修复“fatal error: openssl/aes.h: No such file or directory”
|
||||||
|
================================================================================
|
||||||
|
> **Question**:我尝试在Linux编译一个程序,但是编译失败并报了一个错,“fatal error: openssl/aes.h: No such file or directory”。我该怎样安装要求的头文件并在我的Linux上解决这个问题?
|
||||||
|
|
||||||
|
fatal error: openssl/aes.h: No such file or directory
|
||||||
|
|
||||||
|
如果你在编译时遇到这个错误,这可能是下面的原因:你尝试编译的程序使用OpenSSL,但是需要和OpenSSL链接的文件(库和头文件)在你Linux平台上缺少。
|
||||||
|
|
||||||
|
要解决这个问题,你需要安装**OpenSSL 开发包**,这在所有的现代Linux发行版的标准软件仓库中都有。
|
||||||
|
|
||||||
|
要在Debian、Ubuntu或者其他衍生版上安装OpenSSL:
|
||||||
|
|
||||||
|
$ sudo apt-get install libssl-dev
|
||||||
|
|
||||||
|
要在Fedora、CentOS或者RHEL上安装OpenSSL开发包:
|
||||||
|
|
||||||
|
$ sudo yum install openssl-devel
|
||||||
|
|
||||||
|
安装完后,尝试重新编译程序。
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
via: http://ask.xmodulo.com/fix-fatal-error-openssl.html
|
||||||
|
|
||||||
|
作者:[作者名][a]
|
||||||
|
译者:[geekpi](https://github.com/geekpi)
|
||||||
|
校对:[校对者ID](https://github.com/校对者ID)
|
||||||
|
|
||||||
|
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
Loading…
Reference in New Issue
Block a user