Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocaml-top broken in OPAM on OSX #44

Open
samoht opened this issue Jul 16, 2013 · 4 comments
Open

ocaml-top broken in OPAM on OSX #44

samoht opened this issue Jul 16, 2013 · 4 comments

Comments

@samoht
Copy link

samoht commented Jul 16, 2013

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

@AltGr
Copy link
Member

AltGr commented Jul 16, 2013

@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
Copy link

hhugo commented Jul 16, 2013

$ 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
Copy link

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

@emirotin
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants