Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

Install: OSX 10.10 developer preview + Xcode 5.1.1 error #90

Open
wallter opened this issue Aug 21, 2014 · 2 comments
Open

Install: OSX 10.10 developer preview + Xcode 5.1.1 error #90

wallter opened this issue Aug 21, 2014 · 2 comments

Comments

@wallter
Copy link

wallter commented Aug 21, 2014

Just wanted to share how I (think) I successfully Installed pfff on OSX 10.10 + Xcode 5.1.1 in the hopes that it will help someone else:


downloads:pfff wallter$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make rec 
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C commons
ocamlc.opt -g -dtypes -bin-annot -absname -thread -w +9 -I ocamlextra -I ocollection  -c ocamlextra/realpath.c -o realpath.o
clang: error: unknown argument: '-fno-defer-pop' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make[2]: *** [realpath.o] Error 2
make[1]: *** [rec] Error 2
make: *** [all] Error 2

Reading through the log I noticed that it was pointing to /Applications/Xcode.app so I figured I'd update the Xcode command line tools: (StackOverflow Question).

xcode-select --install

But still no luck...

Continued through the error to re-install Ocaml (originally installed with Inria's binary package via brew:

brew install ocaml

Note: this took quite a long time to install ~~~ 3min for make world, 3min for make opt, 3min for make opt.opt ...

Got the following error when it was running make PREFIX=/usr/local/Cellar/objective-caml/4.01.0_1 install:

Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using:
  brew link objective-caml

So I ran: brew link objective-caml:

Error: Could not symlink bin/camlp4
Target /usr/local/bin/camlp4
already exists. You may want to remove it:
  rm /usr/local/bin/camlp4

So I ran rm /usr/local/bin/camlp4:

override rwxr-xr-x  root/wheel for /usr/local/bin/camlp4?

I typed "yes" ... but I have no idea of what "yes means" --- I assumed the "root/wheel" was user:group and that it was asking if I wanted to change the permissions on the file so it could be deleted. Might have run that one as sudo to avoid the "override" / "yes" thing.

After the following two removes:sudo rm /usr/local/bin/camlp4boot; sudo rm /usr/local/bin/camlp4o I ran brew link --overwrite objective-caml which complained:

Linking /usr/local/Cellar/objective-caml/4.01.0_1... 
Error: Could not symlink lib/ocaml/Makefile.config
/usr/local/lib/ocaml is not writable.

Note: You can't run sudo brew link --overwrite objective-caml because:

sudo brew link --overwrite objective-caml
Error: Cowardly refusing to `sudo brew link`
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.

I then ran:

sudo chmod -R 777 /usr/local/lib/ocaml; brew link --overwrite objective-caml;

It's bad to chmod 777 blah blah blah....

Everything worked after this - verified by:

downloads:pfff wallter$ brew install ocaml
Warning: objective-caml-4.01.0_1 already installed

Finally going back to the install ran: make to this output: http://pastebin.com/175BxsrT.

Everything seems to be working....

@aryx
Copy link
Contributor

aryx commented Aug 22, 2014

Sorry for the troubles ...
I think the easiest way on macos is to install ocaml through OPAM.

@ghost
Copy link

ghost commented Aug 4, 2015

Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

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

No branches or pull requests

2 participants