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 04:38] – 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 168: | Line 142: | ||
| export ANT_HOME=/ | export ANT_HOME=/ | ||
| export PATH=$JAVA_HOME/ | export PATH=$JAVA_HOME/ | ||
| - | </ | + | </ |
| - | export CXXFLAGS=" | + | |
| - | export JNICFLAGS=" | + | |
| - | export CXXFLAGS=" | + | |
| - 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 '' | + | * <!--* rename the '' |
| - | | + | - Most of the linux and mac machines we tested require the gnome-lib extension. Without it, if compilation fails with an error message about '' |
| - | * 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 '' | + | |
| - 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:\\ < | ||
| cd gs2build/ | cd gs2build/ | ||
| Line 184: | Line 153: | ||
| cd ../../.. | cd ../../.. | ||
| </ | </ | ||
| - | - In the same terminal, you can now finally run '' | + | - In the same terminal, you can now finally run '' |
| > env | grep INSTALL | > env | grep INSTALL | ||
| PERL_MM_OPT=INSTALL_BASE=/ | PERL_MM_OPT=INSTALL_BASE=/ | ||
| Line 190: | Line 159: | ||
| > export PERL_MM_OPT= | > export PERL_MM_OPT= | ||
| > ant install</ | > ant install</ | ||
| + | --> | ||
| **Note:** | **Note:** | ||
| Line 199: | Line 168: | ||
| ==== Source Distribution ==== | ==== Source Distribution ==== | ||
| + | You need a JDK8. We recommend Oracle' | ||
| + | * Furthermore, | ||
| In the terminal: | In the terminal: | ||
| - | * set JAVA_HOME. For GS3, also set ANT_HOME \\ To set these, you can find out where java is installed on your unix system by first running '' | + | * 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 216: | Line 186: | ||
| - Download the Source Distribution for your Operating System and extract it into the location where you want Greenstone installed. For Linux/Mac, download the tar.gz version as zip doesn' | - Download the Source Distribution for your Operating System and extract it into the location where you want Greenstone installed. For Linux/Mac, download the tar.gz version as zip doesn' | ||
| - | - Go into your extracted source distribution' | + | - Go into your extracted source distribution' |
| - | - Make sure JAVA_HOME is set (to JDK 7 for Greenstone 3.06, JDK 8 from Greenstone 3.11 onwards) and that its '' | + | - LINUX 64: '' |
| - Most of the linux and mac machines we tested require the gnome-lib extension. Without it, if compiling fails with an error message about '' | - Most of the linux and mac machines we tested require the gnome-lib extension. Without it, if compiling 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:\\ < | ||
| cd gs2build/ | cd gs2build/ | ||
| - | cd gnome-lib | + | tar -xvzf gnome-lib-minimal-< |
| - | # gnome-lib can take longer to compile. | + | cd gnome-lib-minimal |
| - | # Alternatively, | + | |
| - | # as per instructions above, then run the following commands: | + | |
| - | #mv gnome-lib gnome-lib.orig | + | |
| - | #tar -xvzf gnome-lib-minimal-< | + | |
| - | #cd gnome-lib-minimal | + | |
| source ./ | source ./ | ||
| 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.1752813536.txt.gz · Last modified: 2025/07/18 04:38 by anupama
