Installing Sage 6.8 on OSX 10.10

After several days of attempting to install Sage on my MacBook (mid 2010) I'm about to give up.

First, I tried the binaries. Both the traditional version sage-6.8-x86_64-Darwin-OSX_10.10_x86_64.dmg and the app version sage-6.8-x86_64-Darwin-OSX_10.10_x86_64-app.dmg gave me an Unhandled SIGILL error when I attempted to run the simple expression 1.1+1.0 . The sage --testall failed with the same error in many tests.

I then attempted to build sage from the source code. The default Xcode clang compiler didn't work. Maybe because it doesn't have fortran and other prerequisites. I then downloaded and built the GNU gcc compiler. After several failed attempts to build sage with that I finally tried building sage with it's internal gcc compiler [export SAGE_INSTALL_GCC=yes] ... and that failed too. Both my built GNU gcc and sage's internal gcc compilers gave me the same error:

Comments

Do you see a line like "checking whether we can use the existing Boehm-Weiser library ... yes" in sage/logs/pkgs/ecl-13.5.1.p0.log? Or does it say "no" at the end? Do you have fink or homebrew installed? Those should be disabled before building Sage, and their presence could be confusing the build process.

1 answer

OS X: Xcode. Make sure you have installed the most recent version of Xcode. With recent versions of OS X (OS X Lion or later), you can install Xcode for free from the App Store. For pre-Lion versions of OS X, you can download Xcode from http://developer.apple.com/downloads/.

With OS X, you also need to install the "command line tools". When using OS X Mavericks, after installing Xcode, run this command from a terminal window:

xcode-select --install

Have you followed these directions? If not, do these, try make distclean, and try building again.