Search code examples
rubuntug++gnugsl

R BayesVarSel on Ubuntu installation


I'm trying to install the BayesVarSel package on a ubuntu 12 box on AWS EC2. It works fine on my windows 7 machine (R 2.15.1).

I've attached a screenshot of the error message. It appears to be an issue with the GNU GSL library. I couldn't find a quick way to install GSL (ie sudo apt-get GSL, etc.) so I wanted to see if others have had a similar issue. I'm open to other packages with similar functionality.enter image description here

EDIT: A couple other things I've tried without luck : enter image description here

enter image description here


Solution

  • I was able to recreate the error with Ubuntu 12.04.1 LTS (desktop) running in VirtualBox. As @Dirk Eddelbuettel suggested, sudo apt-cache search libgsl produced a useful list of packages. It's not clear why that didn't work on your machine.

    I installed libgsl with:

    sudo apt-get install libgsl0ldbl
    sudo apt-get install libgsl0-dev
    

    Now BayesVarSel compiles and loads without error.