- XCode 6.0.1
- Homebrew -
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- gcc -
brew install gcc
- tcl/tk -
brew install tcl-tk
Folder stucture, I placed the source code inside a root folder to make it easier to update:
build.sh is entirely to make the changes in the makefiles smaller so I can update more easily.
The largest thing I changed in the Makefile.def what the CC++, CC, and the FC locations around line 150:
The gnu gcc compiler from brew currently doesn’t support 10.10 so that is why I am using the XCode ones in /usr/bin but XCode doesn’t have gfortran, so you still need the brew compiler.
Once you have this set up, you should be able to run (with a chmod +x):
or from the OpenSees folder you can pass in the HOME
Since the brew install of gfortran doesn’t link the libgfortran you will get the following error:
clang: error: no such file or directory: '/usr/local/lib/libgfortran.a'
Fix that by linking in the libraries: