raspberry-pi - restbed make install in raspberry-pi undefined reference to dlopen dlclose
问题描述
我对覆盆子和覆盆子操作系统非常缺乏经验。
我正在尝试在树莓派中安装 restbed 库。
当我做
make install
它不起作用,我得到以下信息:
pi@raspberrypi:~/restbed/build $ make install
[ 17%] Built target restbed-static
[ 17%] Built target restbed-shared
[ 17%] Linking CXX executable service_unit_test_suite
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
dso_dlfcn.c:(.text+0x10): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x20): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x2c): undefined reference to `dlclose'
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':
dso_dlfcn.c:(.text+0x1a4): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x258): undefined reference to `dlerror'
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
dso_dlfcn.c:(.text+0x2c8): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x334): undefined reference to `dlclose'
dso_dlfcn.c:(.text+0x364): undefined reference to `dlerror'
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_pathbyaddr':
dso_dlfcn.c:(.text+0x404): undefined reference to `dladdr'
dso_dlfcn.c:(.text+0x464): undefined reference to `dlerror'
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
dso_dlfcn.c:(.text+0x62c): undefined reference to `dlclose'
collect2: error: ld returned 1 exit status
test/unit/CMakeFiles/service_unit_test_suite.dir/build.make:97: recipe for
target 'test/unit/service_unit_test_suite' failed
make[2]: *** [test/unit/service_unit_test_suite] Error 1
CMakeFiles/Makefile2:177: recipe for target
'test/unit/CMakeFiles/service_unit_test_suite.dir/all' failed
make[1]: *** [test/unit/CMakeFiles/service_unit_test_suite.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
pi@raspberrypi:~/restbed/build $
解决方案
推荐阅读
- java - 如何为休息交换编写 Mockito 测试
- django - django admin 中的外键对象:
- javascript - 在 Python 中使用 Selenium 访问 JavaScript 网站中的隐藏表
- java - 如何比较 char 字符?
- arrays - 使用 TImage 的 Delphi 面向对象的蛇游戏
- android - 设置 ListView 适配器时的 Android NullPointerException
- javascript - 如何在没有特定键的情况下从 JSON 对象中获取值
- sql - 两天的价值
- android - AsyncTasks 中的同步方法
- javascript - 遍历 Handlebars 中的对象