Howto: Compile and install GIMPShop on SUSE 9.3
Novell Cool Solutions: Feature
By Stomfi
|
Digg This -
Slashdot This
Posted: 1 Dec 2005 |
GIMPshop is a hacked version of GIMP 2.2.4 that has its interface modified to be similar to PhotoShop so that users of that program can take advantage of the GIMP in their meaningful manner. This is a good example of a user making a Linux program work in a way they want it to. The hack was originally written for MAC OS X, but the response has been so great from the user community that others have ported the modifications to Linux and Windows. The home page for downloading the Linux source for GIMPshop is: http://freshmeat.net/projects/gimpshop/ and the home page is: http://plasticbugs.com/index.php?p=241 where you can find a shortcuts file.
You will need some development libraries installed on your system which you can do with the YaST installer.
These are for a 32-bit system:
Also make sure you have these packages installed greater or equal to the versions shown.
Because GIMPshop is essentially the GIMP, albeit with different menu names, you will have to uninstall your existing version using YaST. YaST will also want to uninstall some other programs which you can write down the names and uninstall them. After GIMPshop is installed and put in the rpm database with checkinstall, the other programs can be reinstalled.
You will also have to modify your path so that the build configuration script can find gdk-pixbuf-csource.
The command is:
export PATH="$PATH:/opt/gnome/bin"
This will modify your path until you reboot.
The configure script will set the default install path for the new program in /usr/local/.
Just remember when you do anything that alters the SUSE distro, when you upgrade, the YaST installer will probably have a few complaints, which you have to ignore.
Note that you can change the default install path in the configure step with the command:
./configure –prefix=/where_you_want_it
I downloaded the package and in a console as the root user moved it to /usr/local/src.
After installing the development libraries mentioned above, and setting the PATH, I extracted the files with the command:
tar xjvf GIMPshop-source-2.2.4.tbz
This results in a new sub folder named gimp-2.2.4. The commands
cd gimp-2.2.4
./configure
will display a lot of test results and should end up by creating all the Make files and performing a dep check.
If you get any errors then there are missing libraries, which need to be installed via YaST and the ./configure step repeated until the Make files are created. My system is set up for development so most of the files needed were already installed.
To build the program type the command:make
You should not get any errors if all the libraries have been installed, so when this process is completed you can type the command:
checkinstall
Checkinstall will build an rpm file for you and put it into the rpm repository, making it possible to reinstall the other programs in your list or to uninstall the new program and replace it with the original GIMP version.
If you don't have a working version of checkinstall, then you can get a later version than the one on SUSE 9.3 that I had a few issues with. I uninstalled that one and grabbed a later tar file from the September 2005 issue of LinuxFormat.
Extract the tar file with the command "tar xzvf checkinstall-1.6.0beta4.tgz".
To install it use the command "make install".
The new version will be installed in "/usr/local/"
Modify the run control file which is "/usr/local/lib/checkinstall/checkinstallrc" so it looks likes this:
#############################################################################
# CheckInstall configuration file #
########################################
####################################################################
# These are default settings for CheckInstall, modify them as you #
# need. Remember that command line switches will override them. #
####################################################################
# Debug level
# 0: No debug
# 1: Keep all temp files except the package's files
# 2: Keep the package's files too
DEBUG=0
# Location of the "installwatch" program
INSTALLWATCH_PREFIX="/usr/local"
INSTALLWATCH=${INSTALLWATCH_PREFIX}/bin/installwatch
# Location of the makepkg program. "makepak" is the default, and is
# included with checkinstall. If you want to use Slackware's native "makepkg"
# then set this to "makepkg"
#MAKEPKG=/sbin/makepkg
# makepkg optional flags. These are recommended if running a newer Slackware
# version: "-l y -c n"
MAKEPKG_FLAGS="-l y -c n"
# Is MAKEPKG running interactively? If so, you might want
# to see what it's doing:
SHOW_MAKEPKG=0
# Where will we keep our temp files?
BASE_TMP_DIR=/var/tmp ## Don't set this to /tmp or / !!
# Where to place the installed document files
DOC_DIR=""
# Default architecture type (Leave it empty to allow auto-guessing)
ARCHITECTURE=""
# Default package type. Leave it empty to enable asking everytime
# S : Slackware
R : RPM
# D : Debian
INSTYPE=""
# Storage directory for newly created packages
# By default they will be stored at the default
# location defined for the package type
PAK_DIR=""
# RPM optional flags
RPM_FLAGS=" --force --nodeps --replacepkgs "
# dpkg optional flags
DPKG_FLAGS=""
## These are boolean. Set them to 1 or 0
# Interactively show the results of the install command (i.e. "make install")?
# This is useful for interactive installation commands
SHOW_INSTALL=1
# Show Slackware package installation script while it runs? Again, useful if
# it's an interactive script
SHOW_SLACK_INSTALL=0
# Automatic deletion of "doc-pak" upon termination?
DEL_DOCPAK=1
# Automatic deletion of the spec file?
DEL_SPEC=0
# Automatic deletion of "description-pak"?
DEL_DESC=1
# Automatically strip all ELF binaries?
STRIP_ELF=1
# Automatically strip all ELF shared libraries?
# Note: this setting will automatically be set to "0" if STRIP_ELF=0
STRIP_SO_ELF=1
# Automatically search for shared libraries and add them to /etc/ld.so.conf?
# This is experimental and could mess up your dynamic loader configuration.
# Use it only if you know what you are doing.
ADD_SO=0
# Automatically compress all man pages?
COMPRESS_MAN=1
# Set the umask to this value
CKUMASK=0022
# Backup files overwritten or modified by your install command?
BACKUP=1
# Write a doinst.sh file that installs your description (Slackware)?
AUTODOINST=1
# Are we going to use filesystem translation?
TRANSLATE=1
# Reset the owner/group of all files to root.root?
RESET_UIDS=0
# Use the new (8.1+) Slackware description file format?
NEW_SLACK=1
# Comma delimited list of files/directories to be ignored
EXCLUDE=""
# Accept default values for all questions?
ACCEPT_DEFAULT=0
# Use "-U" flag in rpm by default when installing a rpm package
# This tells rpm to (U)pdate the package instead of (i)nstalling it.
RPM_IU=U
# Inspect the file list before creating the package
CK_INSPECT=0
# Review the .spec file before creating a .rpm
REVIEW_SPEC=0
# Review the control file before creating a .deb
REVIEW_CONTROL=0
# Install the package or just create it?
INSTALL=1
I took out all the blank lines to save space, but you can leave them in to make the file more readable.
Make sure you are in the checkinstall build folder where you gave the "make install" command and give the command: "checkinstall". Hit Enter for the doc file question and choose "R" to build an rpm file and an entry in the rpm database.
You can delete the build folder when this is done. Return to the GIMPshop build folder and run checkinstall in this folder.
You can now reinstall all the packages you had to uninstall.
When you run the GIMP with the command "/usr/local/bin/gimp" you will see this splash screen after the HOME folder installation is complete.

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

