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

Compilation in OSX #60

Open
danyaljj opened this issue Sep 21, 2017 · 1 comment
Open

Compilation in OSX #60

danyaljj opened this issue Sep 21, 2017 · 1 comment

Comments

@danyaljj
Copy link

I had to go through these steps to be able to compile in my Mac, which has gcc 4.2 by default.
Thought it would be worth sharing.

First install gcc49, but this is not gonna change the default behavior:

brew install gcc49 

In command-line, create aliases for gcc 4.9:

export CC=/usr/local/bin/gcc-4.9
export CXX=/usr/local/bin/g++-4.9
export CPP=/usr/local/bin/cpp-4.9
export LD=/usr/local/bin/gcc-4.9
alias c++=/usr/local/bin/c++-4.9
alias g++=/usr/local/bin/g++-4.9
alias gcc=/usr/local/bin/gcc-4.9
alias cpp=/usr/local/bin/cpp-4.9
alias ld=/usr/local/bin/gcc-4.9
alias cc=/usr/local/bin/gcc-4.9
@dmcc
Copy link
Member

dmcc commented Sep 22, 2017

Thanks! I've linked to this issue from the README (though perhaps you'd be interested in incorporating it into the official docs as README-OSX.rst -- if so, please send a PR).

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

2 participants