First things first: Based on the limited amount of information I've been able to find, it seems that there is a problem getting Perl to work with Gimp under Windows. So, depending on how this turns out, this thread may not work for those using Windows.
Can a Windows user confirm general Perl dysfunction for me?This thread came about as a few of us were discussing a nifty plug-in called Autosave and getting it working in Gimp. You can read more about it and get it here from
the Gimp Plugin Registry, if you're interested. The reason it was a bit of a challenge is that there's not much documentation - although to be fair the plug-in author has provided assistance in getting the plug-in to work for persons who asked in the comments area, and as recently as June of 2010. Based on my own experiences, the problems I experienced were not due to the Autosave plug-in, but due to the Gimp-perl plug-in. As best I can tell (and please correct me if I'm wrong, someone), the Gimp-perl plug-in has not been worked on since 2004-2005. Gimp has changed a lot in 6 years.
Gimp-perl provides perl scripting capabilities to Gimp, very similar to how Python does. It can be argued that there's no need to add yet another scripting language to Gimp, and that's fine. In order to get the Autosave plug-in to work, you can either make Gimp-perl work, or rewrite the plug-in in another language.
Here's what I did:
1. Get the Gimp-perl archive
from here.
2. Unpack it into a directory. For those using Ubuntu and similar Linux, file-roller or your archive manager should allow you to recreate the enclosed file structure and extract the files.
3. Change to the extracted directory. If you do read the README, it says that you need to have a recent version of Perl, Gtk, Gimp and the Perl Data Language. Truthfully, if you are running a recent version of your Linux-based OS, you will most likely have more up-to-date versions of the dependencies, as the version of Gimp required is 2.2 or better.
4. The README will next tell you to run the following command in a terminal:
Don't waste your time, it's probably not ready yet. There are some perl dependencies that have to be satisfied before this will run successfully.5. Do this:
sudo perl -MCPAN -e 'install ExtUtils::Depends'
sudo perl -MCPAN -e 'install ExtUtils::PkgConfig'
sudo apt-get install libsexy-dev
6. Now the perl dependencies should be satisfied, so now run
Assuming this makefile is able to run successfully, you are now ready for the usual:
sudo make
sudo make test
sudo make install
It's worth noting that there are some interesting perl scripts in the examples directory. It you move them to you plugins directory they will become usable in Gimp.
7. Now it's likely I goofed somewhere along the line, but when all this was done, Gimp couldn't find Gimp-perl. Gimp was looking for the perl stuff in a directory that didn't exist:
/opt/bin/. Rather than uninstall and possibly really screwing something up, I elected to create the missing directory and put in a symbolic link there that pointed to my actual perl installation in /usr/bin. I used the following command in a terminal:
sudo ln -s /usr/bin/perl /opt/bin/perl
If you are not familiar with this command
ln -s (that's a lower-case 'L') is a command that allows you to make a link between a file - sort of like a detour sign, and the -s option specifies that the link is symbolic.
/usr/bin/perl is the actual file that I want the OS to find and
/opt/bin/perl is the symbolic link that this command creates - the detour sign, if you will.
Here's what I found out. The Gimp-perl plug-in seems to suffer from the same age-related problems that many old Script-Fu/Scheme plug-in do. It seems to use deprecated procedure names that give Gimp hiccups that you will notice
if you start Gimp from the command line. If you don't then you will see errors when running the examples. The errors did not seem to affect the operation of the scripts.
Autosave will appear on the Gimp File Menu, and there are three menu options. First is to disable the plug-in, next to enable, and third to set configuration options.
As always, your mileage may vary. I think I got lucky in getting Gimp-perl to work with just me and Google. If you need more in-depth help you may wish to contact rain, the author/poster of Autosave, through the GimpPlugin Registry as he/she seems willing to offer any assistance if asked. I'm willing to help anybody who wants to take a swing at it also, but "I ain't no professional."