Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Additional installation instructions

Original Documentation: http://okapiframework.org/wiki/index.php?title=Longhorn#Download_and_Installation.

Download okapi from https://bintray.com/okapi/Distribution/Longhorn

Install a tomcat server and get up Okapi there.

Code Block
languagebash
titleUbuntu example
linenumberstrue
# as root:
wget  https://bintray.com/okapi/Distribution/download_file?file_path=okapi-longhorn_all-platforms_0.35.zip -O okapi-longhorn_all-platforms_0.35.zip
unzip okapi-longhorn_all-platforms_0.35.zip
sudo apt-get update
sudo apt-get install tomcat8
cp okapi-longhorn.war /var/lib/tomcat7/webapps/
sudo systemctl enable tomcat8.service
sudo service tomcat8 start

The data directory for Okapi must be created manually. Try to create a Okapi project via the integrated web front-end accessible via the configured Okapi URL.

...

If you get the following errors in the tomcat log file: "net.sf.okapi.common.exceptions.OkapiException: SRX file not found" the reason could be missing rights on the above folder.

chown or chmod 777 the Okapi-Longhorn-Files folder and test the import again.

Code Block
languagebash
titleUbuntu Okapi Configuration Example
linenumberstrue
cd /var/log/tomcat8/
grep "default working directory" catalina.*
  catalina.out:INFO: The default working directory for Okapi Longhorn will be used, because no other was specified: /usr/share/tomcat8/Okapi-Longhorn-Files
cd /usr/share/tomcat8/
ls -al
mkdir Okapi-Longhorn-Files
chown tomcat8:tomcat8 Okapi-Longhorn-Files/


Translate5 Configuration of the Okapi Plug-In

Config nameValuesDefaultDescription
runtimeOptions.plugins.Okapi.api.urlstring Url used for Okapi api
runtimeOptions.plugins.Okapi.tikal.executablestring 

The absolute path to the tikal executable, no usable default can be given so is empty and must be configured by the user!

runtimeOptions.worker.editor_Plugins_Okapi_Worker.maxParallelWorkers

integer3Max parallel running workers of the Okapi worker


Code Block
languagesql
titleExample SQL of the translate5 Okapi configuration
linenumberstrue
-- activate plug-in (be careful and watch, if the active plug-ins in the SQL match your needs)
UPDATE `Zf_configuration` SET `value` = ["editor_Plugins_NoMissingTargetTerminology_Bootstrap","editor_Plugins_Transit_Bootstrap","editor_Plugins_SegmentStatistics_Bootstrap","editor_Plugins_TermTagger_Bootstrap","editor_Plugins_MatchResource_Init","editor_Plugins_ChangeLog_Init", "editor_Plugins_Okapi_Init"] WHERE `name` = 'runtimeOptions.plugins.active';

-- configure Okapi URL
UPDATE `Zf_configuration` SET `value` = "http://localhost:8080/okapi-longhosrn/" WHERE `name` = 'runtimeOptions.plugins.Okapi.api.url';