en:user_advanced:installation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:user_advanced:installation [2023/03/19 21:15] – [Uptodate source code from SVN] kjdon | en:user_advanced:installation [2023/07/29 09:09] – [Source Distribution] anupama | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
Updated on 30 Sep 2021, with changes that do not apply for Greenstone 3.10 and earlier. | Updated on 30 Sep 2021, with changes that do not apply for Greenstone 3.10 and earlier. | ||
For instructions related to compiling GS3.10 from source distribution or with source component, or with source code from before September 2021, refer to the now [[old: | For instructions related to compiling GS3.10 from source distribution or with source component, or with source code from before September 2021, refer to the now [[old: | ||
Line 29: | Line 28: | ||
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 3.11 and onwards, JDK 8 is needed. For compiling Greenstone 3.06 and onwards, need JDK 7.x or later. |
+ | C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat | ||
* 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:// | * 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:// | ||
* 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.) | ||
Line 47: | Line 47: | ||
:: For this, need to cd into the folder where this script lives using the short filename path to this folder | :: For this, need to cd into the folder where this script lives using the short filename path to this folder | ||
:: %0 is this script | :: %0 is this script | ||
- | :: %~dp gives the full path to the folder containing this script. | + | :: For the following 2 lines, the spaces between percent sign, tilde and what follows after need to be removed |
- | :: %~s gives the windows short filename version | + | :: when writing the active command based on those lines. Spaces have been inserted in the following |
+ | :: to prevent this script from causing errors about these commented out lines when running. | ||
+ | :: % ~ dp gives the full path to the folder containing this script. | ||
+ | :: % ~ s gives the windows short filename version | ||
:: Combine to get what we want. | :: Combine to get what we want. | ||
:: Note that this will leave the DOS prompt pointing to short filename of the folder | :: Note that this will leave the DOS prompt pointing to short filename of the folder | ||
Line 80: | Line 83: | ||
:: (It may be apache httpd that needs 32 bit mode to compile.) | :: (It may be apache httpd that needs 32 bit mode to compile.) | ||
:: For now only VS9.0 (VS2008) works | :: For now only VS9.0 (VS2008) works | ||
+ | |||
:: FOR COMPILING GS2 on WINDOWS: | :: FOR COMPILING GS2 on WINDOWS: | ||
Line 91: | Line 95: | ||
:: (if using 64 bit windows, uncomment the following line by removing the two colons at its start) | :: (if using 64 bit windows, uncomment the following line by removing the two colons at its start) | ||
:: call " | :: call " | ||
+ | |||
+ | |||
+ | |||
+ | :: TO LOCATE YOUR vcvars32.bat (GS2/GS3) OR vcvarsall.bat (GS3) IN YOUR VISUAL STUDIO INSTALLATION: | ||
+ | :: Different Visual Studio installations can contain the vcvars32.bat and/or vcvarsall.bat in locations | ||
+ | :: different to the above examples. To locate your installation' | ||
+ | :: Open a DOS prompt and cd/change directory into your Visual Studio folder. Then use the command: dir /b /s " | ||
+ | :: and specify find the vcvars script by name, e.g. | ||
+ | :: C:\Program Files (x86)\Microsoft Visual Studio> | ||
+ | :: If such a file exists within your Visual Studio installation, | ||
+ | :: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat | ||
+ | :: Use this result in the " | ||
+ | :: (and further, only for vcvarsall.bat, | ||
+ | :: call " | ||
+ | |||
:done | :done | ||
Line 106: | Line 125: | ||
- The Java Runtime (JRE) included with Greenstone 3 binaries is a 32 bit Java 7 runtime. This means that //if the Windows machine that you're recompiling the binary with the source component on is not 32 bit Java 7 too//, then you will need to do the following before compiling \\ | - The Java Runtime (JRE) included with Greenstone 3 binaries is a 32 bit Java 7 runtime. This means that //if the Windows machine that you're recompiling the binary with the source component on is not 32 bit Java 7 too//, then you will need to do the following before compiling \\ | ||
* rename '' | * rename '' | ||
- | * run '' | + | * run '' |
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | 4\nmake.exe" | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | >>>> | ||
+ | | ||
+ | | ||
+ | |||
+ | BUILD FAILED | ||
+ | GS3\build.xml: | ||
* you may also want to want to delete '' | * you may also want to want to delete '' | ||
- Finally, you can compile Greenstone 3. Still in your Greenstone installation folder, run '' | - Finally, you can compile Greenstone 3. Still in your Greenstone installation folder, run '' | ||
Line 116: | Line 157: | ||
**Note if you want to use the bundled JRE for Windows 64 bit:** | **Note if you want to use the bundled JRE for Windows 64 bit:** | ||
- | To run GLI after recompiling your binary on a 64 bit Windows machine, you need JDK 7 (or JRE 7) for 64 bit set up in your environment, | + | To run GLI after recompiling your binary on a 64 bit Windows machine, you need JDK 8 or JRE 8 (for pre-GS3.11 you'd need JDK 7 else JRE 7) for 64 bit set up in your environment, |
- | Therefore, to run GLI after compiling GS3 for 64 bit, add the bin folder of JRE 7 for 64 bit to the PATH, or set JAVA_HOME to JDK 7 64 bit and add its bin folder to the PATH. Then run GLI in this environment. | + | Therefore, to run GLI after compiling GS3 for 64 bit, add the bin folder of JRE for 64 bit to the PATH, or set JAVA_HOME to JDK 64 bit and add its bin folder to the PATH. Then run GLI in this environment. |
<tabbox Greenstone2> | <tabbox Greenstone2> | ||
- Get the source component zip file from the downloads page. | - Get the source component zip file from the downloads page. | ||
Line 143: | Line 184: | ||
- Now you can finally compile Greenstone 3. Still in your Greenstone installation folder, run '' | - Now you can finally compile Greenstone 3. Still in your Greenstone installation folder, run '' | ||
- It can take several minutes to compile up. | - It can take several minutes to compile up. | ||
+ | |||
+ | Once compiled up, you may want imagemagick in your installation as the source distribution does not come with one nor built it for windows. | ||
+ | To grab an imagemagick for windows, | ||
+ | - visit https:// | ||
+ | - click the " | ||
+ | - move the downloaded zip file into your compiled up GS3 source distribution folder' | ||
+ | - extract the '' | ||
+ | |||
**Notes for Windows 64 bit:** | **Notes for Windows 64 bit:** | ||
- | To run GLI or the gs3-server after compiling the source code on a 64 bit Windows machine, you need your environment to be set up with JDK 7+ (or JRE 7+) for 64-bit and Ant: set the JAVA_HOME environment variable to your 64 bit JDK and add the JDK's '' | + | To run GLI or the gs3-server after compiling the source code on a 64 bit Windows machine, you need your environment to be set up with JDK 8 or JRE 8 (or JDK 7+ else JRE 7+ for Greenstone versions prior to GS3.11) for 64-bit and Ant: set the JAVA_HOME environment variable to your 64 bit JDK and add the JDK's '' |
<tabbox Greenstone2> | <tabbox Greenstone2> | ||
- Get the source distribution zip file from the downloads page. | - Get the source distribution zip file from the downloads page. | ||
Line 167: | Line 216: | ||
Prerequisites for compiling on Windows: | Prerequisites for compiling on Windows: | ||
- | * Java JDK 6.x or later | + | * Java JDK 6.x or later, JDK 7+ for GS3.06 onwards, and JDK 8 for GS3.11 onwards |
* PERL (ActivePerl for Windows | * PERL (ActivePerl for Windows | ||
* Visual Studio 8 or later | * Visual Studio 8 or later |
en/user_advanced/installation.txt · Last modified: 2023/08/03 03:07 by anupama