我正在使用AWS deeplearning Ubuntu AMI尝试按照此处的说明安装XGboost GPU版本R软件包:http://xgboost.readthedocs.io/en/latest/build.html#building-with-gpu-support
我已经克隆了回购,创建了一个新的构建目录然后执行:
cmake .. -DUSE_CUDA=ON -DR_LIB=ON
错误:
/usr/lib/R/bin/exec/R: symbol lookup error: /usr/lib/libblas.so.3: undefined symbol: gotoblas
/usr/lib/R/bin/exec/R: symbol lookup error: /usr/lib/libblas.so.3: undefined symbol: gotoblas
/usr/lib/R/bin/exec/R: symbol lookup error: /usr/lib/libblas.so.3: undefined symbol: gotoblas
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find LibR (missing: LIBR_HOME LIBR_INCLUDE_DIRS LIBR_LIB_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindLibR.cmake:173 (find_package_handle_standard_args)
CMakeLists.txt:165 (find_package)
我认为这是因为libblas.so.3文件位于/ home / ubuntu / src / OpenBLAS而不是更标准的位置。只需要稍微轻推一下就可以弥补我对linux env变量知识的不足并将两者联系起来。谢谢!
答案 0 :(得分:0)
您可以尝试创建从预期位置到共享库文件或包含预期共享库文件的目录的实际位置的符号链接,以解决此问题。