R BayesVarSel on Ubuntu installation

2019-03-01 11:58发布

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

标签: r ubuntu g++ gnu gsl
2条回答
Bombasti
2楼-- · 2019-03-01 12:09

Do

 apt-cache search libgsl

and everything should be a little clearer. Those packages have existed longer than either Ubuntu or Amazon EC2 so it really should not take superhuman effort to find them.

And if apt-cache search libgsl is too difficult, try packages.ubuntu.com where you can search for the package containing the file in your error message (eg /usr/include/gsl/gsl_vector.h) and "Yes, Veronica" you can search for substrings too.

查看更多
欢心
3楼-- · 2019-03-01 12:19

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.

查看更多
登录 后发表回答