[MacPorts] #63587: gimp2: Error: GIMP configuration failed (was: Port gimp2 fails during configuration on MacOS 10.14.6)

MacPorts noreply at macports.org
Fri Oct 8 00:36:33 UTC 2021


#63587: gimp2: Error: GIMP configuration failed
--------------------------+----------------------
  Reporter:  squiggledid  |      Owner:  dbevans
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  gimp2        |
--------------------------+----------------------
Changes (by ryandesign):

 * owner:  (none) => dbevans
 * status:  new => assigned


Old description:

> Port gimp2 fails during configuration on MacOS 10.14.6 with the error
> message:
>
> --->  Configuring gimp2
> Error: Failed to configure gimp2: consult
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.28/config.log
> Error: Failed to configure gimp2: configure failure: command execution
> failed
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_gimp2/gimp2/main.log
> for details.
> Error: Follow https://guide.macports.org/#project.tickets if you believe
> there
> is a bug.
> Error: Processing of port gimp2 failed
>
> I tried cleaning and trying again. Same result. I uninstalled and then
> tried installing again. Same result. I will attach the main.log and the
> config.log.

New description:

 Port gimp2 fails during configuration on MacOS 10.14.6 with the error
 message:

 {{{
 --->  Configuring gimp2
 Error: Failed to configure gimp2: consult
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.28/config.log
 Error: Failed to configure gimp2: configure failure: command execution
 failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_gimp2/gimp2/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there
 is a bug.
 Error: Processing of port gimp2 failed
 }}}

 I tried cleaning and trying again. Same result. I uninstalled and then
 tried installing again. Same result. I will attach the main.log and the
 config.log.

--

Comment:

 The main.log says the problem is:

 {{{
 :info:configure Error: GIMP configuration failed.
 :info:configure   - PyGTK 2.10.4 or newer
 :info:configure       *** Please install it, or skip building the python
 scripting extension by
 :info:configure       *** passing --disable-python to configure (but then
 you will not be able
 :info:configure       *** to use scripts for GIMP that are written in
 Python).
 :info:configure See the file 'INSTALL' for more help.
 }}}

 The config.log explains further:

 {{{
 configure:34397: checking for pygtk-2.0 >= 2.10.4
 configure:34404: $PKG_CONFIG --exists --print-errors "pygtk-2.0 >= 2.10.4"
 Variable 'PYTHON_EXEC_PREFIX' not defined in
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig/pygtk-2.0.pc'
 configure:34407: $? = 1
 configure:34421: $PKG_CONFIG --exists --print-errors "pygtk-2.0 >= 2.10.4"
 Variable 'PYTHON_EXEC_PREFIX' not defined in
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig/pygtk-2.0.pc'
 configure:34424: $? = 1
 configure:34438: result: no
 Variable 'PYTHON_EXEC_PREFIX' not defined in
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig/pygtk-2.0.pc'
 }}}

 What happens if you run:

 {{{
 PKG_CONFIG_PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig
 pkg-config --exists --print-errors "pygtk-2.0 >= 2.10.4"; echo $?
 }}}

 On my system the result is

 {{{
 0
 }}}

 meaning no error, but I wonder if you get a different result. If so, maybe
 try forcibly uninstalling and then reinstalling py27-pygtk.

 I also noted these errors in the main.log which probably also indicate
 something wrong:

 {{{
 :info:configure checking for matting engine Levin... GEGL-Message:
 10:04:05.538: Module '/opt/local/lib/gegl-0.4/ff-save.dylib' load error:
 dlopen(/opt/local/lib/gegl-0.4/ff-save.dylib, 10): Library not loaded:
 @rpath/libgio-2.0.0.dylib
 :info:configure   Referenced from: /opt/local/lib/libavcodec.58.dylib
 :info:configure   Reason: image not found
 :info:configure GEGL-Message: 10:04:05.594: Module
 '/opt/local/lib/gegl-0.4/ff-load.dylib' load error:
 dlopen(/opt/local/lib/gegl-0.4/ff-load.dylib, 10): Library not loaded:
 @rpath/libgio-2.0.0.dylib
 :info:configure   Referenced from: /opt/local/lib/libavcodec.58.dylib
 :info:configure   Reason: image not found
 }}}

 (The use of @rpath seems wrong to me.)

-- 
Ticket URL: <https://trac.macports.org/ticket/63587#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list