The second day of metabolic modelling work introduced me to more installation stuff required to complete the platform set-up. This all started when I was going through the vignette of the R package sybil and trying to run the example analysis shown in the vignette. I tried to run the flux balance analysis example and it said that I needed glpkAPI. It turns out that I have to first install GNU GLPK. The glpk that was available on ubuntu repository didn't work. So, I installed glpk as follows
wget http://ftp.gnu.org/gnu/glpk/glpk-4.48.tar.gz
wget http://ftp.gnu.org/gnu/glpk/glpk-4.48.tar.gz.sig
sudo gpg --keyserver keys.gnupg.net --recv-keys 5981E818
sudo gpg --keyserver keys.gnupg.net --recv-keys 5981E818
./configure
make
make install
After this, I tried installing glpkAPI using install.packages, but it didn't work (even with --configure-args specified correctly). Downloading the package to the local drive and installing it from the command console worked. Here is the command:
sudo R CMD INSTALL glpkAPI_1.2.6.tar.gz --configure-args="--with-glpk-lib=/usr/local/lib --with-glpk-include=/usr/local/include --enable-gmp=no"
Comments