OCamlPro / ocaml-top

A simple cross-platform OCaml code editor built for top-level evaluation.
http://typerex.org/ocaml-top.html
GNU General Public License v3.0
64 stars 8 forks source link

ocaml-top broken in OPAM on OSX #44

Open samoht opened 11 years ago

samoht commented 11 years ago

See https://github.com/OCamlPro/opam/issues/679

AltGr commented 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 !

hhugo commented 11 years ago
$ 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
longde123 commented 10 years ago

ocaml-top Fatal error: exception Gtk.Error("GtkMain.init: initialization failed ml_gtk_init: initialization failed")

emirotin commented 7 years ago

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.