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

OSX package ? #42

Open
AltGr opened this issue Jul 12, 2013 · 6 comments
Open

OSX package ? #42

AltGr opened this issue Jul 12, 2013 · 6 comments

Comments

@AltGr
Copy link
Member

AltGr commented Jul 12, 2013

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).

@avsm
Copy link

avsm commented Jul 12, 2013

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 notifications@github.com 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.

@yminsky
Copy link

yminsky commented Aug 3, 2013

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.

@samoht
Copy link

samoht commented Aug 5, 2013

To successfully install gtksourceview with pk-config and homebrew, I had to follow the workaround described in Homebrew/legacy-homebrew#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!

@yminsky
Copy link

yminsky commented Aug 5, 2013

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" notifications@github.com
wrote:

To successfully install gtksourceview with pk-config and homebrew, I had
to follow the workaround described in Homebrew/legacy-homebrew#21129Homebrew/legacy-homebrew#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//issues/42#issuecomment-22091964
.

@avsm
Copy link

avsm commented Aug 5, 2013

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 notifications@github.com 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" notifications@github.com
wrote:

To successfully install gtksourceview with pk-config and homebrew, I had
to follow the workaround described in Homebrew/legacy-homebrew#21129Homebrew/legacy-homebrew#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//issues/42#issuecomment-22091964
.


Reply to this email directly or view it on GitHub.

@AltGr
Copy link
Member Author

AltGr commented Aug 5, 2013

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 :)

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

4 participants