Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/28.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 尽管已安装程序包,但仍存在libssl/openssl错误_Linux - Fatal编程技术网

Linux 尽管已安装程序包,但仍存在libssl/openssl错误

Linux 尽管已安装程序包,但仍存在libssl/openssl错误,linux,Linux,我有以下问题 尽管安装了libssl-dev和openssl-dev,但我的两台虚拟机都显示了相同的错误。 是否有其他解决方案,或者我需要再次尝试设置它 gcc:error:/opt/local/include/openssl/sha.h:没有这样的文件或目录 gcc:error:/opt/local/include/openssl/e_os2.h:没有这样的文件或目录 gcc:error:/opt/local/include/openssl/opensslconf.h:没有这样的文件或目录 m

我有以下问题

尽管安装了libssl-dev和openssl-dev,但我的两台虚拟机都显示了相同的错误。 是否有其他解决方案,或者我需要再次尝试设置它

gcc:error:/opt/local/include/openssl/sha.h:没有这样的文件或目录 gcc:error:/opt/local/include/openssl/e_os2.h:没有这样的文件或目录 gcc:error:/opt/local/include/openssl/opensslconf.h:没有这样的文件或目录
make:**[obj/scrypt.o]错误1

您的构建环境似乎在/opt/local中寻找openssl,但系统包不太可能安装在该位置。您可能需要更新Makefile或其他工具以指向正确的目录。我无法在那里复制,我想知道如何在Makefile中链接目录。非常感谢!在我的make life中,LIB是这样表述的:我如何链接正确的位置?LIBS=$addprefix-L、$BOOST_LIB_PATH$BDB_LIB_PATH$OPENSSL_LIB_PATH现在收到此错误:由于符号链接,我猜gcc:致命错误:无法指定-o和-c、-S或-E,多个文件编译已终止。
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