BHL
Archive
This is a read-only archive of the BHL Staff Wiki as it appeared on Sept 21, 2018. This archive is searchable using the search box on the left, but the search may be limited in the results it can provide.

BHLE_Mandible_SMT_Installation

BHLE - Mandible: Installation of SMT-CLI


# Login as bhladmin
# Change into dev environment, opt, pre-ingest folder
bhladmin@bhl-mandible:~$ cd /mnt/nfs-demeter/dev/opt/pre-ingest/

# Create smt-cli directory
bhladmin@bhl-mandible:/mnt/nfs-demeter/dev/opt/pre-ingest$ mkdir smt-cli

# Upload latest smt-cli (binary distribution) using SFTP to /mnt/nfs-demeter/dev/opt/pre-ingest/smt-cli/

# Test if SMT is working correctly
bhladmin@bhl-mandible:/mnt/nfs-demeter/dev/opt/pre-ingest$ cd smt-cli/
bhladmin@bhl-mandible:/mnt/nfs-demeter/dev/opt/pre-ingest/smt-cli$ java -jar SMT-CLI.jar

# Running a test conversion
bhladmin@bhl-mandible:/mnt/nfs-demeter/dev/opt/pre-ingest/smt-cli$ java -jar SMT-CLI.jar -cm 5 -m c -if /mnt/nfs-demeter/upload/webroot/RMCA/Annals_RMCA_Zoology/serie_1_fishes_reptiles_amphibians/vol_1/Boulenger_Poissons\ nouveaux/poissonsnouveau00boulRMCA.xml -of olef.xml





NOTE: (outdated info below)
# Downloading current self-extracting JRE (1.6.26 as of June 15th 2011)
bhladmin@bhl-mandible:/mnt/nfs-demeter/dev/opt/pre-ingest$ wget "http://sdlc-esd.sun.com/ESD6/JSCDL/jdk/6u26-b03/jre-6u26-linux-x64.bin?AuthParam=1308127776_fc13722802140a57e68004eeb8dd9a6e&GroupName=JSC&FilePath=/ESD6/JSCDL/jdk/6u26-b03/jre-6u26-linux-x64.bin&File=jre-6u26-linux-x64.bin&BHost=javadl.sun.com"
# Rename JRE install file
bhladmin@bhl-mandible:/mnt/nfs-demeter/dev/opt/pre-ingest$ mv jre-6u26-linux-x64.bin\?AuthParam\=1308127776_fc13722802140a57e68004eeb8dd9a6e\&GroupName\=JSC\&FilePath\=%2FESD6%2FJSCDL%2Fjdk%2F6u26-b03%2Fjre-6u26-linux-x64.bin\&File\=jre-6u26-linux-x64.bin\&BHost\=javadl.sun.com jre-6u26-linux-x64.bin
# Extract JRE files
bhladmin@bhl-mandible:/mnt/nfs-demeter/dev/opt/pre-ingest$ sh jre-6u26-linux-x64.bin
# Remove install file
bhladmin@bhl-mandible:/mnt/nfs-demeter/dev/opt/pre-ingest$ rm jre-6u26-linux-x64.bin



pre-preingest@bhl-mandible:~$ mkdir bin

# Uploaded jre-6u23-linux-x64.bin using SFTP (to /home/preingest/bin/).

# Create required directories
pre-preingest@bhl-mandible:~$ cd bin/
pre-preingest@bhl-mandible:~/bin$ mkdir smt-cli

# Uploaded latest SMT-CLI (Schema Mapping Tool - Command Line Interface) using SFTP (to /home/preingest/bin/smt-cli/)

# Extract jre & Remove install file
pre-preingest@bhl-mandible:~/bin$ sh jre-6u23-linux-x64.bin
pre-preingest@bhl-mandible:~/bin$ rm jre-6u23-linux-x64.bin

# Test if SMT-CLI is working
pre-preingest@bhl-mandible:~/bin$ cd smt-cli/
pre-preingest@bhl-mandible:~/bin/smt-cli$ ../jre1.6.0_23/bin/java -jar SMT-CLI.jar