代码之家  ›  专栏  ›  技术社区  ›  qwr

r岭包未定义符号:回归函数

  •  0
  • qwr  · 技术社区  · 7 年前

    我如何安装 ridge 在R中打包而不获取以下未定义的符号错误?

    ** R
    ** data
    ** inst
    ** preparing package for lazy loading
    ** help
    *** installing help indices
    ** building package indices
    ** testing if installed package can be loaded
    Error: package or namespace load failed for ‘ridge’ in dyn.load(file, DLLpath = DLLpath, ...):
     unable to load shared object '/home/qwr/R/x86_64-pc-linux-gnu-library/3.4/ridge/libs/ridge.so':
      /home/qwr/R/x86_64-pc-linux-gnu-library/3.4/ridge/libs/ridge.so: undefined symbol: regression_wrapper_function
    Error: loading failed
    Execution halted
    ERROR: loading failed
    * removing ‘/home/qwr/R/x86_64-pc-linux-gnu-library/3.4/ridge’
    
    The downloaded source packages are in
        ‘/tmp/Rtmp5AEXdl/downloaded_packages’
    Warning message:
    In install.packages("ridge") :
      installation of package ‘ridge’ had non-zero exit status
    
    1 回复  |  直到 7 年前
        1
  •  1
  •   qwr    7 年前

    * installing *source* package ‘ridge’ ...
    ** package ‘ridge’ successfully unpacked and MD5 sums checked
    checking for gsl-config... no
    configure: WARNING: gsl-config not found, is GSL installed?
    configure: WARNING: ridge will be installed but some functions will be unavailable
    configure: creating ./config.status
    

    使用安装(在Ubuntu 18.04上) sudo apt install libgsl-dev