Installing Rglpk on linux

后端 未结 3 927
慢半拍i
慢半拍i 2021-01-19 01:01

I am trying to install Rglpk using the install.packages command. I am getting this error : /bin/sh: line 0: cd: GLPK: No such file or directory make: *** [GLPK.ts] Error 1

3条回答
  •  野的像风
    2021-01-19 01:50

    I got this fixed by running 'sudo make' and 'sudo make install' instead of 'make' and 'make install'. Not sure if this is good practice, someone else be the judge.

    cd $HOME
    wget http://ftp.gnu.org/gnu/glpk/glpk-4.65.tar.gz
    tar xfzv glpk-4.65.tar.gz
    mkdir GLPK
    ./configure
    sudo make
    sudo make install
    

    Then run install.packages('Rglpk') from within R.

提交回复
热议问题