summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2015-08-19 13:37:14 +0200
committerChristoph Helma <helma@in-silico.ch>2015-08-19 13:37:14 +0200
commitc4692ae10f898c111a7d9d0bc9e7867820f249e1 (patch)
tree80c5c14d1edacb5dc8c058d50c502ef2204bca4f
parent36e10aa98a3d19a78a1889857262abe338a05eef (diff)
ob_{include|lib} paths fixed
-rw-r--r--README.md22
-rw-r--r--ext/lazar/extconf.rb6
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"