GLPK: No such file or directory error when trying to install R package

前端 未结 8 1852
陌清茗
陌清茗 2020-12-10 04:10

I am trying to install sparkTable in R 3.1.0 which depends on Rglpk. I manually installed GPLK on the system and added the libs folder to LD_

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-10 04:50

    I had this problem too. The following steps solved this issue for me. My current setup:

    • OS: Scientifc Linux version 6.5 (on a High Performance Cluster Server)
    • local user, no root access.
    • GLPK was not installed

    Install GLPK in a local directory:

    wget http://ftp.gnu.org/gnu/glpk/glpk-4.54.tar.gz
    tar xfzv glpk-4.54.tar.gz
    mkdir GLPK
    cd glpk-4.54
    ./configure --prefix=/home//GLPK
    make
    make install
    

    Install Rglpk (0.6-3):

    cd ~
    wget http://cran.r-project.org/src/contrib/Rglpk_0.6-3.tar.gz
    export LIBRARY_PATH=/home//GLPK/lib
    R CMD INSTALL Rglpk_0.6-3.tar.gz
    

提交回复
热议问题