Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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):-
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!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.