how to install R package-ridge

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.


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/’:
/usr/lib64/R/library/ridge/libs/ 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
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

, got message,

/bin/ld: cannot find -lgsl
/bin/ld: cannot find -lgslcblas
collect2: error: ld returned 1 exit status
make: *** [] Error 1
ERROR: compilation failed for package ‘ridge’
* removing ‘/usr/lib64/R/library/ridge’
Installation failed: Command failed (1)

succeeded  after


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.