-
Notifications
You must be signed in to change notification settings - Fork 8
Description
I know this issue was somewhat being discussed here, but I just wanted to create more of a central place to keep track of progress with making it fully mac compatible. Here are some preliminary steps towards getting it installed correctly. Still working on making it more streamlined though.
-
In Terminal enter this to install the package manager, Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"It will display a review of what it is going to do and then prompt you to confirm the installation.
-
After Homebrew is installed, enter this into Terminal:
brew install llvm --without-assertions(This is the step I am working on improving though. This will install llvm 3.6.2, we need 3.7.0. I am in the process of finding or writing a Ruby script (You can view what I think I have, here.) that will work with Homebrew to install whatever version of llvm we need.)
-
Once llvm is installed copy the path of the installation. If no path is displayed enter this into Terminal to display the info page (including the path, towards the top) for llvm
brew info llvm -
Navigate to your root directory and enter:
nano .bash_profile -
Step 4 will either open an existing file or create a new one. Either way, add this line to the file, including your path from step 3, then save and close it:
export PATH=$PATH:ADD YOUR PATH FROM STEP 3 HEREMine looked like this:
export PATH=$PATH:/usr/local/Cellar/llvm/3.7.0/bin
So now what I need to do is get that ruby script working. I have it pretty much done, I just need to debug it some more. I get these errors/warnings at the very end after everything else works when running it:
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... unsupported
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes
checking how to run the C preprocessor... clang -E
checking whether clang works... no
configure: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ...
I'm hoping @bwittman can possibly offer some advice on the above issue? I tried following the steps found here but that did not fix the issue. After that's up and running we will probably be in pretty good shape to get it working consistently on multiple machines. I will add any more I come up with over the next few days.