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 db4.8-util 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) Install latex and okular to be able to use pdview within Secondo: sudo apt-get install texlive sudo apt-get install okular 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:.:$SECONDO_BUILD_DIR/Tools/pd export SECONDO_CONFIG=$SECONDO_BUILD_DIR/bin/SecondoConfig.ini export JAVAVER="1.6" export PD_HEADER=$SECONDO_BUILD_DIR/Tools/pd/pd.header export PD_DVI_VIEWER=/usr/bin/okular export PD_PS_VIEWER=/usr/bin/evince 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:.:$SECONDO_BUILD_DIR/Tools/pd export SECONDO_CONFIG=$SECONDO_BUILD_DIR/bin/SecondoConfig.ini export JAVAVER="1.6" export PD_HEADER=$SECONDO_BUILD_DIR/Tools/pd/pd.header export PD_DVI_VIEWER=/usr/bin/okular export PD_PS_VIEWER=/usr/bin/evince 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/Sources/old/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" Last Change: April 29, 2011 (rhg)