我是 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 并解压缩,然后尝试启用共享库设施。这些是我遵循的步骤。当我检查 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
请帮忙。提前致谢。