Archive for June, 2010
We are going to build gimp from the directory $HOME/gimp/2.7.1 and install it into $HOME/gimp-2.7.1 or /opt/gimp-2.7.
Installing to my home directory allows me to have multiple copies of the gimp, and run which ever version that I want. So my tree actually looks something like this:
(my build files)
(the install area)
Step 1. Start with a clean install of Ubuntu.
Of course you don’t need to do that, but I thought it was a great place to start. I did this by installing a version of 10.04 LTS Ubuntu 64bit on a Sun VirtualBox VM. If you don’t know what I just said, then just start with Ubuntu 10.04.
Step 2. Download the dependencies.
libgtk2.0-dev ruby intltool libtiff4-dev python-gtk2-dev \
libjasper-dev libexif-dev libmng-dev liblcms1-dev \
libxpm-dev librsvg2-dev libwmf-dev libasound2-dev \
libdbus-glib-1-dev libaa1-dev libwebkit-dev libhal-dev \
Step 3. Download the source files that we need to install.
mkdir -p gimp/2.7.1/
tar xf babl-0.1.2.tar.bz2
tar xf gegl-0.1.2.tar.bz2
tar xf gimp-2.7.1.tar.bz2
Step 4. Pick somewhere to install
Now here we can choose where we want to install. The default is /usr/local/. (ie PREFIX=/usr/local), however that is known to cause problems. Personally, I want to have the installations and libraries seperate for each version, so that I can run whatever version of gimp that I want, so I’ll use PREFIX=$HOME/gimp-2.7.1. If you want to install system wide then use PREFIX=/opt/gimp-2.7.
Step 5. Start the build
You need “sudo make install” below if installing to /opt.
Step 6. Run the program
Now you can run gimp as:
so if you are encoding characters for use with a URL, you need:
encodeURIComponent("INGLÉS") -> INGL%C3%89S
you will note that %C9 is not a value UTF-8 character.
I’m using this function to encode the values from a form to put into a URL.
I was a bit slow to pick up on this, but you can get it from http://www.gimp.org/
The documention for /etc/cron.d files says that it’s the same as /etc/crontab. And although this is true, most people are not used to adding the user in as the first argument before the script.
So when you use crontab -e:
When you put it in /etc/cron.d/myapp.crontab
It’s a little annoying, and a comment in the documention as such would go a long way.