Re: GLIB version error while compiling GIMP with MacPorts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK, after some hard time, I manage to get GIMP built.

Typically, I follow the instruction in http://clockwork.fr/how-to-compile-gimp-271-on-snow-leopard/

Note that one has to install gtk2 using command below to avoid some weird dependency problems

port install gtk2 +no_x11 +quartz +universal

However, another problem arises after the successful GIMP build. 

When I launched GIMP, some error messages regarding pygtk shows

Traceback (most recent call last):
  File "/usr/local/lib/gimp/2.0/plug-ins/python-eval.py", line 19, in <module>
    from gimpfu import *
  File "/usr/local/lib/gimp/2.0/python/gimpfu.py", line 76, in <module>
    import gimp
ImportError: could not import pygtk

(gimp-console-2.7:43828): LibGimpBase-WARNING **: gimp-console-2.7: gimp_wire_read(): error

with other similar errors referring to 

python-console.py, py-slice.py, palette-to-gradient.py, palette-sort.py, palette-offset.py, foggify.py, colorxhtml.py

I found an old thread with similar problem at 

http://lists.xcf.berkeley.edu/lists/gimp-developer/2008-February/019751.html

which suggests setting the PYTHONPATH might fix the problem. 

However, it did not work here. 

Any suggessions?

Thanks in advance,
Tim 

On Apr 14, 2011, at 12:57 AM, Chen Hsiang-Ting wrote:

> Hi all, 
> 
> I were trying to build GIMP 2.6 with MacPorts. However, I got several problems while issuing the ./configure 
> 
> The first problem I met is that it can not find libtiff/libjpg and I fix it following some old thread in the archive by adding
> 
> DYLD_LIBRARY_PATH=/opt/local/lib
> 
> Then comes the second problem regarding the incorrect version number of GLib. The error message is as follow
> 
> checking for GLIB - version >= 2.20.0... no
> *** Could not run GLIB test program, checking why...
> *** The test program compiled, but did not run. This usually means
> *** that the run-time linker is not finding GLIB or finding the wrong
> *** version of GLIB. If it is not finding GLIB, you'll need to set your
> *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
> *** to the installed location  Also, make sure you have run ldconfig if that
> *** is required on your system
> ***
> *** If you have an old version installed, it is best to remove it, although
> *** you may also be able to get things to work by modifying LD_LIBRARY_PATH
> configure: error: Test for GLIB failed. See the file 'INSTALL' for help.
> 
> However, I have already installed the Glib via MacPorts
> 
> bash-3.2$ port installed | grep glib
>  dbus-glib @0.92_0 (active)
>  glib2-devel @2.27.93_0 (active)
> 
> So, I am stuck here, anyone ever tried to build GIMP on Mac?
> 
> Thanks in advance!
> 
> -Tim
> 

_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux