R BayesVarSel on Ubuntu installation

时间秒杀一切 提交于 2019-12-02 07:18:52

问题


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.

EDIT: A couple other things I've tried without luck :


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/14146076/r-bayesvarsel-on-ubuntu-installation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!