User Tools

Site Tools


en:user_advanced:installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:user_advanced:installation [2018/09/25 05:34] anupamaen:user_advanced:installation [2019/02/25 06:36] anupama
Line 24: Line 24:
 Prerequisites for compiling the source component and source distribution on Windows: Prerequisites for compiling the source component and source distribution on Windows:
   * Java JDK 6.x or later. For compiling on Windows 64 bit, need the 64 bit version of JDK. For compiling Greenstone 3.06 and onwards, need JDK 7.x or later.   * Java JDK 6.x or later. For compiling on Windows 64 bit, need the 64 bit version of JDK. For compiling Greenstone 3.06 and onwards, need JDK 7.x or later.
-  * PERL: if you're using GS3.07 or earlier, get ActivePerl for Windows. From GS3.08 onwards, binaries and source distributions come with a Strawberry Perl located in the GS3's ''gs2build\bin\windows\perl'' folder.+  * PERL: if you're using GS3.07 or earlier, get ActivePerl for Windows. From GS3.08 onwards, binaries and source distributions come with a [[http://trac.greenstone.org/browser/main/trunk/release-kits/shared/windows/perl.zip|Strawberry Perl]] located in the GS3's ''gs2build\bin\windows\perl'' folder.
   * Visual Studio 8 or later (Visual Studio 12 on 64 bit Windows 10 worked too.)   * Visual Studio 8 or later (Visual Studio 12 on 64 bit Windows 10 worked too.)
   * (If you want to compile GS2 or GS3 with debugging on, you will need Microsoft SDK)   * (If you want to compile GS2 or GS3 with debugging on, you will need Microsoft SDK)
Line 401: Line 401:
 checkout.imagemagick.ext=true checkout.imagemagick.ext=true
 </code>\\ **Not compiling at present on MacOS High Sierra (10.13.4).** So use the precompiled imagemagick binary* for that instead. </code>\\ **Not compiling at present on MacOS High Sierra (10.13.4).** So use the precompiled imagemagick binary* for that instead.
-  - If you're on Mac OS version 10.11/El Capitan, set CFLAGS, CXXFLAGS and JNIFLAGS as follows: \\ <code>export CFLAGS="$CFLAGS -I$JAVA_HOME/include -I$JAVA_HOME/include/darwin"+  - **If you're on Mac OS version 10.11/El Capitan or later**, set CFLAGS, CXXFLAGS and JNIFLAGS as follows: \\ <code>export CFLAGS="$CFLAGS -I$JAVA_HOME/include -I$JAVA_HOME/include/darwin"
 export CXXFLAGS="$CXXFLAGS $CFLAGS" export CXXFLAGS="$CXXFLAGS $CFLAGS"
-export JNICFLAGS="$JNICFLAGS $CFLAGS"</code> Since GS3.08, **if you're on 64 bit linux**, you will also need to add -fPIC to the CFLAGS and CXXFLAGS environment variables: \\ <code>export CFLAGS="-fPIC $CFLAGS"+export JNICFLAGS="$JNICFLAGS $CFLAGS"</code> Since GS3.08, **if you're on 64 bit linux**, you will need to add -fPIC to the CFLAGS and CXXFLAGS environment variables: \\ <code>export CFLAGS="-fPIC $CFLAGS"
 export CXXFLAGS="-fPIC $CXXFLAGS"</code> export CXXFLAGS="-fPIC $CXXFLAGS"</code>
   - Finally, you can start the steps for building GS3 from SVN: <code>   - Finally, you can start the steps for building GS3 from SVN: <code>
Line 422: Line 422:
 </code> </code>
  
-* If you want imagemagick and ghostscript on a mac, check out the precompiled binaries from svn+* If you want imagemagick and ghostscript on a mac, check out the precompiled binaries from svn **after** the ''ant prepare'' step
  
 <code> <code>
Line 456: Line 456:
 ==== Running the installer in text-only mode ==== ==== Running the installer in text-only mode ====
   - If you're on Linux or Mac, give the binary of the installer execute permissions   - If you're on Linux or Mac, give the binary of the installer execute permissions
-  - Then run it by passing in the text-only flag, as shown below.+  - Then run it by passing in the -textonly flag, as shown below.
   - Follow the instructions on the screen thereafter. If you mistype at any stage, press ctrl-C to start again.   - Follow the instructions on the screen thereafter. If you mistype at any stage, press ctrl-C to start again.
  
 <code> <code>
-> ./Greenstone-3.06rc1-linux-x64 text-only +> ./Greenstone-3.06rc1-linux-x64 -textonly
----------------------------- +
-Extracting java installer... +
----------------------------- +
- +
-Extraction Complete +
-You can now run "java -jar greenstone.jar text" to run the installer from the command line +
->+
 </code> </code>
 +
 +**NOTE:** Previously, the instructions for running the installer in text-only mode were incorrect. They advised running the installer wrongly using ''./Greenstone-3.06rc1-linux-x64 text-only'', which rather triggered the default behaviour of the installer software (antinstaller) for a different kind of text-only installation rather than triggering the Greenstone installer's specific -textonly mode. Unfortunately, the wrong route would not install the bundled JRE into the Greenstone installation, despite requiring the Greenstone user to run the ''java'' command in the very next step of the install.
 +
 ===== Installation for a networked lab environment ===== ===== Installation for a networked lab environment =====
  
en/user_advanced/installation.txt · Last modified: 2023/08/03 03:07 by anupama