共享lib安装

时间:2013-07-16 06:03:45

标签: r

我是Ubuntu的新手..

我正在尝试使用共享库选项在Ubuntu中安装R,我遇到了一些错误。 以下是我遵循的步骤以及安装时出现的错误。如果我错过了什么,请帮助我/纠正我。

首先我在sources.list文件中添加了cran链接。据我所知,这将有助于我下载最新版本的R。

#Editing sources.list
sudo gedit /etc/apt/sources.list

#There are the lines added in sources.list file
deb http://cran.ms.unimelb.edu.au/bin/linux/ubuntu raring/
deb http://mirror.cse.iitk.ac.in/ubuntu/ raring-backports main restricted universe

#To enable secure key
gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -

#updating the ubuntu repositories 
sudo apt-get update

#building R dependents
sudo apt-get build-dep r-base
sudo apt-get install r-base

这实际安装了R-.3.0.1

我再次下载了R-3.0.1.tar.gz并解压缩然后我尝试启用共享lib工具。这些是我遵循的步骤。当我检查make文件时,显示一些错误。我不太清楚配置有什么问题。请帮我一下

cd ~/Downloads
tar -xzf R-3.0.1.tar.gz
cd R-3.0.1
./configure --enable-R-shlib
make check

以下是错误消息:

sivaji@VB:~/Downloads/R-3.0.1$ make check
make[1]: Entering directory `/home/sivaji/Downloads/R-3.0.1/tests'
make[2]: Entering directory `/home/sivaji/Downloads/R-3.0.1/tests'
make[3]: Entering directory `/home/sivaji/Downloads/R-3.0.1/tests/Examples'
/bin/bash: ../../bin/R: No such file or directory
make[3]: *** [test-Examples-Base] Error 127
make[3]: Leaving directory `/home/sivaji/Downloads/R-3.0.1/tests/Examples'
make[2]: *** [test-Examples] Error 2
make[2]: Leaving directory `/home/sivaji/Downloads/R-3.0.1/tests'
make[1]: *** [test-all-basics] Error 1
make[1]: Leaving directory `/home/sivaji/Downloads/R-3.0.1/tests'
make: *** [check] Error 2

请帮助。提前谢谢。

1 个答案:

答案 0 :(得分:0)

make check检查您刚编译的程序是否正常。你需要先编译它,例如使用make(无参数)或make -j 8(如果您有多个核心,则更快)。您还需要使用sudo make install安装它。

相关问题