Top Level Namespace
Defined Under Namespace
Constant Summary collapse
- ROOT_DIR =
File.dirname(File.absolute_path(__FILE__))
- TARBALL_PATH =
"/tmp/Cbc.tgz"- CBC_SRC_DIR =
"/tmp/Cbc-2.9.7"- CBC_INSTALL =
"#{ROOT_DIR}/install"
Instance Method Summary collapse
Instance Method Details
#install_cbc ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'ext/ruby-cbc/extconf.rb', line 7 def install_cbc system "curl -o #{TARBALL_PATH} http://www.coin-or.org/download/source/Cbc/Cbc-2.9.7.tgz" Dir.chdir "/tmp" system "tar -xzf #{TARBALL_PATH}" res = system "cd #{CBC_SRC_DIR} && ./configure --prefix=#{CBC_INSTALL} -C --with-pic --without-static && make -j4 && make install" if not res puts "Failed to build CBC, aborting" exit 1 end end |