From c4692ae10f898c111a7d9d0bc9e7867820f249e1 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Wed, 19 Aug 2015 13:37:14 +0200 Subject: ob_{include|lib} paths fixed --- README.md | 22 +++++++++++++++++++--- ext/lazar/extconf.rb | 6 ++++-- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c398df2..ac40156 100644 --- a/README.md +++ b/README.md @@ -12,17 +12,33 @@ Dependencies You will also need at least mongodb version 3.0, but Debian "Wheezy" provides version 2.4. Please follow the instructions at http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian/: - ``` +``` sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list sudo apt-get update sudo apt-get install -y mongodb-org - ``` +``` Installation ------------ - gem install lazar + `gem install lazar` + + Please be patient, the compilation of OpenBabel and Fminer libraries can be very time consuming. If installation fails you can try a + + Manual installation + ................... + +``` + git clone https://github.com/opentox/lazar.git + cd lazar + ruby ext/lazar/extconf.rb + bundle install +``` + + This should give you more verbose information that can help in debugging (e.g. to identify missing libraries). + + This should Documentation ------------- diff --git a/ext/lazar/extconf.rb b/ext/lazar/extconf.rb index b86c61b..b9db3f0 100644 --- a/ext/lazar/extconf.rb +++ b/ext/lazar/extconf.rb @@ -50,10 +50,11 @@ Dir.chdir build_dir do end # get include and lib from pkg-config -ob_include= File.expand_path "../../openbabel/include/openbabel-2.0" -ob_lib= File.expand_path "../../openbabel/lib" +ob_include= File.expand_path File.join(File.dirname(__FILE__),"../../openbabel/include/openbabel-2.0") +ob_lib= File.expand_path File.join(File.dirname(__FILE__),"../../openbabel/lib") # compile ruby bindings +=begin puts "Compiling and installing OpenBabel Ruby bindings." Dir.chdir ruby_src_dir do # fix rpath @@ -61,6 +62,7 @@ Dir.chdir ruby_src_dir do system "#{RbConfig.ruby} extconf.rb --with-openbabel-include=#{ob_include} --with-openbabel-lib=#{ob_lib}" system "make -j#{nr_processors}" end +=end # install fminer fminer_dir = File.join main_dir, "libfminer" -- cgit v1.2.3