It is currently Fri Mar 29, 2024 2:55 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 18 posts ] 
Author Message
 Post subject: Installing Gimp-2.7.x from git for Linux users
PostPosted: Thu Mar 03, 2011 2:55 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Oct 29, 2010
Posts: 711
Location: Netherlands
Hi all,

WARNING: I EXPERIENCED PROBLEMS WITH PLUGINS NOT WORKING IN /OPT!

Preliminary

I use Gentoo Linux which means I have most of the programs needed to compile installed.
(Gentoo installs compile the binaries from source on your box.)

Those of you that use Linux probably use a "binary" distro.
This means you won't have the necessary programs to compile the sources you get with git.
Those will need to be installed.
To compile source you'll need at least gcc,make,automake,pkgconfig.
You'll also need the "dev" versions of some packages.
And of course "git" which will download the files.

Edit march 4 2011:
Here is a list I got from blog.bloke.com courtesy cameron.
libtool automake1.10 autoconf git-core gettext \
libglib2.0-0 libglib2.0-dev libgtk2.0-0 libgtk2.0-dev ruby \
intltool libtiff4 libtiff4-dev python-dev python-gtk2-dev \
libexif-dev libmng-dev liblcms1-dev libxpm-dev librsvg2-dev \
libwmf-dev libasound2-dev


It's hard for me to tell which ones you'll be needing but this will become apparent when you start configuring.
You can use the xterminal in your desktop,I prefer to use a console.
You can get a console by hitting ctrl-alt-F1.....F6 go back to desktop with ctrl-alt-F7.

Ubuntu and ubuntu based use sudo to do superuser things.
They have no "root" account.
Logging in as root is far easier:you don't have to use sudo for every command.
You can get that by typing
sudo passwd

You'll get
New password:

Type a password that will be your root password.
You'll be asked to do it again.
Needless to say you should not use your normal user password.
Log out and then log in as root.

Optional: Install "mc".
mc is short for Midnight Commander,a clone of Norton Commander of the DOS era.
It is a very handy file browser.
You can use it for editing, making a file executable and much more.


Here the addresses where you can look at the latest developments.
http://git.gnome.org/browse/babl/
http://git.gnome.org/browse/gegl/
http://git.gnome.org/browse/gimp/

When you are in a console/terminal you can use the up and down cursor keys to "browse" commands that you've entered previously.
You can edit them and then hit enter.

OK Let's start

Acquiring files
To get the git sources you enter:
git clone git://git.gnome.org/babl
git clone git://git.gnome.org/gegl
git clone git://git.gnome.org/gimp


These commands will create three directories in /root.
/babl
/gegl
/gimp
They contain the respective files needed to get gimp-2.7.2.
They have to be compiled in that order.
Beware!
If you have Gimp-2.6 then use /opt to install Gimp-2.7.

The following is assuming you'll be using /opt to install 2.7 and you're in the /root directory.
cd ./babl
./autogen.sh --prefix=/opt

Watch the output: You might get errors concerning missing stuff.
If so install those files and repeat the above command.
When all goes well you're invited to type "make"
This will compile the source.
When the compile has finished successfully type make install.
That will install babl.
cd


For gegl the autogen.sh command is different.
cd ./gegl
./autogen.sh --prefix=/opt PKG_CONFIG_PATH=/opt/lib --disable-docs

(When I tried this the first time it failed with make unable to make the docs,couldn't find why)
You might want to try without --disable-docs maybe your system has what is needed.
Then like with babl make and make install.
The PKG_CONFIG_PATH=/opt/lib directive is needed otherwise gegl will look in /usr/lib or /usr/local/lib.
In /opt/lib/pkgconfig you'll find a file babl.pc.
Gegl checks if the version etc. is ok.
cd


Now we can install Gimp.
cd ./gimp
./autogen.sh --prefix=/opt PKG_CONFIG_PATH=/opt/lib

Here docs compile ok.
Same procedure as for the other two.

Uninstall
Change into the the 3 directories one by one in reverse order.
Issue
make uninstall


Well I hope this will get you going.
If you run into problems plse add as much info as possible.
Stating "gegl will not make" is too little for me to help you.

Gerard.

_________________
Gentoo Linux always up-to-date.
Kernel-3.17.4 Python-2.7.8/3.3.5
Gimp-2.8.14

I use Linux only.
And Virtualbox with Win 7


Last edited by gerard82 on Mon Nov 14, 2011 9:06 am, edited 2 times in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Installing Gimp-2.7.x from git for Linux users
PostPosted: Thu Mar 03, 2011 3:32 pm  (#2) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
going to try on ubuntu
what i should change to install not from git but from the nightly from http://gimptest.flamingtext.com:8080/

Content should just be the same only may be downloaded first, i will prefer because my net connection is almost fixed but still unstable so download could be screwed up...less i have to dl during the process more chance my adsl will not betray me

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Installing Gimp-2.7.x from git for Linux users
PostPosted: Thu Mar 03, 2011 3:46 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Oct 29, 2010
Posts: 711
Location: Netherlands
Hi PC,
Git files don't need to be untarred.
And they don't have configure.
If you have mc installed just put the cursor over the .tar.bz2 file and hit enter.
Mc will then show you a directory that contains th source etc.
Copy this directory to /root.
Log in the /root directory.
cd ./<directoryname>
Then type ./configure --prefix=/opt and the rest is the same as in my howto.
Gerard.

_________________
Gentoo Linux always up-to-date.
Kernel-3.17.4 Python-2.7.8/3.3.5
Gimp-2.8.14

I use Linux only.
And Virtualbox with Win 7


Top
 Post subject: Re: Installing Gimp-2.7.x from git for Linux users
PostPosted: Thu Mar 03, 2011 6:35 pm  (#4) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4726
I find it very dangerous to run the whole process as root. You need to be root only for "make install", the rest can be done as a plain user.

_________________
Image


Top
 Post subject: Re: Installing Gimp-2.7.x from git for Linux users
PostPosted: Fri Mar 04, 2011 7:18 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Oct 29, 2010
Posts: 711
Location: Netherlands
ofnuts wrote:
I find it very dangerous to run the whole process as root. You need to be root only for "make install", the rest can be done as a plain user.


Unless you use your box as a server there is nothing to fear.
I've been using Linux for more than 10 years this way never any problem.
Once in a while I run rkhunter and chkrootkit never anything wrong.
Of course I never browse the internet as root.
Unix was designed to be intrinsically safe even before internet existed.
All those years I used the same passwords.
Gerard.

_________________
Gentoo Linux always up-to-date.
Kernel-3.17.4 Python-2.7.8/3.3.5
Gimp-2.8.14

I use Linux only.
And Virtualbox with Win 7


Top
 Post subject: Re: Installing Gimp-2.7.x from git for Linux users
PostPosted: Fri Mar 04, 2011 7:35 am  (#6) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2414
There was a detailed example of installing from git in episode 154 of 'Meet The Gimp', including detailed notes. Go to the web page and scroll down a bit. Worked on my LM9-64 installation.

_________________
Image


Top
 Post subject: Re: Installing Gimp-2.7.x from git for Linux users
PostPosted: Fri Mar 04, 2011 1:46 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Oct 29, 2010
Posts: 711
Location: Netherlands
Thanks rich2005,
I'd rather have a text which I can browse for doing this.
Gerard.

_________________
Gentoo Linux always up-to-date.
Kernel-3.17.4 Python-2.7.8/3.3.5
Gimp-2.8.14

I use Linux only.
And Virtualbox with Win 7


Top
 Post subject: Re: Installing Gimp-2.7.x from git for Linux users
PostPosted: Sat Mar 05, 2011 6:41 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Too bad it isn't this easy for windows :P

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Installing Gimp-2.7.x from git for Linux users
PostPosted: Sun Mar 06, 2011 9:35 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Oct 29, 2010
Posts: 711
Location: Netherlands
I have both 2.6.11-r1 and 2.7.2 installed on the same box.
They both run w/o any problems.
In my /home directory I have .gimp-2.6 and .gimp-2.7 folders.
However they refuse to run both at the same time.
I have no idea why.Linux is multitasking and the software is completely separated.
When I start 2.7 first and 2.6 afterwards only 2.7 is running and vice-versa.
No crashes or troubles.
Gerard.

_________________
Gentoo Linux always up-to-date.
Kernel-3.17.4 Python-2.7.8/3.3.5
Gimp-2.8.14

I use Linux only.
And Virtualbox with Win 7


Top
 Post subject: Re: Installing Gimp-2.7.x from git for Linux users
PostPosted: Sun Mar 06, 2011 6:36 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Oct 29, 2010
Posts: 711
Location: Netherlands
Hurrah!
I now can run both 2.6 and 2.7!!
I placed my problem before the Gentoo forum and sure enough a solution came up.
Some wanted to do intricate things but one poster came up with a simple and effective solution.
First start one the usual way makes no difference which one.
/opt/bin/gimp-2.7 &

Then issue this command
/usr/bin/gimp-2.6 --new-instance &

And away we go.
In case you wonder what the ampersand is for:It gives you back your terminal.
Gerard.

_________________
Gentoo Linux always up-to-date.
Kernel-3.17.4 Python-2.7.8/3.3.5
Gimp-2.8.14

I use Linux only.
And Virtualbox with Win 7


Top
 Post subject: Re: Installing Gimp-2.7.x from git for Linux users
PostPosted: Mon May 02, 2011 2:24 am  (#11) 
Offline
New Member

Joined: May 01, 2011
Posts: 2
Hi.

This _mostly_ goes smoothly for me.
I'm installing everything in /home/bob/opt
I want to be able to run 2.6 for actual work, but I'm curious about 2.7.

I can compile and install gegl and babl just fine, using 'prefix=/home/bob/opt'

When I run autogen under /home/bob/opt/gimp, the build fails. The last few lines of the failure message reads:

checking for BABL... no
configure: error: Package requirements (babl >= 0.1.4) were not met:

No package 'babl' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables BABL_CFLAGS
and BABL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


I've tried passing a lot of different options to autogen. Like:



./autogen.sh --prefix=/home/mantis/opt PKG_CONFIG_PATH=/home/mantis/opt

./autogen.sh --prefix=/home/mantis/opt PKG_CONFIG_PATH=/home/mantis/opt/lib

./autogen.sh --prefix=/home/mantis/opt PKG_CONFIG_PATH=/home/mantis/opt/lib/babl-0.1


... and all the above with PKG_CONFIG_PATH replaced by BABL_LIBS.

But in the end, nothing works.

On a side note, this is one thing I hate about linux. When building things from source, its incredibly difficult to tell the package that you are building exactly where the support libraries are.

I'm building on 32bit ubuntu 10.10.

Any idea how I can actually get a successful build?


Top
 Post subject: Re: Installing Gimp-2.7.x from git for Linux users
PostPosted: Mon May 02, 2011 6:03 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Oct 29, 2010
Posts: 711
Location: Netherlands
Hi bobdobbs,
Instead of
PKG_CONFIG_PATH=/home/mantis/opt/lib


try this :
PKG_CONFIG_PATH=/home/mantis/opt/lib/pkgconfig

In there is the info gimp is looking for.
This is what I have for babl
prefix=/opt
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: babl
Description: Dynamic, any to any, pixel format conversion library
Version: 0.1.5
Cflags: -I${includedir}/babl-0.1
Libs: -L${libdir} -lbabl-0.1 -lm


A similar file for gegl should be in there.

Gerard.

Edit: Do you think it would be easier in Windows?
I use Gentoo.The whole install is compiled on your box.
It teaches you a lot about the inner workings of Linux.

_________________
Gentoo Linux always up-to-date.
Kernel-3.17.4 Python-2.7.8/3.3.5
Gimp-2.8.14

I use Linux only.
And Virtualbox with Win 7


Top
 Post subject: Re: Installing Gimp-2.7.x from git for Linux users
PostPosted: Mon May 02, 2011 7:01 am  (#13) 
Offline
New Member

Joined: May 01, 2011
Posts: 2
gerard82 wrote:
Edit: Do you think it would be easier in Windows?
I use Gentoo.The whole install is compiled on your box.
It teaches you a lot about the inner workings of Linux.


Hm. Good point. It would probably be even closer to impossible in windows.

Thanks for the solution. The option you gave me worked. autogen found the babl resource it needed.

However, now I'm getting a new error from autogen, further down the track...

checking for BABL... yes
checking for GEGL... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GLIB - version >= 2.28.1... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error: Test for GLIB failed. See the file 'INSTALL' for help.

Configure failed or did not finish!



Looks like it needs a later version of glib then the one that my system runs.
So, I downloaded and installed the latest version of glib2 into /home/mantis/opt

What do I do now?
How can I get autogen to pick up glib?


Top
 Post subject: Re: Installing Gimp-2.7.x from git for Linux users
PostPosted: Mon May 02, 2011 7:47 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: Oct 29, 2010
Posts: 711
Location: Netherlands
I don't know.
Glib is normally not installed in /home/*.
Autogen.sh generates a configure file.
Then a make file is made from that.
Try reading what is in the configure and make files.
The easiest way to do that is with "mc".
You might have to issue a directive to indicate the location of glib.
Other problems might arise from this:
The dependencies of glib are located elsewhere etc.
Programs installed in /home have limited permissions and might not be able to load dependencies.

Another solution might be an upgrade of your distro.
Consider installing in /opt rather than /home.



Gerard

_________________
Gentoo Linux always up-to-date.
Kernel-3.17.4 Python-2.7.8/3.3.5
Gimp-2.8.14

I use Linux only.
And Virtualbox with Win 7


Top
 Post subject: Re: Installing Gimp-2.7.x from git for Linux users
PostPosted: Mon Sep 19, 2011 10:54 am  (#15) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
gerard82 wrote:
For gegl the autogen.sh command is different.
cd ./gegl
./autogen.sh --prefix=/opt PKG_CONFIG_PATH=/opt/lib --disable-docs

(When I tried this the first time it failed with make unable to make the docs,couldn't find why)
You might want to try without --disable-docs maybe your system has what is needed.

I would advise against enabling the docs unless you know what you are doing. There appears to be a bug in GEGL's Makefiles which causes it to place some of the documentation in $DESTDIR/$DESTDIR/$PREFIX/share -- instead of $DESTDIR/$PREFIX/share where it belongs.

Note, if $DESTDIR is not specified during the 'make install' (i.e., it is an empty string), the documentation will be appropriately placed in $PREFIX/share. However, if a $DESTDIR is specified then things can go very awry. This anomaly can be particularly troubling if you are creating a package (.rpm, .deb, .tgz, etc) because when that package is installed later on, the content, ownership, and permissions of the original $DESTDIR may be changed.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Installing Gimp-2.7.x from git for Linux users
PostPosted: Mon Sep 19, 2011 12:09 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: Oct 29, 2010
Posts: 711
Location: Netherlands
Hi saulgoode,
Here's a snippet of the gegl "ebuild" in Gentoo.
Ebuilds contain directions how a package should be installed,usually from source.
src_configure() {
   # never enable altering of CFLAGS via profile option
   # libspiro: not in portage main tree
   # disable documentation as the generating is bit automagic
   #    if anyone wants to work on it just create bug with patch
   # gtk and friends: always enable
   econf \
      --disable-profile \
      --without-libspiro \
      --disable-docs --disable-workshop \

The Gentoo devs ran into the same problem.
Gerard.

_________________
Gentoo Linux always up-to-date.
Kernel-3.17.4 Python-2.7.8/3.3.5
Gimp-2.8.14

I use Linux only.
And Virtualbox with Win 7


Top
 Post subject: Re: Installing Gimp-2.7.x from git for Linux users
PostPosted: Mon Sep 19, 2011 12:59 pm  (#17) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
If you want to include the disabled documentation (which is effectively what you find on the GEGL website and mainly of interest to programmers) in your installation, I would recommend configuring GEGL with the --disable-docs option and then manually copying all of the HTML files found in the 'docs' subdirectory of the source tree to your installation.

Here is a list of the files that should end up in $PREFIX/share/gtk-doc/html/gegl/ :
api.html                           gegl-operation-point-composer.h.html  gegl-operation.h.html
brightness-contrast.c.html         gegl-operation-point-filter.h.html    gegl-plugin.h.html
gegl-operation-area-filter.h.html  gegl-operation-point-render.h.html    gegl.css
gegl-operation-composer.h.html     gegl-operation-sink.h.html            gegl.devhelp
gegl-operation-filter.h.html       gegl-operation-source.h.html          gegl.h.html
gegl-operation-meta.h.html         gegl-operation-temporal.h.html        operations.html

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Installing Gimp-2.7.x from git for Linux users
PostPosted: Tue Sep 20, 2011 5:13 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Oct 29, 2010
Posts: 711
Location: Netherlands
Thanks saulgoode.
I don't have those files in ./gegl/docs though.
I found a .gitignore file that lists most of those files.
What gitignore is is beyond me.
I checked the link to gegl.org but I don't think it's of any use to a mere user.
Gerard.

_________________
Gentoo Linux always up-to-date.
Kernel-3.17.4 Python-2.7.8/3.3.5
Gimp-2.8.14

I use Linux only.
And Virtualbox with Win 7


Top
Post new topic Reply to topic  [ 18 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) New Gimp AppImage for Linux Users

10

No new posts Attachment(s) Installing SCM in Fedora Linux

2

No new posts For samj 2.10.14 users

4

No new posts Attachment(s) Users' Paths

2

No new posts Attachment(s) Plugin header files for users

9



* Login  



Powered by phpBB3 © phpBB Group