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

OSX package ?

Open AltGr opened this issue 11 years ago • 6 comments

New mac users have been disappointed to only find a Windows package, and frightened to compile from source. We need to at least make the documentation on installing with opam more directly visible, and a mac package may be better for visibility (I don't know of a student computer lab with macs, but lots of teachers use them).

AltGr avatar Jul 12 '13 12:07 AltGr

It should be possible to make a Mac mpkg directly by tarring up an .opam tree, if that's not too distasteful. It would be useful for generating other binaries too.

On 12 Jul 2013, at 13:37, Louis Gesbert [email protected] wrote:

New mac users have been disappointed to only find a Windows package, and frightened to compile from source. We need to at least make the documentation on installing with opam more directly visible, and a mac package may be better for visibility (I don't know of a student computer lab with macs, but lots of teachers use them).

— Reply to this email directly or view it on GitHub.

avsm avatar Jul 12 '13 12:07 avsm

As far as I can tell, this doesn't work at all under brew, because gtksourceview does not build properly. I built gtksourceview from brew, but when trying to build ocaml-top, it errors out

==== ERROR [while installing conf-gtksourceview.2] ====
# opam-version    1.0.0
# os              darwin
# command         pkg-config gtksourceview-2.0
# path            /Users/yminsky/.opam/4.01.0dev+trunk/build/conf-gtksourceview.2
# exit-code       1
# env-file        /Users/yminsky/.opam/4.01.0dev+trunk/build/conf-gtksourceview.2/conf-gtksourceview-6d07ae.env
# stdout-file     /Users/yminsky/.opam/4.01.0dev+trunk/build/conf-gtksourceview.2/conf-gtksourceview-6d07ae.out
# stderr-file     /Users/yminsky/.opam/4.01.0dev+trunk/build/conf-gtksourceview.2/conf-gtksourceview-6d07ae.err

'opam install ocaml-top' failed.

yminsky avatar Aug 03 '13 20:08 yminsky

To successfully install gtksourceview with pk-config and homebrew, I had to follow the workaround described in https://github.com/mxcl/homebrew/issues/21129:

export PKG_CONFIG_PATH=$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

In 1.1 we will have post-messages where we can describe easily such work-around!

samoht avatar Aug 05 '13 08:08 samoht

Is this something that can get fixed upstream in brew? This seems like too complicated of a workaround for a tool intended for beginners. On Aug 5, 2013 4:03 AM, "Thomas Gazagnaire" [email protected] wrote:

To successfully install gtksourceview with pk-config and homebrew, I had to follow the workaround described in mxcl/homebrew#21129https://github.com/mxcl/homebrew/issues/21129

export PKG_CONFIG_PATH=$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

In 1.1 we will have post-messages where we can describe easily such work-around!

— Reply to this email directly or view it on GitHubhttps://github.com/OCamlPro/ocaml-top/issues/42#issuecomment-22091964 .

yminsky avatar Aug 05 '13 10:08 yminsky

This is a breakage in MacOS X and fairly hard to fix in Homebrew with root. But the whole point of this issue is to create a binary package that solves the problem for beginners... they shouldn't be doing source installs anyway.

-anil

On 5 Aug 2013, at 11:55, Yaron Minsky [email protected] wrote:

Is this something that can get fixed upstream in brew? This seems like too complicated of a workaround for a tool intended for beginners. On Aug 5, 2013 4:03 AM, "Thomas Gazagnaire" [email protected] wrote:

To successfully install gtksourceview with pk-config and homebrew, I had to follow the workaround described in mxcl/homebrew#21129https://github.com/mxcl/homebrew/issues/21129

export PKG_CONFIG_PATH=$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

In 1.1 we will have post-messages where we can describe easily such work-around!

— Reply to this email directly or view it on GitHubhttps://github.com/OCamlPro/ocaml-top/issues/42#issuecomment-22091964 .

— Reply to this email directly or view it on GitHub.

avsm avatar Aug 05 '13 11:08 avsm

I'm counting on @samoht to make one once OPAM 1.1 is released, since I don't have a mac available. I'll work on a .deb meanwhile :)

AltGr avatar Aug 05 '13 11:08 AltGr