我需要在我的ubuntu natty 11.04机器上安装RHadoop。我试过这些命令“apt-get install r-base”,但我得到了未满足的依赖
root@cldx-1063-961:/home/rhadoop/dependency# apt-get install r-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
g++-4.5 : Depends: gcc-4.5-base (= 4.5.3-12ubuntu2) but 4.5.2-8ubuntu2 is to be installed
Depends: gcc-4.5 (= 4.5.3-12ubuntu2) but 4.5.2-8ubuntu4 is to be installed
Depends: libstdc++6-4.5-dev (= 4.5.3-12ubuntu2) but 4.5.2-8ubuntu4 is to be installed
Depends: libgmp10 but it is not installable
Depends: libmpfr4 (>= 3.1.0) but 3.0.0-7 is to be installed
gcc-4.5 : Depends: gcc-4.5-base (= 4.5.2-8ubuntu4) but 4.5.2-8ubuntu2 is to be installed
Depends: cpp-4.5 (= 4.5.2-8ubuntu4) but 4.5.2-8ubuntu2 is to be installed
gfortran-4.2 : Depends: gcc-4.2 (= 4.2.4-1ubuntu3) but it is not installable
Depends: libmpfr1ldbl but it is not installable
libblas-dev : Depends: libblas3gf (= 1.2-1.3ubuntu3) but 1.2-7 is to be installed
libbz2-dev : Depends: libbz2-1.0 (= 1.0.4-2ubuntu4.2) but 1.0.5-6ubuntu1 is to be installed
libgcc1 : Depends: gcc-4.5-base (= 4.5.2-8ubuntu4) but 4.5.2-8ubuntu2 is to be installed
libgfortran3 : Depends: gcc-4.5-base (= 4.5.1-7ubuntu2) but 4.5.2-8ubuntu2 is to be installed
libgomp1 : Depends: gcc-4.5-base (= 4.5.2-8ubuntu4) but 4.5.2-8ubuntu2 is to be installed
libstdc++6 : Depends: gcc-4.5-base (= 4.5.2-8ubuntu4) but 4.5.2-8ubuntu2 is to be installed
libstdc++6-4.5-dev : Depends: gcc-4.5-base (= 4.5.2-8ubuntu4) but 4.5.2-8ubuntu2 is to be installed
Depends: g++-4.5 (= 4.5.2-8ubuntu4) but 4.5.3-12ubuntu2 is to be installed
r-base : Depends: r-base-core (>= 2.15.2-1natty0) but 2.6.2-2 is to be installed
Depends: r-recommended (= 2.15.2-1natty0) but 2.6.2-2 is to be installed
Recommends: r-base-html but it is not going to be installed
Recommends: r-doc-html but it is not going to be installed
r-base-dev : Depends: libjpeg62-dev but it is not installable
Depends: libncurses5-dev but it is not installable
Depends: libpcre3-dev but it is not installable
Depends: libpng12-dev but it is not installable
Depends: libreadline5-dev but it is not installable
Depends: zlib1g-dev but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
请帮我解决安装步骤。非常感谢您的任何帮助!!!
答案 0 :(得分:0)
最好将您的系统更新为Ubuntu 12.04(LTS)&然后尝试安装r-base,最新R版本,rhdfs,rmr等。
更新至12.04后,请尝试以下命令&封装
sudo apt-get update
sudo apt-get build-dep r-base
sudo apt-get install r-base r-recommended r-base-dev
答案 1 :(得分:0)
您可以尝试以root用户身份登录,然后为单独的程序包执行“R CMD INSTALL”。