summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2012-03-27 11:01:16 +0200
committerAndreas Maunz <andreas@maunz.de>2012-03-27 11:01:16 +0200
commitb7415e62c4f8c73590afa90c87fed2d5478bf821 (patch)
treeae46dbcbcb9b4b092110844c58b7d3c31e9a63ab
parent22183f38807f2524527c57df4c2e9d207b30725b (diff)
Fixed OB bindings ruby version
-rwxr-xr-xbin/algorithm-install1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/algorithm-install b/bin/algorithm-install
index 77cb3d3..3bdb6c8 100755
--- a/bin/algorithm-install
+++ b/bin/algorithm-install
@@ -64,6 +64,7 @@ install_ob_ruby() {
SRC_DIR=$(dirname $(find $OT_PREFIX -name openbabel-ruby.cpp))
[ -d "$SRC_DIR" ] || (echo "Sources not found." 1>&2 && exit 1)
cd $SRC_DIR
+ cmd="$RBENV local $RUBY_VER" && run_cmd "$cmd" "Configure Ruby"
sed -i 's/Init_OpenBabel/Init_openbabel/g' openbabel-ruby.cpp # apply fix
RUBY=`which ruby`
cmd="$RUBY extconf.rb --with-openbabel-include=../../include --with-openbabel-lib=../../src/.libs" && run_cmd "$cmd" "Extconf ruby bindings"