LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-22-2004, 11:49 PM   #1
jonnycarlos
LQ Newbie
 
Registered: Sep 2003
Distribution: Fedora Core 1
Posts: 24

Rep: Reputation: 15
Gimp perl


Hi,

Im trying to use gimp in a perl script, by using the following line:-

" use Gimp; "

when trying to run the script, it which spits out on error about not being able to locate Gimp.pm, and listed a whole bunch of paths to where it was looking. So i downloaded the Gimp.pm file and placed it in an appropriate directory (/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi/).

after doing so, i tried running the script again, which now says:-

Can't locate loadable object for module Gimp in @INC (@INC contains: /usr/lib/perl5/5.8.1/i386-linux-thread-multi /usr/lib/perl5/5.8.1 /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.1/i386-linux-thread-multi /usr/lib/perl5/5.8.1 .) at /usr/lib/perl5/5.8.1/i386-linux-thread-multi/Gimp.pm line 22
BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.1/i386-linux-thread-multi/Gimp.pm line 22.
Compilation failed in require at ./stampPhoto.pl line 5.
BEGIN failed--compilation aborted at ./stampPhoto.pl line 5.

so this is where i am stumped... Is there any other packages i need to install to be able to use the Gimp module in perl? if so - does anyone know where i can RPMS for them, or know of a site which may tell me how to get Gimp and perl to work?
 
Old 03-23-2004, 03:36 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,432

Rep: Reputation: 100Reputation: 100
i guess u did not install the module correctly cause u say u placed the pm file in a directory. u have to follow the INSTALL procedure, make a MAKEFILE, make install and so on. Then perl adds the module to the paths where it is looking for it and the c-code will be compiled and ready to use. Or am i getting u wrong?

Last edited by j-ray; 03-23-2004 at 03:39 AM.
 
Old 03-23-2004, 06:45 PM   #3
jonnycarlos
LQ Newbie
 
Registered: Sep 2003
Distribution: Fedora Core 1
Posts: 24

Original Poster
Rep: Reputation: 15
well i haven't installed anything apart from the standard Gimp program... which i think is my problem. You dont happen to know the program i need to install in order to allow me to use gimp commands in my perl script?

I have both perl and gimp installed, but think i am missing some sort of connector so i can use them together ?
 
Old 03-24-2004, 02:22 PM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,432

Rep: Reputation: 100Reputation: 100
http://search.cpan.org
this is where u can find modules for perl. type gimp into the search box and download the module, extract it and then follow the install. it's easy...
cheers
 
Old 04-13-2004, 11:48 PM   #5
jonnycarlos
LQ Newbie
 
Registered: Sep 2003
Distribution: Fedora Core 1
Posts: 24

Original Poster
Rep: Reputation: 15
well, after a long time of compiling perl modules from cpan and failing on many differeing things, I found some useful RPM's which made things easier...

I downloaded and installed (in order or installation):-

1. gtk2-2.2.4-5.1
2. gsl-1.4-1
3. perl-PDL-2.3.4-4.i386.rpm
4. gimp-perl-1.2.5-1

After this I had one last problem. gimp-perl-1.2.5-1 only works with gimp 1.2, not gimp 2.0 which I had installed on my machine. This is cause gimp 2.0 is newly released so an RPM for gimp-perl 2.0 hasn't been made yet. There are sources for it i think (Gimp-2.0pre2), but I couldn't compile it properly for my machine.

So I removed gimp 2.0, and re-installed gimp-1.2.5-1. After this, I could write Perl code, and make use of all the gimp functions I wanted. yay.

thanks for the help j-ray, but I guess im not quite clever enough to compile perl modules properly... It definately kept me busy!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
printing on HP PhotoSmart from Gimp 2.2, gimp-print drivers needed? pearman Debian 2 08-05-2005 04:19 AM
gimp / gutenprint prob: gimp does not print bitpicker Linux - Software 0 04-08-2005 07:38 AM
Gimp-perl problems Radicalm16 Slackware 2 02-11-2004 03:12 PM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM
gimp (1.3.21) and gimp-perl - need help installing gimp-perl keex Slackware 0 10-22-2003 03:54 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration