Skip to content

Instantly share code, notes, and snippets.

@ckundo
Last active August 29, 2015 14:16
Show Gist options
  • Save ckundo/41664aa0e0ca552015c5 to your computer and use it in GitHub Desktop.
Save ckundo/41664aa0e0ca552015c5 to your computer and use it in GitHub Desktop.
Install Tanaguru 3.0.4 on Mac OS X Mavericks
$ brew install mysql
$ mysql.server start
$ mysql -uroot -p
mysql> CREATE USER 'tanaguru'@'localhost' IDENTIFIED BY '<password>'; /
GRANT USAGE ON * . * TO 'tanaguru'@'localhost' IDENTIFIED BY '<password>'; /
CREATE DATABASE IF NOT EXISTS `tanaguru` CHARACTER SET utf8; /
GRANT ALL PRIVILEGES ON `<database>` . * TO 'tanaguru'@'localhost'; /
FLUSH PRIVILEGES;
exit;
$ wget http://download.tanaguru.org/Tanaguru/tanaguru-latest.tar.gz
$ tar xzf tanaguru-latest.tar.gz
$ cd tanaguru-3.0.4.i386/
$ sudo ./install.sh --mysql-tg-user tanaguru \
                    --mysql-tg-passwd password \
                    --mysql-tg-db tanaguru \
                    --tanaguru-url http://localhost:8080/tanaguru/

$ mysql -u tanaguru -p tanaguru < install/engine/sql/tanaguru-20-create-tables.sql
$ mysql -u tanaguru -p tanaguru < install/engine/sql/tanaguru-30-insert.sql 
$ mysql -u tanaguru -p tanaguru < install/rules/sql/10-rules-resources-insert.sql

Modify the 2 following scripts to remove the lines starting with "INSERT IGNORE INTO TGSI_REFERENTIAL":

  • install/rules/sql/accessiweb2.2-insert.sql
  • install/rules/sql/rgaa2.2-insert.sql

$ mysql -u tanaguru -p tanaguru < install/rules/sql/accessiweb2.2-insert.sql
$ mysql -u tanaguru -p tanaguru < install/rules/sql/rgaa2.2-insert.sql

Edit tanaguru.conf file and replace all stars '*********' with the correct user and password for your tanaguru mysql and replace the content of the jdbc.url variable with the right settings.

In bin/tanaguru.sh, change JAVA_BIN to be "/usr/bin/java ".

$ ./bin/tanaguru.sh http://google.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment