clasp-developers / clasp

clasp Common Lisp environment
https://clasp-developers.github.io/
2.57k stars 145 forks source link

Building Clasp on OS X with Homebrew #180

Closed GOFAI closed 8 years ago

GOFAI commented 8 years ago

I've managed to successfully build clasp on OSX using the llvm-3.6 formula and its associated clang (available in the homebrew/versions tap) instead of XCode or externals-clasp. This suggests that it should now be pretty straightforward to put together a homebrew formula for clasp, but I think there may need to be some adjustments to the build system to make it meet the standards in homebrew's Acceptable Formulae document.

In case you're curious, here was my procedure:

brew tap homebrew/dupes
brew tap homebrew/versions
brew install llvm-3.6
brew install boost
brew install automake
brew install autoconf
brew install libtool
brew install pkg-config
brew install expat
brew install zlib
brew install readline
brew install --c++11 gmp

I then modified the makefile (gist here) to tell it to use clang-3.6 and clang++-3.6, as well as to look for the other dependencies where homebrew installed them.

Shinmera commented 8 years ago

Hmm, interesting. I remember trying to use the MacPorts version of clang at some point to build Clasp and was getting strange errors about that. I'll see if I can reproduce your approach, thanks a lot for taking the time to try it out!

drmeister commented 8 years ago

GOFAI, Thank you for doing this. This is great. I'll figure out the makefile changes.

wuxianliang commented 8 years ago

Any progress on this issue? This would make more people to try Clasp immediately. Thank you.

Shinmera commented 8 years ago

Due to the requirement of a very recent XCode and externals-clasp again, I think this'll have to wait for another time.