LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   /usr/bin/ld: skipping incompatible /usr/lib/libXpm.so when searching for -lXpm (https://www.linuxquestions.org/questions/linux-server-73/usr-bin-ld-skipping-incompatible-usr-lib-libxpm-so-when-searching-for-lxpm-725355/)

sqn 05-12-2009 01:46 AM

/usr/bin/ld: skipping incompatible /usr/lib/libXpm.so when searching for -lXpm
 
Hi all

I am trying to install OTRS 2.3.4 on an Centos release 5.3 (Final) with Kernel 2.6.18-92.el5xen on an x86_64 with an yum -y update after setup

the problem is when I try to install the perl:GD GD::Text GD::Graph GD::Graph::lines GD::Text::Align

on installing the GD I receive:

Code:

/usr/bin/ld: skipping incompatible /usr/lib/libXpm.so when searching for -lXpm
/usr/bin/ld: cannot find -lXpm
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/GD/GD.so] Error 1
  LDS/GD-2.41.tar.gz
  /usr/bin/make -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Failed during this command:
 LDS/GD-2.41.tar.gz                          : make NO

I have tried manually and got the same message.

my ld version:
Code:

[root@otrs bin]# ld -v
GNU ld version 2.17.50.0.6-9.el5 20061020
[root@otrs bin]#

and uname -a
Code:

[root@otrs bin]# uname -a
Linux otrs 2.6.18-92.el5xen #1 SMP Tue Jun 10 19:20:18 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
[root@otrs bin]#

Thanks in advanced

knudfl 05-12-2009 03:31 AM

Quote:

incompatible /usr/lib/libXpm.so
Probably the wrong architecture. GD is arch dependent.

Why not start installing the available packages with yum ?
# yum search perl-gd
# yum install perl-GD<arch> perl-GDGraph ........

Then the dependencies will be installed too.

And # 'cpan' for the remaining packages.
.....

sqn 05-12-2009 03:53 AM

needed to add a new repository:
Code:

rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
and then yum search perl-gd and now its ok :)

thanks again :D


All times are GMT -5. The time now is 02:53 AM.