0

我需要在我的 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).

请帮助我完成安装步骤。您的任何帮助将不胜感激!!!

4

2 回答 2

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 链接 2 链接 3 链接 4的说明来安装 rmr 和 rhdfs

于 2013-10-21T12:14:02.193 回答
0

您可以尝试以 root 身份登录,然后为单独的包执行“R CMD INSTALL”。

于 2013-12-19T03:52:15.037 回答