我有以下问题。
虽然安装了libssl-dev和openssl-dev,但我的两个Virtualmachines都显示相同的错误。 是否还有其他解决方法,或者我是否需要尝试重新设置?
gcc:错误:/opt/local/include/openssl/sha.h:没有这样的文件或目录 gcc:错误:/opt/local/include/openssl/e_os2.h:没有这样的文件或目录 gcc:错误:/opt/local/include/openssl/opensslconf.h:没有这样的文件或目录 make:*** [obj / scrypt.o]错误1
答案 0 :(得分:0)
traaitt@ubuntu:~$ cd /opt/
traaitt@ubuntu:/opt$ cd local
traaitt@ubuntu:/opt/local$ sudo mkdir include
traaitt@ubuntu:/opt/local$ cd include
traaitt@ubuntu:/opt/local/include$ sudo mkdir openssl
traaitt@ubuntu:/opt/local/include$ cd openssl
traaitt@ubuntu:/opt/local/include/openssl$
sudo ln -s /path/to/file /path/to/symlink
sudo ln -s /usr/include/openssl/sha.h /opt/local/include/openssl/sha.h
sudo ln -s /usr/include/openssl/e_os2.h /opt/local/include/openssl/e_os2.h
sudo ln -s /usr/include/x86_64-linux-gnu/openssl /opt/local/include/openssl/opensslconf.h