Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:user_advanced:installation [2018/09/13 13:34]
anupama [Uptodate source code from SVN]
en:user_advanced:installation [2018/11/13 19:06] (current)
anupama [Windows]
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 387: Line 387:
 export JAVA_HOME=/​path/​to/​your/​jdk7 export JAVA_HOME=/​path/​to/​your/​jdk7
 export ANT_HOME=/​path/​to/​your/​ant export ANT_HOME=/​path/​to/​your/​ant
-export PATH=$JAVA_HOME/​bin:​ +export PATH=$JAVA_HOME/​bin:​$ANT_HOME/​bin:​$PATH
-$ANT_HOME/​bin:​$PATH+
 </​code>​ </​code>​
   - Checkout the code: <​code>​   - Checkout the code: <​code>​
Line 402: 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 423: 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>​