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/18 05:00] – anupama | en:user_advanced:installation_312 [2025/07/18 05:36] (current) – anupama | ||
---|---|---|---|
Line 63: | Line 63: | ||
- ** Ant ** - Ant is bundled in the binary release | - ** Ant ** - Ant is bundled in the binary release | ||
- ** Perl ** - Perl is also bundled in the binary release. | - ** Perl ** - Perl is also bundled in the binary release. | ||
- | - In the greenstone3 folder, run '' | + | - 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 \\ | - 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 '' | + | * < |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | 4\nmake.exe" | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | >>>> | + | |
- | | + | |
- | | + | |
- | + | ||
- | BUILD FAILED | + | |
- | GS3\build.xml: | + | |
- | | + | |
- 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:// | ||
Line 111: | Line 86: | ||
- Set up the environment for compiling Greenstone by running the setupenv.bat script described above: '' | - Set up the environment for compiling Greenstone by running the setupenv.bat script described above: '' | ||
- Go into your Greenstone 3 installation folder, '' | - Go into your Greenstone 3 installation folder, '' | ||
- | - Edit your '' | ||
- 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. | ||
Line 156: | Line 130: | ||
===== Linux/Mac ===== | ===== Linux/Mac ===== | ||
In order to install Greenstone from source on Linux, you need to have the following installed: | In order to install Greenstone from source on Linux, you need to have the following installed: | ||
- | * [[en: | + | * [[en: |
* ANT | * ANT | ||
- | * Java JDK. JDK 8 is the minimum version required. | + | * Java JDK. JDK 8 is the minimum version required. |
* C/C++ compiler: XCode on Mac, gcc/g++ on Linux | * C/C++ compiler: XCode on Mac, gcc/g++ on Linux | ||
Line 170: | Line 144: | ||
</ | </ | ||
- The Java Runtime (JRE) included in binaries from Greenstone 3.07 onward is version 7 and version 8 for Greenstone 3.11 onward. For 32 bit linux binaries, the included JRE is 32 bit and for 64 bit linux binaries the JRE is 64 bit. //If you have set up a system Java of a version different from the JRE included//, then \\ | - The Java Runtime (JRE) included in binaries from Greenstone 3.07 onward is version 7 and version 8 for Greenstone 3.11 onward. For 32 bit linux binaries, the included JRE is 32 bit and for 64 bit linux binaries the JRE is 64 bit. //If you have set up a system Java of a version different from the JRE included//, then \\ | ||
- | < | + | * <!--* rename the '' |
- | | + | |
- | <!--* you may also want to want to delete '' | + | |
- Most of the linux and mac machines we tested require the gnome-lib extension. Without it, if compilation fails with an error message about '' | - Most of the linux and mac machines we tested require the gnome-lib extension. Without it, if compilation fails with an error message about '' | ||
- Use the terminal to extract the downloaded gnome-lib-minimal extension and set up the gnome-lib environment for compiling as follows:\\ < | - Use the terminal to extract the downloaded gnome-lib-minimal extension and set up the gnome-lib environment for compiling as follows:\\ < | ||
Line 196: | Line 168: | ||
==== Source Distribution ==== | ==== Source Distribution ==== | ||
+ | You need a JDK8. We recommend Oracle' | ||
+ | * Furthermore, | ||
In the terminal: | In the terminal: | ||
- | * Make sure JAVA_HOME is set (to JDK 7 for Greenstone 3.06, JDK 8 from Greenstone 3.11 onwards) and that its '' | + | * You can find out where java is installed on your Unix system by first running '' |
* Add svn/bin to PATH | * Add svn/bin to PATH | ||
* Add JAVA_HOME/ | * Add JAVA_HOME/ | ||
Line 223: | Line 196: | ||
cd ../../.. | cd ../../.. | ||
</ | </ | ||
- | | + | - In the same terminal, you can now finally run '' |
- | export CXXFLAGS=" | + | |
- | export JNICFLAGS=" | + | |
- | export CXXFLAGS=" | + | |
- | | + | |
> env | grep INSTALL | > env | grep INSTALL | ||
PERL_MM_OPT=INSTALL_BASE=/ | PERL_MM_OPT=INSTALL_BASE=/ | ||
> export INSTALL_BASE= | > export INSTALL_BASE= | ||
> export PERL_MM_OPT= | > export PERL_MM_OPT= | ||
- | > ant install</ | + | > ant install</ |
- **For Mac OS, from El Capitan onwards:** If you don't already have an imagemagick installed on your system and want to have // | - **For Mac OS, from El Capitan onwards:** If you don't already have an imagemagick installed on your system and want to have // | ||
en/user_advanced/installation_312.1752814845.txt.gz · Last modified: 2025/07/18 05:00 by anupama