Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update scisql install instructions to use branch containing OS/X fixes

...

Code Block
languagebash
themeConfluence
export PREFIX=/usr/local/mysql  
# This is the directory with the mysql installation
# The executable for the mysql client should be in $PREFIX/bin/mysql for example  
git clone https://github.com/smonkewitz/scisql.git  # For the latest
cd scisql
git checkout tickets/DM-4867
./configure --prefix=$PREFIX --mysql-includes=$PREFIX/include
# If you get an error and you are sure you have an appropriate version, edit the tools/mysqlversion.py to always succeed and rerun configure.)
[sudo] make install

Check that the scisql libraries and deploy scripts are in $PREFIX. 

Next, deploy the UDFs. Note that by default, dynamic libraries in OS X end in .dylib instead of .so.  If you're running on OS X, and the install process created a libscisql-scisql_0.3.dylib instead of libscisql-scisql_0.3.so,  you need to change the references to the .so file to .dylib before deploying:

Code Block
languagebash
themeConfluence
# Only for OS X
sudo sed -i -e 's/.so/.dylib/g' $PREFIX/templates/deploy.mysql
sudo sed -i -e 's/.so/.dylib/g' $PREFIX/bin/scisql-deploy.py
Code Block
languagebash
themeConfluence
export PYTHONPATH:$PREFIX/python:$PYTHONPATH
sudo python $PREFIX/bin/scisql-deploy.py --mysql-dir=$PREFIX --mysql-socket=/tmp/mysql.sock

...