Third-party:Global

From HemeraBook
Revision as of 09:54, 27 November 2011 by Projettwk (Talk | contribs) (Created page with '{| align="right" |- | __TOC__ |} =Tools available with package manager= You must install:<br /> * (optional - needed to get Hemera source code) Version control system: [http://g…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Tools available with package manager

You must install:

  • (optional - needed to get Hemera source code) Version control system: Git
  • (optional - needed to get some third-party tools source code) Version control system: Apache Subversion
  • Build tool (Java-based): Apache Ant
  • FileSystem events monitor: inotify-tools
  • Speech sound player: SoX (Hemera requires v14.2.0 or later, if your operating system doesn't provide it, install it from source)
  • (optional) Fast incremental file transfer tool: rsync
  • HTML to text converter: html2text


RedHat-based distributions

yum install ant inotify-tools sox rsync html2text

Debian-based distributions

sudo apt-get install ant inotify-tools sox rsync html2text


Check/update the following configuration elements (See binary and library paths)

hemera.core.iomanager.inputMonitor.*
hemera.core.iomanager.ioProcessorMonitor.*
hemera.core.speech.soundPlayer.*
hemera.core.speechRecognition.soundRecorder.*
hemera.core.command.general.*


To complete Apache Ant installation, you must:



Other tools

Java

You need a Java 6 version or later.
You can use OpenJDK version, or Oracle/Sun one.
Standard users can use a Java Runtime Environment (JRE); developers, contributors (and optionally advanced users) must use a Java Development Kit (JDK).

After the installation of the version of your choice, you must:

  • ensure JAVA_HOME environment variable is set on your system
  • OR define the configuration element environment.java.home


OpenJDK version

OpenJDK is now available in lots of distribution package manager.

For Standard users:
RedHat-based distributions

yum install java-1.6.0-openjdk

Debian-based distributions

sudo apt-get install openjdk-6-jre


For developers and contributors:
RedHat-based distributions

yum install java-1.6.0-openjdk-devel

Debian-based distributions

sudo apt-get install openjdk-6-jdk


Oracle/Sun version

Download the version matching your Operating System and architecture, from the Oracle/Sun.


GNU which

On Debian-based distributions, GNU which is not available by default.
You must install it from source, following these instructions:

./configure
make -s
sudo make install

GNU version of which will now be available in PATH.


SoX v14.2+

If your operating system doesn't provide SoX v14.2.0 or later, you must install it from source, following these instructions:

  • prepare your machine to compile source
  • download v14.3.2 or later
  • uncompress it in HEMERA_TP_PATH/_fromSource which has been created to help you keeping track on third-party tools you have installed for Hemera, and for more ease updating configuration file (sample gives ready-to-use paths)
  • rename the directory from sox-14.3.2 (or anything else) to sox, such a way you can use directly the binary and library paths configuration provided by the sample
  • configure
./configure
  • ensure end of report indicates support to your Sound Device (usually ALSA project or Pulse Audio). If it is NOT the case, ensure you have correctly prepared your machine to compile source. This is a report part sample:
 OPTIONAL DEVICE DRIVERS
 alsa (Linux)...............yes
 pulseaudio.................yes
  • compile:
make -s
  • check/update your configuration file 1/2 (See binary and library paths):
    • add following paths, separated by colon, to hemera.path.bin (or get everything from configuration file sample):
      • _fromSource/sox/src
    • add following paths, separated by colon, to hemera.path.lib (or get everything from configuration file sample):
      • _fromSource/sox/src/.libs
hemera.core.speech.soundPlayer.*
hemera.core.speechRecognition.soundRecorder.*