ocaml-top icon indicating copy to clipboard operation
ocaml-top copied to clipboard

ocaml-top broken in OPAM on OSX

Open samoht opened this issue 11 years ago • 4 comments

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

samoht avatar Jul 16 '13 08:07 samoht

@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 !

AltGr avatar Jul 16 '13 10:07 AltGr

$ 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

hhugo avatar Jul 16 '13 10:07 hhugo

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

longde123 avatar Aug 19 '14 04:08 longde123

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.

emirotin avatar Nov 26 '16 19:11 emirotin