- Follow the instructions here. The
CMake
version specific is not compatible for symlinks in newer OS. The steps specified here do not work. Please follow the next step. - Install CMake here.
- Configure the build with typing
cmake ..
in thebuild
folder - You may need to install
conan
. You can usepip install conan
. There are good instructions here
- Follow the instructions here
- Make sure to use Ruby 2.2.4. More details here
- Check ruby version with 'ruby --version'
- You should see
ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-darwin17]
- You can have multiple versions of ruby using
rvm
. This package allows you to switch between different ruby version. More details are accessible here - You can install
rvm
withrvm install ruby-2.2.4
or reinstall withrvm reinstall ruby-2.2.4
-
The following error is due to missing
aclocal
packge:
./autogen.sh: line 11: aclocal: command not found
The solution is to installautomake
and add it to the path. -
If you receive the following error, you need to make sure to have a
RUBYLIB
environment inbash_profile
.
2.2.4 :001 > require 'openstudio'
LoadError: cannot load such file -- openstudio
from /Users/Mohammad/.rvm/rubies/ruby-2.2.4/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/Mohammad/.rvm/rubies/ruby-2.2.4/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from (irb):1
from /Users/Mohammad/.rvm/rubies/ruby-2.2.4/bin/irb:11:in `<main>'
The RUBYLIB
points to the OpenStudio Application version installed on the system: export RUBYLIB=/Applications/OpenStudio-2.8.0/Ruby