在 Red Hat 6 上安装 R 时出现问题,需要 libjpeg.so.62

在 Red Hat 6 上安装 R 时出现问题,需要 libjpeg.so.62

我一直在尝试使用命令行在远程计算机上安装 R。该机特点是

uname -a
Linux ###### 2.6.32-71.40.1.el6.x86_64 #1 SMP Tue Jul 3 14:39:16 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -a
LSB Version:    :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 6.0 (Santiago)
Release:        6.0
Codename:       Santiago

我已经安装了所有东西,但似乎有问题libjpeg.so.62。如果我运行 R 安装:

sudo yum install R

Loaded plugins: rhnplugin
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package R.x86_64 0:3.2.1-2.el6 set to be updated
--> Processing Dependency: libRmath-devel = 3.2.1-2.el6 for package: R-3.2.1-2.el6.x86_64
--> Processing Dependency: R-java = 3.2.1-2.el6 for package: R-3.2.1-2.el6.x86_64
--> Processing Dependency: R-devel = 3.2.1-2.el6 for package: R-3.2.1-2.el6.x86_64
--> Running transaction check
---> Package R-devel.x86_64 0:3.2.1-2.el6 set to be updated
--> Processing Dependency: R-java-devel = 3.2.1-2.el6 for package: R-devel-3.2.1-2.el6.x86_64
--> Processing Dependency: R-core-devel = 3.2.1-2.el6 for package: R-devel-3.2.1-2.el6.x86_64
---> Package R-java.x86_64 0:3.2.1-2.el6 set to be updated
--> Processing Dependency: R-core = 3.2.1-2.el6 for package: R-java-3.2.1-2.el6.x86_64
---> Package libRmath-devel.x86_64 0:3.2.1-2.el6 set to be updated
--> Processing Dependency: libRmath = 3.2.1-2.el6 for package: libRmath-devel-3.2.1-2.el6.x86_64
--> Running transaction check
---> Package R-core.x86_64 0:3.2.1-2.el6 set to be updated
--> Processing Dependency: tex(latex) for package: R-core-3.2.1-2.el6.x86_64
--> Processing Dependency: tex(dvips) for package: R-core-3.2.1-2.el6.x86_64
--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: R-core-3.2.1-2.el6.x86_64
--> Processing Dependency: cups for package: R-core-3.2.1-2.el6.x86_64
--> Processing Dependency: libtk8.5.so()(64bit) for package: R-core-3.2.1-2.el6.x86_64
--> Processing Dependency: libtcl8.5.so()(64bit) for package: R-core-3.2.1-2.el6.x86_64
--> Processing Dependency: libXt.so.6()(64bit) for package: R-core-3.2.1-2.el6.x86_64
--> Processing Dependency: libXmu.so.6()(64bit) for package: R-core-3.2.1-2.el6.x86_64
---> Package R-core-devel.x86_64 0:3.2.1-2.el6 set to be updated
--> Processing Dependency: zlib-devel for package: R-core-devel-3.2.1-2.el6.x86_64
--> Processing Dependency: xz-devel for package: R-core-devel-3.2.1-2.el6.x86_64
--> Processing Dependency: tk-devel for package: R-core-devel-3.2.1-2.el6.x86_64
--> Processing Dependency: tcl-devel for package: R-core-devel-3.2.1-2.el6.x86_64
--> Processing Dependency: pcre-devel for package: R-core-devel-3.2.1-2.el6.x86_64
--> Processing Dependency: libX11-devel for package: R-core-devel-3.2.1-2.el6.x86_64
--> Processing Dependency: gcc-c++ for package: R-core-devel-3.2.1-2.el6.x86_64
--> Processing Dependency: bzip2-devel for package: R-core-devel-3.2.1-2.el6.x86_64
---> Package R-java-devel.x86_64 0:3.2.1-2.el6 set to be updated
--> Processing Dependency: java-devel for package: R-java-devel-3.2.1-2.el6.x86_64
---> Package libRmath.x86_64 0:3.2.1-2.el6 set to be updated
--> Running transaction check
---> Package R-core.x86_64 0:3.2.1-2.el6 set to be updated
--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: R-core-3.2.1-2.el6.x86_64
---> Package bzip2-devel.x86_64 0:1.0.5-7.el6_0 set to be updated
---> Package cups.x86_64 1:1.4.2-35.el6_0.1 set to be updated
--> Processing Dependency: portreserve for package: 1:cups-1.4.2-35.el6_0.1.x86_64
--> Processing Dependency: poppler-utils for package: 1:cups-1.4.2-35.el6_0.1.x86_64
---> Package gcc-c++.x86_64 0:4.4.4-13.el6 set to be updated
--> Processing Dependency: libstdc++-devel = 4.4.4-13.el6 for package: gcc-c++-4.4.4-13.el6.x86_64
---> Package java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.39.b17.el6_0 set to be updated
---> Package libX11-devel.x86_64 0:1.3-2.el6 set to be updated
--> Processing Dependency: pkgconfig(xcb) >= 1.1.92 for package: libX11-devel-1.3-2.el6.x86_64
--> Processing Dependency: pkgconfig(xproto) for package: libX11-devel-1.3-2.el6.x86_64
--> Processing Dependency: pkgconfig(xcb) for package: libX11-devel-1.3-2.el6.x86_64
--> Processing Dependency: pkgconfig(kbproto) for package: libX11-devel-1.3-2.el6.x86_64
--> Processing Dependency: libXdmcp-devel for package: libX11-devel-1.3-2.el6.x86_64
--> Processing Dependency: libXau-devel for package: libX11-devel-1.3-2.el6.x86_64
---> Package libXmu.x86_64 0:1.0.5-1.el6 set to be updated
---> Package libXt.x86_64 0:1.0.7-1.el6 set to be updated
---> Package pcre-devel.x86_64 0:7.8-3.1.el6 set to be updated
---> Package tcl.x86_64 1:8.5.7-6.el6 set to be updated
---> Package tcl-devel.x86_64 1:8.5.7-6.el6 set to be updated
---> Package texlive-dvips.x86_64 0:2007-56.el6 set to be updated
--> Processing Dependency: psutils for package: texlive-dvips-2007-56.el6.x86_64
---> Package texlive-latex.x86_64 0:2007-56.el6 set to be updated
--> Processing Dependency: texlive-utils = 2007-56.el6 for package: texlive-latex-2007-56.el6.x86_64
--> Processing Dependency: texlive-texmf-latex = 2007 for package: texlive-latex-2007-56.el6.x86_64
--> Processing Dependency: netpbm-progs for package: texlive-latex-2007-56.el6.x86_64
---> Package tk.x86_64 1:8.5.7-5.el6 set to be updated
---> Package tk-devel.x86_64 1:8.5.7-5.el6 set to be updated
--> Processing Dependency: libXft-devel for package: 1:tk-devel-8.5.7-5.el6.x86_64
---> Package xz-devel.x86_64 0:4.999.9-0.3.beta.20091007git.el6 set to be updated
---> Package zlib-devel.x86_64 0:1.2.3-25.el6 set to be updated
--> Running transaction check
---> Package R-core.x86_64 0:3.2.1-2.el6 set to be updated
--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: R-core-3.2.1-2.el6.x86_64
---> Package libXau-devel.x86_64 0:1.0.5-1.el6 set to be updated
---> Package libXdmcp-devel.x86_64 0:1.0.3-1.el6 set to be updated
--> Processing Dependency: libXdmcp = 1.0.3-1.el6 for package: libXdmcp-devel-1.0.3-1.el6.x86_64
--> Processing Dependency: libXdmcp.so.6()(64bit) for package: libXdmcp-devel-1.0.3-1.el6.x86_64
---> Package libXft-devel.x86_64 0:2.1.13-4.1.el6 set to be updated
--> Processing Dependency: freetype-devel >= 2.1.9-2 for package: libXft-devel-2.1.13-4.1.el6.x86_64
--> Processing Dependency: fontconfig-devel >= 2.2-1 for package: libXft-devel-2.1.13-4.1.el6.x86_64
--> Processing Dependency: pkgconfig(xrender) for package: libXft-devel-2.1.13-4.1.el6.x86_64
--> Processing Dependency: pkgconfig(freetype2) for package: libXft-devel-2.1.13-4.1.el6.x86_64
--> Processing Dependency: pkgconfig(fontconfig) for package: libXft-devel-2.1.13-4.1.el6.x86_64
--> Processing Dependency: libXrender-devel for package: libXft-devel-2.1.13-4.1.el6.x86_64
---> Package libstdc++-devel.x86_64 0:4.4.4-13.el6 set to be updated
---> Package libxcb-devel.x86_64 0:1.5-1.el6 set to be updated
---> Package netpbm-progs.x86_64 0:10.47.05-11.el6 set to be updated
--> Processing Dependency: netpbm = 10.47.05-11.el6 for package: netpbm-progs-10.47.05-11.el6.x86_64
--> Processing Dependency: ghostscript for package: netpbm-progs-10.47.05-11.el6.x86_64
--> Processing Dependency: libnetpbm.so.10()(64bit) for package: netpbm-progs-10.47.05-11.el6.x86_64
---> Package poppler-utils.x86_64 0:0.12.4-3.el6_0.1 set to be updated
---> Package portreserve.x86_64 0:0.0.4-4.el6 set to be updated
---> Package psutils.x86_64 0:1.17-34.el6 set to be updated
---> Package texlive-texmf-latex.noarch 0:2007-35.el6 set to be updated
--> Processing Dependency: texlive-texmf-errata-latex = 2007 for package: texlive-texmf-latex-2007-35.el6.noarch
--> Processing Dependency: tex-preview for package: texlive-texmf-latex-2007-35.el6.noarch
---> Package texlive-utils.x86_64 0:2007-56.el6 set to be updated
---> Package xorg-x11-proto-devel.noarch 0:7.4-35.el6 set to be updated
--> Running transaction check
---> Package R-core.x86_64 0:3.2.1-2.el6 set to be updated
--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: R-core-3.2.1-2.el6.x86_64
---> Package fontconfig-devel.x86_64 0:2.8.0-3.el6 set to be updated
---> Package freetype-devel.x86_64 0:2.3.11-6.el6_0.2 set to be updated
---> Package ghostscript.x86_64 0:8.70-6.el6 set to be updated
--> Processing Dependency: urw-fonts >= 1.1 for package: ghostscript-8.70-6.el6.x86_64
--> Processing Dependency: ghostscript-fonts for package: ghostscript-8.70-6.el6.x86_64
---> Package libXdmcp.x86_64 0:1.0.3-1.el6 set to be updated
---> Package libXrender-devel.x86_64 0:0.9.5-1.el6 set to be updated
---> Package netpbm.x86_64 0:10.47.05-11.el6 set to be updated
---> Package tex-preview.noarch 0:11.85-10.el6 set to be updated
---> Package texlive-texmf-errata-latex.noarch 0:2007-7.1.el6 set to be updated
--> Running transaction check
---> Package R-core.x86_64 0:3.2.1-2.el6 set to be updated
--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: R-core-3.2.1-2.el6.x86_64
---> Package ghostscript-fonts.noarch 0:5.50-23.1.el6 set to be updated
--> Processing Dependency: xorg-x11-font-utils for package: ghostscript-fonts-5.50-23.1.el6.noarch
---> Package urw-fonts.noarch 0:2.4-10.el6 set to be updated
--> Running transaction check
---> Package R-core.x86_64 0:3.2.1-2.el6 set to be updated
--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: R-core-3.2.1-2.el6.x86_64
---> Package xorg-x11-font-utils.x86_64 1:7.2-10.el6 set to be updated
--> Processing Dependency: libfontenc.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.2-10.el6.x86_64
--> Processing Dependency: libXfont.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.2-10.el6.x86_64
--> Running transaction check
---> Package R-core.x86_64 0:3.2.1-2.el6 set to be updated
--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: R-core-3.2.1-2.el6.x86_64
---> Package libXfont.x86_64 0:1.4.1-1.el6 set to be updated
---> Package libfontenc.x86_64 0:1.0.5-2.el6 set to be updated
--> Finished Dependency Resolution
Error: Package: R-core-3.2.1-2.el6.x86_64 (epel)
           Requires: libjpeg.so.62(LIBJPEG_6.2)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

但是,如果您转到该文件夹​​,其中/usr/lib64/有一个名为的文件libjpeg.so.62,所以我会假设该文件libjpeg.so.62已安装?我缺少什么?

答案1

在 CentOS 上(类似于 RHEL),libjpeg.so.62(LIBJPEG_6.2)(64bit) 似乎是由libjpeg-turbo包提供的

如果它在您的安装中可用(如果无法解决的话可能不会),您应该能够使用以下命令安装它:

sudo yum install libjpeg-turbo

否则,您可以下载 CentOS 6 软件包并安装它 - 例如:

wget http://mirror.ox.ac.uk/sites/mirror.centos.org/6/os/x86_64/Packages/libjpeg-turbo-1.2.1-3.el6_5.x86_64.rpm
sudo yum install libjpeg-turbo-1.2.1-3.el6_5.x86_64.rpm

其他包镜像:

作为替代方案,你也可以添加 CentOS 作为软件包源,但您不应该只需要一个包。

相关内容