Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 11th, 2012, 08:19 AM
mashukc mashukc is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 2 mashukc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 50 sec
Reputation Power: 0
Installing GD perl module

I am having trouble installing a perl module called GD which is required by our third party software TeamSite which has its own flavour of perl called iwperl(32 bit). We are trying to install the perl module on a 64 bit Red Hat Linux Initially I tried to install using the default commands:-
1) iwperl Makefile.PL
2) make
3) make test

However on the make test, I get the following errors:-
PERL_DL_NONLAZY=1 /web/soft/iw-home/TeamSite/iw-perl/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/GD..........Can't load './blib/arch/auto/GD/GD.so' for module GD: ./blib/arch/auto/GD/GD.so: wrong ELF class: ELFCLASS64 at /web/soft/iw-home/TeamSite/iw-perl/lib/DynaLoader.pm line 229.

If I run the 'file' command below
#file GD.so, I get -> GD.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped

So it appears that the GD shared object is 64 bit and iwperl is 32 bit, so there is an compatibility problem here.

I then tried building the module by passing in the following during the make command

make PASTHRU='-m32' LD='cc -m32'

but I get errors related to /usr/bin/ld
/usr/bin/ld: skipping incompatible /usr/lib64/libXpm.so when searching for -lXpm

and during the make test I get
PERL_DL_NONLAZY=1 /web/soft/iw-home/TeamSite/iw-perl/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/GD..........Can't load './blib/arch/auto/GD/GD.so' for module GD: ./blib/arch/auto/GD/GD.so: wrong ELF class: ELFCLASS64 at /web/soft/iw-home/TeamSite/iw-perl/lib/DynaLoader.pm line 229.

So then I checked the GNU linker(ld) and that is 64 bit version. So to compile this module would I need to have a 32 bit version of the linker (ld)?
The company which ships out the software only provide iwperl is 32bit form and not 64 bit.
Any help would be much appreciated?

Thanks
Mashuk

Reply With Quote
  #2  
Old December 11th, 2012, 11:40 AM
keath's Avatar
keath keath is offline
!~ /m$/
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: May 2004
Location: Reno, NV
Posts: 4,087 keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 4 Days 6 h 59 m 11 sec
Reputation Power: 1809
You could try compiling GD as a 32 bit library from source.

https://bitbucket.org/pierrejoye/gd-libgd/src

Reply With Quote
  #3  
Old December 12th, 2012, 03:11 AM
mashukc mashukc is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 2 mashukc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 50 sec
Reputation Power: 0
Quote:
You could try compiling GD as a 32 bit library from source.


Is there a simpler way to build the module other than from the source? I am not familiar with building perl modules from the source.

Reply With Quote
  #4  
Old December 12th, 2012, 07:40 AM
fotn fotn is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 1 fotn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 27 m 13 sec
Reputation Power: 0
Why dont You just install GD from shell?
eg. yum install perl-GD.i386

Reply With Quote
  #5  
Old December 12th, 2012, 11:30 PM
keath's Avatar
keath keath is offline
!~ /m$/
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: May 2004
Location: Reno, NV
Posts: 4,087 keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level)keath User rank is General 12nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 4 Days 6 h 59 m 11 sec
Reputation Power: 1809
I wasn't talking about the perl module, I meant building the GD C library from source so that you would have a version that would work with your 32-bit perl.

But certainly, check package managers for versions of both GD and the perl module.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Installing GD perl module

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap