I am trying to install R on Linux (Redhat 4). But 'yum' does not seem to work... thanks for your help/hints/suggestions in advance! ------------ $ sudo cat /proc/version Linux version 2.6.34.6-54.24.amzn1.i686 (mockbuild at build-31003.build) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri Sep 17 23:13:59 UTC 2010 $ sudo yum install http://cran.cnr.berkeley.edu/bin/linux/redhat/el4/i386/R-core-2.10.0-2.el4.i386.rpm Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile Setting up Install Process R-core-2.10.0-2.el4.i386.rpm | 23 MB 00:54 Examining /var/tmp/yum-root-3gwXzS/R-core-2.10.0-2.el4.i386.rpm: R-core-2.10.0-2.el4.i386 Marking /var/tmp/yum-root-3gwXzS/R-core-2.10.0-2.el4.i386.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package R-core.i386 0:2.10.0-2.el4 set to be updated --> Processing Dependency: firefox for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: ggv for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libg2c.so.0 for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libreadline.so.4 for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libtcl8.4.so for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libtk8.4.so for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: perl(File::Copy::Recursive) for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: tetex-latex for package: R-core-2.10.0-2.el4.i386 --> Running transaction check ---> Package R-core.i386 0:2.10.0-2.el4 set to be updated --> Processing Dependency: firefox for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: ggv for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libg2c.so.0 for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libreadline.so.4 for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libtcl8.4.so for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libtk8.4.so for package: R-core-2.10.0-2.el4.i386 ---> Package perl-File-Copy-Recursive.noarch 0:0.38-4.4.amzn1 set to be updated ---> Package tetex-latex.i386 0:3.0-33.8.6.amzn1 set to be updated --> Processing Dependency: tetex-dvips = 3.0 for package: tetex-latex-3.0-33.8.6.amzn1.i386 --> Processing Dependency: tetex = 3.0 for package: tetex-latex-3.0-33.8.6.amzn1.i386 --> Processing Dependency: netpbm-progs for package: tetex-latex-3.0-33.8.6.amzn1.i386 --> Running transaction check ---> Package R-core.i386 0:2.10.0-2.el4 set to be updated --> Processing Dependency: firefox for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: ggv for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libg2c.so.0 for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libreadline.so.4 for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libtcl8.4.so for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libtk8.4.so for package: R-core-2.10.0-2.el4.i386 ---> Package netpbm-progs.i386 0:10.35.58-8.4.amzn1 set to be updated --> Processing Dependency: netpbm = 10.35.58-8.4.amzn1 for package: netpbm-progs-10.35.58-8.4.amzn1.i386 --> Processing Dependency: ghostscript for package: netpbm-progs-10.35.58-8.4.amzn1.i386 --> Processing Dependency: libnetpbm.so.10 for package: netpbm-progs-10.35.58-8.4.amzn1.i386 ---> Package tetex.i386 0:3.0-33.8.6.amzn1 set to be updated --> Processing Dependency: tetex-fonts = 3.0 for package: tetex-3.0-33.8.6.amzn1.i386 --> Processing Dependency: dialog for package: tetex-3.0-33.8.6.amzn1.i386 ---> Package tetex-dvips.i386 0:3.0-33.8.6.amzn1 set to be updated --> Processing Dependency: psutils for package: tetex-dvips-3.0-33.8.6.amzn1.i386 --> Running transaction check ---> Package R-core.i386 0:2.10.0-2.el4 set to be updated --> Processing Dependency: firefox for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: ggv for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libg2c.so.0 for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libreadline.so.4 for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libtcl8.4.so for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libtk8.4.so for package: R-core-2.10.0-2.el4.i386 ---> Package dialog.i386 0:1.1-9.20080819.1.2.amzn1 set to be updated ---> Package ghostscript.i386 0:8.15.2-9.11.11.amzn1 set to be updated --> Processing Dependency: ghostscript-fonts for package: ghostscript-8.15.2-9.11.11.amzn1.i386 ---> Package netpbm.i386 0:10.35.58-8.4.amzn1 set to be updated ---> Package psutils.i386 0:1.17-34.2.amzn1 set to be updated ---> Package tetex-fonts.i386 0:3.0-33.8.6.amzn1 set to be updated --> Running transaction check ---> Package R-core.i386 0:2.10.0-2.el4 set to be updated --> Processing Dependency: firefox for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: ggv for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libg2c.so.0 for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libreadline.so.4 for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libtcl8.4.so for package: R-core-2.10.0-2.el4.i386 --> Processing Dependency: libtk8.4.so for package: R-core-2.10.0-2.el4.i386 ---> Package ghostscript-fonts.noarch 0:5.50-13.1.1.6.amzn1 set to be updated --> Finished Dependency Resolution Error: Package: R-core-2.10.0-2.el4.i386 (/R-core-2.10.0-2.el4.i386) Requires: ggv Error: Package: R-core-2.10.0-2.el4.i386 (/R-core-2.10.0-2.el4.i386) Requires: libreadline.so.4 Error: Package: R-core-2.10.0-2.el4.i386 (/R-core-2.10.0-2.el4.i386) Requires: libtk8.4.so Error: Package: R-core-2.10.0-2.el4.i386 (/R-core-2.10.0-2.el4.i386) Requires: libtcl8.4.so Error: Package: R-core-2.10.0-2.el4.i386 (/R-core-2.10.0-2.el4.i386) Requires: libg2c.so.0 Error: Package: R-core-2.10.0-2.el4.i386 (/R-core-2.10.0-2.el4.i386) Requires: firefox You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest -- View this message in context: http://r.789695.n4.nabble.com/yum-install-not-working-for-installing-R-on-Linux-tp2998891p2998891.html Sent from the R help mailing list archive at Nabble.com.
Marc Schwartz
2010-Oct-17 15:36 UTC
[R] yum install - not working for installing R on Linux
On Oct 17, 2010, at 4:00 AM, noclue_ wrote:> > > I am trying to install R on Linux (Redhat 4). But 'yum' does not seem to > work... > thanks for your help/hints/suggestions in advance! > > ------------ > $ sudo cat /proc/version > Linux version 2.6.34.6-54.24.amzn1.i686 (mockbuild at build-31003.build) (gcc > version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri Sep 17 23:13:59 UTC > 2010 > > $ sudo yum install > http://cran.cnr.berkeley.edu/bin/linux/redhat/el4/i386/R-core-2.10.0-2.el4.i386.rpm > > Loaded plugins: fastestmirror, security > Loading mirror speeds from cached hostfile > Setting up Install Process > R-core-2.10.0-2.el4.i386.rpm > | 23 MB 00:54 > Examining /var/tmp/yum-root-3gwXzS/R-core-2.10.0-2.el4.i386.rpm: > R-core-2.10.0-2.el4.i386 > Marking /var/tmp/yum-root-3gwXzS/R-core-2.10.0-2.el4.i386.rpm to be > installed > Resolving Dependencies > --> Running transaction check > ---> Package R-core.i386 0:2.10.0-2.el4 set to be updated > --> Processing Dependency: firefox for package: R-core-2.10.0-2.el4.i386 > --> Processing Dependency: ggv for package: R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libg2c.so.0 for package: R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libreadline.so.4 for package: > R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libtcl8.4.so for package: > R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libtk8.4.so for package: R-core-2.10.0-2.el4.i386 > --> Processing Dependency: perl(File::Copy::Recursive) for package: > R-core-2.10.0-2.el4.i386 > --> Processing Dependency: tetex-latex for package: R-core-2.10.0-2.el4.i386 > --> Running transaction check > ---> Package R-core.i386 0:2.10.0-2.el4 set to be updated > --> Processing Dependency: firefox for package: R-core-2.10.0-2.el4.i386 > --> Processing Dependency: ggv for package: R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libg2c.so.0 for package: R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libreadline.so.4 for package: > R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libtcl8.4.so for package: > R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libtk8.4.so for package: R-core-2.10.0-2.el4.i386 > ---> Package perl-File-Copy-Recursive.noarch 0:0.38-4.4.amzn1 set to be > updated > ---> Package tetex-latex.i386 0:3.0-33.8.6.amzn1 set to be updated > --> Processing Dependency: tetex-dvips = 3.0 for package: > tetex-latex-3.0-33.8.6.amzn1.i386 > --> Processing Dependency: tetex = 3.0 for package: > tetex-latex-3.0-33.8.6.amzn1.i386 > --> Processing Dependency: netpbm-progs for package: > tetex-latex-3.0-33.8.6.amzn1.i386 > --> Running transaction check > ---> Package R-core.i386 0:2.10.0-2.el4 set to be updated > --> Processing Dependency: firefox for package: R-core-2.10.0-2.el4.i386 > --> Processing Dependency: ggv for package: R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libg2c.so.0 for package: R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libreadline.so.4 for package: > R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libtcl8.4.so for package: > R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libtk8.4.so for package: R-core-2.10.0-2.el4.i386 > ---> Package netpbm-progs.i386 0:10.35.58-8.4.amzn1 set to be updated > --> Processing Dependency: netpbm = 10.35.58-8.4.amzn1 for package: > netpbm-progs-10.35.58-8.4.amzn1.i386 > --> Processing Dependency: ghostscript for package: > netpbm-progs-10.35.58-8.4.amzn1.i386 > --> Processing Dependency: libnetpbm.so.10 for package: > netpbm-progs-10.35.58-8.4.amzn1.i386 > ---> Package tetex.i386 0:3.0-33.8.6.amzn1 set to be updated > --> Processing Dependency: tetex-fonts = 3.0 for package: > tetex-3.0-33.8.6.amzn1.i386 > --> Processing Dependency: dialog for package: tetex-3.0-33.8.6.amzn1.i386 > ---> Package tetex-dvips.i386 0:3.0-33.8.6.amzn1 set to be updated > --> Processing Dependency: psutils for package: > tetex-dvips-3.0-33.8.6.amzn1.i386 > --> Running transaction check > ---> Package R-core.i386 0:2.10.0-2.el4 set to be updated > --> Processing Dependency: firefox for package: R-core-2.10.0-2.el4.i386 > --> Processing Dependency: ggv for package: R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libg2c.so.0 for package: R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libreadline.so.4 for package: > R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libtcl8.4.so for package: > R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libtk8.4.so for package: R-core-2.10.0-2.el4.i386 > ---> Package dialog.i386 0:1.1-9.20080819.1.2.amzn1 set to be updated > ---> Package ghostscript.i386 0:8.15.2-9.11.11.amzn1 set to be updated > --> Processing Dependency: ghostscript-fonts for package: > ghostscript-8.15.2-9.11.11.amzn1.i386 > ---> Package netpbm.i386 0:10.35.58-8.4.amzn1 set to be updated > ---> Package psutils.i386 0:1.17-34.2.amzn1 set to be updated > ---> Package tetex-fonts.i386 0:3.0-33.8.6.amzn1 set to be updated > --> Running transaction check > ---> Package R-core.i386 0:2.10.0-2.el4 set to be updated > --> Processing Dependency: firefox for package: R-core-2.10.0-2.el4.i386 > --> Processing Dependency: ggv for package: R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libg2c.so.0 for package: R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libreadline.so.4 for package: > R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libtcl8.4.so for package: > R-core-2.10.0-2.el4.i386 > --> Processing Dependency: libtk8.4.so for package: R-core-2.10.0-2.el4.i386 > ---> Package ghostscript-fonts.noarch 0:5.50-13.1.1.6.amzn1 set to be > updated > --> Finished Dependency Resolution > Error: Package: R-core-2.10.0-2.el4.i386 (/R-core-2.10.0-2.el4.i386) > Requires: ggv > Error: Package: R-core-2.10.0-2.el4.i386 (/R-core-2.10.0-2.el4.i386) > Requires: libreadline.so.4 > Error: Package: R-core-2.10.0-2.el4.i386 (/R-core-2.10.0-2.el4.i386) > Requires: libtk8.4.so > Error: Package: R-core-2.10.0-2.el4.i386 (/R-core-2.10.0-2.el4.i386) > Requires: libtcl8.4.so > Error: Package: R-core-2.10.0-2.el4.i386 (/R-core-2.10.0-2.el4.i386) > Requires: libg2c.so.0 > Error: Package: R-core-2.10.0-2.el4.i386 (/R-core-2.10.0-2.el4.i386) > Requires: firefox > You could try using --skip-broken to work around the problem > You could try running: rpm -Va --nofiles --nodigestYou are trying to install a specific RPM from a specific CRAN repo rather than using the EPEL, which has been specifically set up to facilitate the installation of RPMs for RHEL. So it appears you made the decision to not use Fedora, which is fine. From what I can tell, the RHEL and Fedora binaries for R on CRAN are no longer being updated, in deference to using the binaries made available via the normal Fedora and RHEL/EPEL repos. The references to Amazon suggests that perhaps you are also using EC2. I have not used EC2, albeit others here have and may jump in with other suggestions. There may be some subtleties in using it that I am unaware of. That being said, if you want to use an RHEL based distribution without paying for hosting and support, you may wish to consider CentOS (http://www.centos.org/), which is a free community supported version of RHEL and can use the EPEL. For more information on the EPEL, go here: http://fedoraproject.org/wiki/EPEL and read up on using the EPEL. Then, as I told you in my prior reply for FC11, use: yum install R to install R and its dependencies once you have properly configured your installation to use the EPEL. HTH, Marc Schwartz