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_LIBRARY_PATH
before going into R for the install.packages("sparkTable")
procedure. I get this error during the installation process. Any ideas?
* installing *source* package ‘Rglpk’ ...
** package ‘Rglpk’ successfully unpacked and MD5 sums checked
** libs
/bin/sh: line 0: cd: GLPK: No such file or directory
make: *** [GLPK.ts] Error 1
ERROR: compilation failed for package ‘Rglpk’
* removing ‘/opt/R/R-3.1.0/lib64/R/library/Rglpk’
ERROR: dependency ‘Rglpk’ is not available for package ‘sparkTable’
* removing ‘/opt/R/R-3.1.0/lib64/R/library/sparkTable’
install.packages("sparkTable", dependencies=TRUE)
helps to solve the problem of dependencies. About GLPK, did you install the headers? – Cariocainstall.packages("sparkTable", dependencies=TRUE)
. I installed GLPK by downloading it withwget http://ftp.gnu.org/gnu/glpk/glpk-4.54.tar.gz
and running./configure && make && make install
. How do I install or point to the headers? – Hamachi/usr/local/lib
setexport CPATH=/usr/local/include
then it works :) – Florella