ridge: Ridge Regression with Automatic Selection of the Penalty Parameter
Linear and logistic ridge regression functions. Additionally includes special functions for genome-wide single-nucleotide polymorphism (SNP) data.
When
install.packages("ridge")
I got the following message,
Error: package or namespace load failed for ‘ridge’ in dyn.load(file, DLLpath = DLLpath, …):
unable to load shared object ‘/usr/lib64/R/library/ridge/libs/ridge.so’:
/usr/lib64/R/library/ridge/libs/ridge.so: undefined symbol: regression_wrapper_function
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/usr/lib64/R/library/ridge’The downloaded source packages are in
‘/tmp/RtmpGolRPH/downloaded_packages’
Updating HTML index of packages in ‘.Library’
Making ‘packages.html’ … done
Warning message:
In install.packages(“ridge”) :
installation of package ‘ridge’ had non-zero exit status
from the error message, seems it depends some other library, but it does not tell us.
after check installation message from head, got,
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
gsl needed,
when run
devtools::install_github("SteffenMoritz/ridge")
, got message,
/bin/ld: cannot find -lgsl
/bin/ld: cannot find -lgslcblas
collect2: error: ld returned 1 exit status
make: *** [ridge.so] Error 1
ERROR: compilation failed for package ‘ridge’
* removing ‘/usr/lib64/R/library/ridge’
Installation failed: Command failed (1)
succeeded after
yum install gsl-devel.x86_64