Files
secondo/Documents/Installation/XUbuntu10.04LTS-Installation-Guide.txt

122 lines
3.5 KiB
Plaintext
Raw Normal View History

2026-01-23 17:03:45 +08:00
Installation of Secondo on Xubuntu 10.04
-----------------------------------------
1. Install Xubuntu from an Installation medium to hard disk and start it.
2. Configure the network environment using your preferred tool.
[ The next steps require a terminal. By pressing the right mouse button
and selecting "open a new terminal", you can get a terminal.]
3. Update the system
sudo apt-get upgrade
sudo apt-get update
4. Install all tools required to compile Secondo
sudo apt-get install flex
sudo apt-get install bison
sudo apt-get install gcc
sudo apt-get install g++
sudo apt-get install libdb4.8
sudo apt-get install libdb4.8-dev
sudo apt-get install libdb4.8++
sudo apt-get install libdb4.8++-dev
sudo apt-get install swi-prolog
sudo apt-get install swi-prolog-jpl
sudo apt-get install libjpeg62
sudo apt-get install libjpeg62-dev
sudo apt-get install libgsl0-dev
sudo apt-get install openjdk-6-jdk
(you can also use the sun sdk)
Note: steps 3 and 4 can also be done using the synaptic paket manager.
5. After finishing the installation, a file is needed to
set some environments variables. Because the locations for libraries and
includes differ for 32 and 64 bit systems, two different sets of commands are
required. Depending on your installed system, either choose the section for 32
bit or 64 bit platforms and copy the content into a file called
$HOME/.secondorc
#--- content of file .secondorc for 32 bit environment ----
if [ "$1" == "" ]; then
SEC_DIR=$HOME/secondo
else
SEC_DIR=$1
fi
export SECONDO_PLATFORM=linux
export SECONDO_BUILD_DIR=$SEC_DIR
export BERKELEY_DB_LIB="db_cxx"
export BERKELEY_DB_DIR=/usr
export J2SDK_ROOT=/usr/lib/jvm/java-6-openjdk/
export SWI_HOME_DIR=/usr/lib/swi-prolog
export PL_LIB_DIR=$SWI_HOME_DIR/lib/i386
export PL_INCLUDE_DIR=$SWI_HOME_DIR/include
export PL_VERSION=50647
export SECONDO_JAVA=$J2SDK_ROOT/bin/java
export readline=true
export PATH=$PATH:.
export SECONDO_CONFIG=$SECONDO_BUILD_DIR/bin/SecondoConfig.ini
export JAVAVER="1.6"
alias secroot='export SECONDO_BUILD_DIR=$PWD'
#---- end of file .secondorc for 32 bit environment ---
#---- content of file .secondorc for 64 bit environment ----
if [ "$1" == "" ]; then
SEC_DIR=$HOME/secondo
else
SEC_DIR=$1
fi
export SECONDO_PLATFORM=linux64
export SECONDO_BUILD_DIR=$SEC_DIR
export BERKELEY_DB_LIB="db_cxx"
export BERKELEY_DB_DIR=/usr
export J2SDK_ROOT=/usr/lib/jvm/java-6-openjdk/
export SWI_HOME_DIR=/usr/lib/swi-prolog
export PL_LIB_DIR=$SWI_HOME_DIR/lib/amd64
export PL_DLL_DIR=$SWI_HOME_DIR/lib/amd64
export PL_INCLUDE_DIR=$SWI_HOME_DIR/include
export PL_VERSION=50800
export JPL_DLL=$PL_LIB_DIR/libjpl.so
export JPL_JAR=$SWI_HOME_DIR/lib/jpl.jar
export SECONDO_JAVA=$J2SDK_ROOT/bin/java
export readline=true
export PATH=$PATH:.
export SECONDO_CONFIG=$SECONDO_BUILD_DIR/bin/SecondoConfig.ini
export JAVAVER="1.6"
export LD_LIBRARY_PATH=$BERKELEY_DB_DIR/lib:$SWI_HOME_DIR/lib:$PL_LIB_DIR
alias secroot='export SECONDO_BUILD_DIR=$PWD'
#---- end of file .secondorc for 64 bit environment ---
Note: Depending on your installation, some paths can differ.
6. Insert the following line at the end of the file $HOME/.bashrc:
source $HOME/.secondorc
7. Get the current Secondo from the Secondo Website and unpack the sources:
cd $HOME
wget http://dna.fernuni-hagen.de/Secondo.html/files/secondo-v300-LAT1.tar.gz
tar -xzf secondo-v300-LAT1.tar.gz
8, Close the terminal (exit) and open a new one.
9. Go into directory $HOME/secondo and compile Secondo just by typing "make"