Changeset 37277


Ignore:
Timestamp:
2023-02-05T11:39:49+13:00 (15 months ago)
Author:
davidb
Message:

Updated notes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-installations/eurovision-lod/trunk/sites/eurovision/INSTALL.txt

    r36765 r37277  
    1010Core command-line tools used by Greenstone3 are:
    1111
    12   svn
    13   make, autoconf, gcc, g++
    14   ant, javac
    15   libz, imagemagick, wget
    16 
    17 Sgvizler2 in the Apache Jena extension uses:
    18 
    19   npm, nodejs
     12    svn
     13    make, autoconf, gcc, g++
     14    libz, imagemagick, wget
    2015
    2116
     
    2318with:
    2419
    25   sudo apt update
    26   sudo apt install subversion build-essential openjdk-11-jdk ant libz-dev, imagemagick wget
    27   sudo apt install npm
    28  
    29 For editing config files, our preference is to use emacs:
     20    sudo apt update
     21    sudo apt install subversion build-essential libz-dev, imagemagick wget
    3022
    31   sudo apt install emacs
     23
     24Note 1: Greenstone3 also uses 'javac' and 'ant'.  These get installed as part of
     25        the process of svn checking out and then installing Greenstone
     26
     27Note 2: For some of the Greenstone extensions this installation makes use of
     28        there are some additional command-line tools that it makes use of:
     29        npm, nodejs, python3
     30
     31        Similar to 'javac' and 'ant' these get installed as part of the
     32    processing of getting the code checked out and installed
     33
     34
     35For editing config files, our preference is to use 'emacs':
     36
     37  sudo apt install emacs-nox
     38
    3239
    3340--
    34 2. Environemts Variable Settings
     412. Checkout and Prepare core Greenstone3 system
    3542--
    36 For the above Debian10 setup, set the following environment variables:
     43    svn co https://svn.greenstone.org/main/trunk/greenstone3 greenstone3-svn
     44    cd greenstone3-svn
    3745
    38   export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
    39   export PATH=$JAVA_HOME/bin:$PATH
    40 
    41 #  export CFLAGS=-fPIC
    42 #  export JAVACFLAGS="-source 1.6 -target 1.6"
    43 
    44 Adjust for your specific environemnt as necessary
    45 
    46 --
    47 3. Checkout and Prepare core Greenstone3 system
    48 --
    49   svn co https://svn.greenstone.org/main/trunk/greenstone3 greenstone3-svn
    50   cd greenstone3-svn
     46    # Now get
     47    cd ext-cli
     48    ./get-selfcontained-jdk.sh
     49    ./get-selfcontained-ant.sh
     50    ./get-selfcontained-nodejs.sh
     51    ./get-selfcontained-python3.sh
     52    cd ..
     53    source ./gs3-setup-cli.sh
    5154
    5255To generate a default 'build.properties'
     
    5962  ant install
    6063
     64
    6165--
    62 4. Test you have an operational Greenstone3 base DL server:
     663. Test you have an operational Greenstone3 base DL server:
    6367--
    6468  ant start
     
    6872  http://localhost:8383/greenstone3/library
    6973
    70 If working on a remote compute, such as a Google Compute Engine, use its console/dashboard
    71 to look up the IP number of the machine, and also add in a firewall rule to open up
    72 port 8080
     74  ant stop
    7375
    74   ant stop
    75  
     76
     77Note: If working on a remote compute, such as a Google Compute Engine, use its console/dashboard
     78      to look up the IP number of the machine, and also add in a firewall rule to open up
     79      port 8383
     80
     81      If looking for a quick test and you don't want to got through setting up the machine for
     82      external access, you can always set up an ssh tunnel. For example:
     83
     84        ssh -L 8383:localhost:8383 [email protected]
     85
     86
    7687--
    77 5. Checkout and compile the Apache Jena Triplestore extension:
     884. Checkout and compile the Apache Jena Triplestore extension:
    7889--
    79   svn co https://svn.greenstone.org/gs2-extensions/apache-jena/trunk/src gs2build/ext/apache-jena
    8090
    81   pushd gs2build/ext/apache-jena/
     91  pushd $GSDL3SRCHOME/gs2build/ext
     92  ./get-extension.sh apache-jena
     93
     94  cd apache-jena/
    8295  ./CASCADE-MAKE.sh
     96
    8397  popd
    8498
     99To test out your extension installation, follow the instructions
     100under:
     101
     102  "Test Your SPARQL Endpoint"
     103
     104In:
     105
     106  gs2build/ext/apache-jena/README.txt
     107
     108
    85109--
    86 6. Test your Sparql endpoint:
     1105. Checkout and compile the MARS extension
    87111--
    88 Run the Triplestore server:
    89112
    90   gs-triplestore-server3
     113This extension includes the auduio processing library
     114'essentia', and important for our use command-line
     115utilities such as 'essentia_streaming_extractor_music'
     116
     117  pushd $GSDL3SRCHOME//ext
     118  ./get-extension.sh mars
     119
     120  cd mars/
     121  ./CASCADE-MAKE.sh
     122
     123  # There's a lot to compile for essentia, so this will take a while
    91124 
    92 In a browser visit:
    93 
    94   http://localhost:4040
    95 
    96 If you need to change the port the server runs on, set the environment variable FUSEKI3_PORT.
    97 For instance:
    98 
    99   export FUSEKI3_PORT=6060
    100  
    101 Similar note, to the one above in (4) , about setup/access on/to a remote machine
    102 
    103 Stop gs-triplestore-server3 by pressing:
    104 
    105   Control-C (^C)
     125  popd
    106126
    107127
Note: See TracChangeset for help on using the changeset viewer.