作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我尝试按照其主站点的说明安装 OpenHPI
http://openhpi.org/OpenHPI/Manual/Installationmake
返回错误2:
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wall -Wpointer-arith
-Wformat=2 -Wformat-security -Wformat-nonliteral -Wcast-qual
-Wcast-align -Wshadow -Wwrite-strings -Wredundant-decls
-Wno-strict-aliasing -fno-strict-aliasing -Wno-unused-value -D_GNU_SOURCE
-D_REENTRANT -fexceptions -export-dynamic -o openhpid server.o openhpid-posix.o
libopenhpidaemon.la ../marshal/libopenhpimarshal.la ../transport/libopenhpitransport.la
-lstdc++ -pthread -lgthread-2.0 -lglib-2.0 -lm -lpthread
libtool: link: g++ -g -O2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-Wall -Wpointer-arith -Wformat=2 -Wformat-security -Wformat-nonliteral
-Wcast-qual -Wcast-align -Wshadow -Wwrite-strings -Wredundant-decls -Wno-strict-aliasing
-fno-strict-aliasing -Wno-unused-value -D_GNU_SOURCE -D_REENTRANT -fexceptions
-o .libs/openhpid server.o openhpid-posix.o -pthread -Wl,--export-dynamic ./.libs/libopenhpidaemon.a
/usr/local/src/openhpi-3.8.0/utils/.libs/libopenhpiutils.so -lgcrypt -lgmodule-2.0
/usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so -lcrypto ../marshal/.libs/libopenhpimarshal.so
../transport/.libs/libopenhpitransport.so -lstdc++ -lgthread-2.0 -lglib-2.0 -lm -lpthread -pthread
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_CTX_free'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_get_error'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_get_fd'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_read'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_shutdown'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `OPENSSL_init_ssl'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_CTX_new'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `BIO_f_ssl'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `TLS_client_method'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_CTX_set_default_verify_paths'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_CTX_set_options'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_connect'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_free'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_write'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_set_fd'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_new'
我尝试使用重新安装openssl
apt-get install --reinstall openssl
和手动,但这不起作用。
libopenhpi_ssl.so
中添加了 '-lssl'
# Linker flags that can not go in dependency_libs.
inherited_linker_flags='-pthread'
# Libraries that this one depends upon.
dependency_libs='-lssl -lcrypto -lgthread-2.0 -lglib-2.0 -lm -lpthread'
此错误消失了,但随后又发生了另一个错误。无论如何,我认为更改配置文件不是一个好的解决方案。
最佳答案
我手动安装了 glib2、gcrypto 及其所有依赖项。
这解决了问题。
关于linux - 如何在 openhpi 安装期间解决 openssl 问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62706008/
我尝试按照其主站点的说明安装 OpenHPI http://openhpi.org/OpenHPI/Manual/Installationmake返回错误2: -I/usr/lib/x86_64-li
我是一名优秀的程序员,十分优秀!