安装perl GD模块的问题。

时间:2022-06-05 12:15:34

I am using perl Module Managerinstaller on RHEL 6 and perl version is 5.10.1

我在RHEL 6上使用perl模块Managerinstaller, perl版本是5.10.1。

At first when I tried to install the GD module, it showed me I have some dependencies missing. After installing those dependencies I am getting the following error.

当我尝试安装GD模块时,它显示我缺少一些依赖项。在安装了这些依赖项之后,我得到了以下错误。

Can't load '/usr/local/lib64/perl5/auto/GD/GD.so' for module GD: libgd.so.3: 
cannot open shared object file: No such file or directory at
/usr/lib64/perl5/DynaLoader.pm line 200. at -e line 1
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

================================================================
Module GD Installation Failed..!! 
=================================================================

Output of ldd /usr/local/lib64/perl5/auto/GD/GD.so command is following :

ldd /usr/local/lib64/perl5/auto/GD/GD.的输出所以命令如下:

linux-vdso.so.1 =>  (0x00007fff3ffff000)
libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00007f43ba4f5000)    
libz.so.1 => /lib64/libz.so.1 (0x00007f43ba2e0000)    
libm.so.6 => /lib64/libm.so.6 (0x00007f43ba05b000)    
libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00007f43b9e35000)        
libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007f43b9b99000)    
libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00007f43b9962000)    
libgd.so.3 => not found     
libc.so.6 => /lib64/libc.so.6 (0x00007f43b95e3000)    
libexpat.so.1 => /lib64/libexpat.so.1 (0x00007f43b93ba000)    
/lib64/ld-linux-x86-64.so.2 (0x0000003c27400000)    

4 个解决方案

#1


2  

Install the gd package:

安装gd包:

yum install gd

It can be found in the rhel-6-server-rpms repository.

它可以在rhel-6-server-rpms存储库中找到。

And please let us know what the perlmod installer is.

请告诉我们perlmod安装程序是什么。

#2


2  

The GD module is already available for you in the standard package repositories.

在标准的包存储库中已经有了GD模块。

$ repoquery -i perl-GD

Name        : perl-GD
Version     : 2.35
Release     : 2.el5
Architecture: x86_64
Size        : 443667
Packager    : Fedora Project <http://bugzilla.redhat.com/bugzilla>
Group       : Development/Libraries
URL         : http://search.cpan.org/dist/GD/
Repository  : epel
Summary     : Perl interface to the GD graphics library
Description :
This is a autoloadable interface module for GD, a popular library
for creating and manipulating PNG files.  With this library you can
create PNG images on the fly or modify existing files.

Install it with yum.

用yum安装它。

# yum install perl-GD

#3


0  

GD needs some development packages in order for it to compile. It's been a while since I did this but I think this list is complete:

GD需要一些开发包来编译。我做这个已经有一段时间了,但是我认为这个列表是完整的:

  • libgd2-perl
  • libgd2-perl
  • libgd2-xpm
  • libgd2-xpm
  • libgd2-xpm-dev
  • libgd2-xpm-dev
  • libpng12-dev
  • libpng12-dev
  • libjpeg62-dev
  • libjpeg62-dev
  • libtiff4-dev
  • libtiff4-dev

The numbers in the packages are version number. You may have to change them to get the latest version.

包中的数字是版本号。您可能需要更改它们以获得最新版本。

For Debian and derivatives: sudo apt-get install libgd2-perl ...

对于Debian和衍生物:sudo apt-get安装libgd2-perl…

For RHEL: sudo yum install libgd2-perl ...

对于RHEL: sudo yum安装libgd2-perl…

#4


0  

I had (almost) the same problem. '5/auto/GD/GD.so' for module GD:

我(几乎)遇到了同样的问题。5 /汽车/ GD / GD。所以“模块GD:

libpng16.so.16: cannot open shared object file: No such file or directory at /usr/lib64/perl5/DynaLoader.pm line 200.'

Ran ldd /usr/local/lib64/perl5/auto/GD/GD.so and got:

ldd /usr/local/lib64/perl5/auto/GD/GD.跑所以,有:

linux-vdso.so.1 =>  (0x00007fffdefe2000)
libz.so.1 => /lib64/libz.so.1 (0x00007f6726e33000)
libm.so.6 => /lib64/libm.so.6 (0x00007f6726baf000)
libpng16.so.16 => not found
libgd.so.3 => not found
libc.so.6 => /lib64/libc.so.6 (0x00007f672681b000)
/lib64/ld-linux-x86-64.so.2 (0x00000037ff000000)

Saw that all the .so files were in /lib64.

所有的文件都在/lib64中。

Ran:

跑:

find / -name libpng16.so.16 2>/dev/null
fine / -name libgd.so.3 2>/dev/null

cd /lib64

sudo ln -s <fullpath_to_libpng16.so.16> libpng16.so.16
sudo ln -s <fullpath_to_libgd.so.3> libgd.so.3

Problem solved!!!

问题解决了! ! !

#1


2  

Install the gd package:

安装gd包:

yum install gd

It can be found in the rhel-6-server-rpms repository.

它可以在rhel-6-server-rpms存储库中找到。

And please let us know what the perlmod installer is.

请告诉我们perlmod安装程序是什么。

#2


2  

The GD module is already available for you in the standard package repositories.

在标准的包存储库中已经有了GD模块。

$ repoquery -i perl-GD

Name        : perl-GD
Version     : 2.35
Release     : 2.el5
Architecture: x86_64
Size        : 443667
Packager    : Fedora Project <http://bugzilla.redhat.com/bugzilla>
Group       : Development/Libraries
URL         : http://search.cpan.org/dist/GD/
Repository  : epel
Summary     : Perl interface to the GD graphics library
Description :
This is a autoloadable interface module for GD, a popular library
for creating and manipulating PNG files.  With this library you can
create PNG images on the fly or modify existing files.

Install it with yum.

用yum安装它。

# yum install perl-GD

#3


0  

GD needs some development packages in order for it to compile. It's been a while since I did this but I think this list is complete:

GD需要一些开发包来编译。我做这个已经有一段时间了,但是我认为这个列表是完整的:

  • libgd2-perl
  • libgd2-perl
  • libgd2-xpm
  • libgd2-xpm
  • libgd2-xpm-dev
  • libgd2-xpm-dev
  • libpng12-dev
  • libpng12-dev
  • libjpeg62-dev
  • libjpeg62-dev
  • libtiff4-dev
  • libtiff4-dev

The numbers in the packages are version number. You may have to change them to get the latest version.

包中的数字是版本号。您可能需要更改它们以获得最新版本。

For Debian and derivatives: sudo apt-get install libgd2-perl ...

对于Debian和衍生物:sudo apt-get安装libgd2-perl…

For RHEL: sudo yum install libgd2-perl ...

对于RHEL: sudo yum安装libgd2-perl…

#4


0  

I had (almost) the same problem. '5/auto/GD/GD.so' for module GD:

我(几乎)遇到了同样的问题。5 /汽车/ GD / GD。所以“模块GD:

libpng16.so.16: cannot open shared object file: No such file or directory at /usr/lib64/perl5/DynaLoader.pm line 200.'

Ran ldd /usr/local/lib64/perl5/auto/GD/GD.so and got:

ldd /usr/local/lib64/perl5/auto/GD/GD.跑所以,有:

linux-vdso.so.1 =>  (0x00007fffdefe2000)
libz.so.1 => /lib64/libz.so.1 (0x00007f6726e33000)
libm.so.6 => /lib64/libm.so.6 (0x00007f6726baf000)
libpng16.so.16 => not found
libgd.so.3 => not found
libc.so.6 => /lib64/libc.so.6 (0x00007f672681b000)
/lib64/ld-linux-x86-64.so.2 (0x00000037ff000000)

Saw that all the .so files were in /lib64.

所有的文件都在/lib64中。

Ran:

跑:

find / -name libpng16.so.16 2>/dev/null
fine / -name libgd.so.3 2>/dev/null

cd /lib64

sudo ln -s <fullpath_to_libpng16.so.16> libpng16.so.16
sudo ln -s <fullpath_to_libgd.so.3> libgd.so.3

Problem solved!!!

问题解决了! ! !