en:user_advanced:installation_312
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:user_advanced:installation_312 [2025/07/16 00:00] – [Windows] kjdon | en:user_advanced:installation_312 [2025/07/16 01:04] (current) – [Check developer tools and set up environment] kjdon | ||
---|---|---|---|
Line 29: | Line 29: | ||
Prerequisites for compiling the source component and source distribution on Windows: | Prerequisites for compiling the source component and source distribution on Windows: | ||
- | * **Microsoft Visual Studio** (8 or later) - for C++ compiling. | + | * **Microsoft Visual Studio** (8 or later) - for C++ compiling. |
- | * Please edit local/gs3-devel.bat and check that the paths to Visual Studio and the vcvars script are correct | + | (TODO - test whether buildtools is enough) |
+ | | ||
* **Apache Ant:** Version?? | * **Apache Ant:** Version?? | ||
* If you don't already have Ant installed, please run get-selfcontained-ant.bat in the ext-cli folder | * If you don't already have Ant installed, please run get-selfcontained-ant.bat in the ext-cli folder | ||
Line 40: | Line 41: | ||
* ?? add this to gs3-devel.bat?? | * ?? add this to gs3-devel.bat?? | ||
+ | Note: the bundled tar.exe (for unzipping) doesn' | ||
* **Java:** JDK 8 is the minimum version needed. JDK 8 or 11 are recommended. GS hasn't been tested yet on higher Java versions. For compiling on Windows 64 bit, you will need the 64 bit version of JDK. | * **Java:** JDK 8 is the minimum version needed. JDK 8 or 11 are recommended. GS hasn't been tested yet on higher Java versions. For compiling on Windows 64 bit, you will need the 64 bit version of JDK. | ||
Line 51: | Line 53: | ||
- Get the source component zip file from the downloads page. | - Get the source component zip file from the downloads page. | ||
- Unzip it directly into your Greenstone installation folder, make sure not to create intermediary folders. If Windows prompts you about whether you want existing folders merged (and existing files replaced), tick the box to confirm for all and click in the affirmative. | - Unzip it directly into your Greenstone installation folder, make sure not to create intermediary folders. If Windows prompts you about whether you want existing folders merged (and existing files replaced), tick the box to confirm for all and click in the affirmative. | ||
+ | |||
+ | === Check developer tools and set up environment === | ||
- Open a DOS prompt to run the following scripts and commands: | - Open a DOS prompt to run the following scripts and commands: | ||
- | - Go into your Greenstone installation folder, '' | + | - Go into your Greenstone installation folder, '' |
- | - The Java Runtime (JRE) included with Greenstone 3 binaries is a 32 bit Java 8 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 \\ | + | - ** Visual Studio** |
+ | - ** Java ** - the binary release only comes with a JRE, compiling needs a JDK. Greenstone | ||
+ | * If you have a suitable Java already installed, please edit local/ | ||
+ | * If you don't have a JDK, please run get-selfcontained-jdk.bat in the ext-cli folder - this will download a JDK 11. | ||
+ | - ** Ant ** - Ant is bundled in the binary | ||
+ | - ** Perl ** - Perl is also bundled in the binary release. | ||
+ | - In the greenstone3 folder, run '' | ||
+ | |||
+ | - The Java Runtime (JRE) included with Greenstone 3 binaries is a 32 bit Java 8 runtime. This means that //if the Windows machine that you're recompiling the binary with the source component on is not 32 bit Java 8 too//, then you will need to do the following before compiling \\ | ||
* rename '' | * rename '' | ||
* run '' | * run '' | ||
Line 77: | Line 89: | ||
BUILD FAILED | BUILD FAILED | ||
- | GS3\build.xml: | + | GS3\build.xml: |
- | * 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 '' | ||
- Grab the strawberry perl-with-cpan for Windows from https:// | - Grab the strawberry perl-with-cpan for Windows from https:// |
en/user_advanced/installation_312.1752624014.txt.gz · Last modified: 2025/07/16 00:00 by kjdon