Reputation: 3293
I'm having trouble installing lablgtk. When I type in opam install lablgtk
The following actions will be performed:
∗ install lablgtk 2.18.5
=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 🐫
[lablgtk] Archive in cache
=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 🐫
[ERROR] The compilation of lablgtk failed at "./configure --prefix
/Users/name/.opam/4.03.0
LABLGLDIR=/Users/name/.opam/4.03.0/lib/lablgl".
Processing 1/1: [lablgtk: ocamlfind remove]
#=== ERROR while installing lablgtk.2.18.5 ====================================#
# opam-version 1.2.2
# os darwin
# command ./configure --prefix /Users/name/.opam/4.03.0 LABLGLDIR=/Users/name/.opam/4.03.0/lib/lablgl
# path /Users/name/.opam/4.03.0/build/lablgtk.2.18.5
# compiler 4.03.0
# exit-code 1
# env-file /Users/name/.opam/4.03.0/build/lablgtk.2.18.5/lablgtk-9935-1872ec.env
# stdout-file /Users/name/.opam/4.03.0/build/lablgtk.2.18.5/lablgtk-9935-1872ec.out
# stderr-file /Users/name/.opam/4.03.0/build/lablgtk.2.18.5/lablgtk-9935-1872ec.err
### stdout ###
# [...]
# checking whether we are using the GNU C compiler... yes
# checking whether gcc accepts -g... yes
# checking for gcc option to accept ISO C89... none needed
# checking whether C compiler accepts -fno-unwind-tables... yes
# checking platform... Unix
# checking native dynlink... checking for pkg-config... /usr/local/bin/pkg-config
# checking for GTK+ - version >= 2.0.0... no
# *** Could not run GTK+ 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 GTK+ is incorrectly installed.
### stderr ###
# configure: WARNING: Cannot find camlp4o; please do not modify .ml4 files.
# configure: error: GTK+ is required
=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 🐫
The following actions failed
∗ install lablgtk 2.18.5
No changes have been performed
=-=- lablgtk.2.18.5 troubleshooting -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 🐫
=> This package requires gtk+ 2.0 development packages installed on your system
=> To solve pkg-config issues, you may need to do
'export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig' (macports)
or 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig' (homebrew)
and retry
Even though when I type in brew install gtk+
I'm told that:
Warning: gtk+-2.24.30 already installed
Upvotes: 0
Views: 997
Reputation: 4441
I think you need to install the library libgtk2.0-dev
.
Try sudo apt-get install libgtk2-dev
for debian base distributions.
On Mac OSX, there are some things to do, most of it can be found here : http://www.gtk.org/download/macos.php
Upvotes: 0