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/15 00:48] – [Windows] kjdon | en:user_advanced:installation_312 [2025/07/16 01:04] (current) – [Check developer tools and set up environment] kjdon | ||
---|---|---|---|
Line 28: | 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 8 is the minimum version needed. For compiling on Windows 64 bit, you will need the 64 bit version of JDK. | + | |
- | * If you have a JDK already installed, please set the JAVA_HOME variable in local/ | + | * **Microsoft Visual Studio** (8 or later) - for C++ compiling. |
- | * If you don't have a JDK, please run get-selfcontained-jdk.bat in the ext-cli folder - this will download a JDK 11. | + | (TODO - test whether buildtools is enough) |
- | * **Microsoft Visual Studio** (8 or later) - for C++ compiling. | + | |
- | | + | |
* **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 | ||
- | * PERL: if you're using GS3.07 or earlier, get ActivePerl for Windows. | + | * **Perl:** From 3.12 you need to use a Greenstone provided Perl which comes with all the necessary cpan libraries installed. This is supplied in a binary |
+ | * Please run get-selfcontained-perl-with-cpan.bat in the ext-cli | ||
+ | * (Alternatively you can download the perl tarball...) | ||
+ | * | ||
* (If you want to compile GS3 with debugging on, you will need Microsoft SDK) | * (If you want to compile GS3 with debugging on, you will need Microsoft SDK) | ||
* ?? 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. | ||
+ | * If you have a JDK already installed, please set the JAVA_HOME variable in 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. | ||
==== Source Component ==== | ==== Source Component ==== | ||
- | |||
- | **Note:** Greenstone 3 does not at present compile successfully if it was installed in a place containing spaces. The solution is to move the installed GS3 folder out into a different location, one without spaces in the filepath, //before// compiling. Once compiling is done, you can move your installed GS3 folder back to its original location. | ||
- 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, '' |
- | | + | - ** Visual Studio** |
- | - 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 \\ | + | - ** 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 75: | 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:// | ||
**To run GS3 after re-compiling: | **To run GS3 after re-compiling: | ||
Line 143: | Line 158: | ||
* [[en: | * [[en: | ||
* ANT | * ANT | ||
- | * Java JDK. JDK 7 for Greenstone 3.06 and onwards. \\ **WARNING: | + | * Java JDK. JDK 8 is the minimum version required. \\ **WARNING: |
* C/C++ compiler: XCode on Mac, gcc/g++ on Linux | * C/C++ compiler: XCode on Mac, gcc/g++ on Linux | ||
en/user_advanced/installation_312.1752540480.txt.gz · Last modified: 2025/07/15 00:48 by kjdon