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? |
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?
|
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 ? |
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 |
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!! |
All times are GMT -5. The time now is 06:22 PM. |