require 'fileutils' require 'mkmf' require 'rbconfig' $:.unshift File.expand_path('../../../lib', __FILE__) require 'openbabel/version' ob_num_ver = OpenBabel::VERSION ob_ver = "openbabel-"+ob_num_ver RUBY=File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name']) main_dir = File.expand_path(File.join(File.dirname(__FILE__),"..","..")) ext_dir = File.join main_dir, "ext/openbabel" install_dir = "~/vendor/openbabel" install_lib_dir = File.join install_dir, "lib" begin system "export LD_LIBRARY_PATH=~/vendor/openbabel/lib:$LD_LIBRARY_PATH" create_makefile "openbabel" end