Open samoht opened 11 years ago
@hhugo: What does ocamlfind query lablgtk2.sourceview2
return ?
Did you do anything special relative to your gtk / gtksourceview system installation ?
Can you check that opam list conf-gtksourceview
lists the package as installed ?
Finally, trying opam reinstall lablgtk
after making sure conf-gtksourceview
is installed might solve the problem.
Thanks a lot !
$ ocamlfind query lablgtk2.sourceview2
ocamlfind: Package `lablgtk2.sourceview2' not found
$ opam list conf-gtksourceview
No packages found.
'opam list conf-gtksourceview' failed.
$ opam list gtksourceview
Installed packages for 4.00.1:
gtksourceview 2
$opam update
$opam upgrade
$opam install conf-gtksourceview
$opam reinstall lablgtk
$opam install ocaml-top
It works. Thanks
I had to add the following to my osx(with homebrew) bash_profile to make required *.pc file visible from pkg-config.
export PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig/
for i in `ls /usr/local/opt/`;
do
if [ -d "/usr/local/opt/$i/lib/pkgconfig" ];
then export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:"/usr/local/opt/$i/lib/pkgconfig";
fi;
done
ocaml-top Fatal error: exception Gtk.Error("GtkMain.init: initialization failed ml_gtk_init: initialization failed")
I have the same error as longde123, both with opam version and with the one built from sources. I'm on macOS Sierra with MacPorts.
See https://github.com/OCamlPro/opam/issues/679