【发布时间】:2018-01-15 01:59:42
【问题描述】:
我在 AWS deeplearning Ubuntu AMI 上尝试使用此处的说明安装 XGboost GPU 版本 R 包:http://xgboost.readthedocs.io/en/latest/build.html#building-with-gpu-support
我已经克隆了 repo,创建了一个新的构建目录,然后执行:
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 环境变量知识并将两者联系起来。谢谢!
【问题讨论】:
-
您能确认您的 R 安装工作正常吗?此外,通过运行
.libPaths()查看包含您的 R 包的目录。
标签: r ubuntu installation gpu xgboost