User Tools

Site Tools


en:user_advanced:installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:user_advanced:installation [2018/03/27 04:06] – [Uptodate source code from SVN] anupamaen:user_advanced:installation [2018/03/27 05:25] – [Uptodate source code from SVN] anupama
Line 1: Line 1:
-This page is up to date for 3.06 (5 Nove 2014)+This page is up to date for 3.06 (5 November 2014). Much of it was checked again to be up to date after 3.08.
  
 ====== Advanced Installation ====== ====== Advanced Installation ======
Line 444: Line 444:
 <TAB> <TAB>
  
-Make sure you have SVN installed and have set up Ant and Java in the environment too: set JAVA_HOME (to JDK 7+) and add its ''bin'' folder to the PATH. If you're on a 64 bit machine, you'll need a JDK for 64 bit machines, if you're on a 32 bit machine, you will need a JDK for 32 bit machines. Set ANT_HOME and add its ''bin'' folder to the PATH.\\ <code>+  - Make sure you have SVN installed and on your Path 
 +  - Make sure you have set up Ant and Java in the environment too: set JAVA_HOME (to JDK 7+) and add its ''bin'' folder to the PATH. If you're on a 64 bit machine, you'll need a JDK for 64 bit machines, if you're on a 32 bit machine, you will need a JDK for 32 bit machines. Set ANT_HOME and add its ''bin'' folder to the PATH.\\ <code>
 export JAVA_HOME=/path/to/your/jdk7 export JAVA_HOME=/path/to/your/jdk7
 export ANT_HOME=/path/to/your/ant export ANT_HOME=/path/to/your/ant
 export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH
 </code> </code>
- +  - Checkout the code: <code>
-<code>+
 svn co http://svn.greenstone.org/main/trunk/greenstone3 svn co http://svn.greenstone.org/main/trunk/greenstone3
 </code> </code>
- +  - Generate the file ''build.properties'' with: <code>
-<code>+
 ant  ant 
-</code> +</code>\\ Now, if necessary, you can customise the port/hostname fields in the newly generated toplevel file ''build.properties''
-to generate the file ''build.properties''then if necessary, update port/hostname in the newly generated toplevel file ''build.properties''.  +  Most Linux systems and probably all the newer Mac systems require //gnome-lib// for successful compilation. Uncomment the following to activate it <code>
- +
-Most Linux systems and probably all the newer Mac systems require gnome-lib. Uncomment the following to activate it +
-<code>+
 checkout.gnomelib.ext=true checkout.gnomelib.ext=true
 </code> </code>
- +  - If you want to compile imagemagick from source on Unix systems (though for Mac you can also use the precompiled imagemagick binary*), <code>
-If you want to compile imagemagick from source on Unix systems (though for Mac you can also use the precompiled imagemagick binary*),  +
-<code>+
 checkout.imagemagick.ext=true checkout.imagemagick.ext=true
 </code> </code>
- +  - If you're on Mac OS version 10.11/El Capitan, set CFLAGS, CXXFLAGS and JNIFLAGS as follows: \\ <code>export CFLAGS="$CFLAGS -I$JAVA_HOME/include -I$JAVA_HOME/include/darwin"
-If you're on Mac OS version 10.11/El Capitan, set CFLAGS, CXXFLAGS and JNIFLAGS as follows: \\ <code>export CFLAGS="$CFLAGS -I$JAVA_HOME/include -I$JAVA_HOME/include/darwin"+
 export CXXFLAGS="$CXXFLAGS $CFLAGS" export CXXFLAGS="$CXXFLAGS $CFLAGS"
 export JNICFLAGS="$JNICFLAGS $CFLAGS"</code> Since GS3.08, if you're on 64 bit linux, you will also need to add -fPIC to the CFLAGS environment variable: \\ <code>export CFLAGS="-fPIC $CFLAGS"</code> export JNICFLAGS="$JNICFLAGS $CFLAGS"</code> Since GS3.08, if you're on 64 bit linux, you will also need to add -fPIC to the CFLAGS environment variable: \\ <code>export CFLAGS="-fPIC $CFLAGS"</code>
- +  - Finally, you can start the steps for compiling: <code>
- +
-Finally, you can start the steps for compiling: +
-<code>+
 ant prepare ant prepare
-</code> +</code><!--<code>
- +
-<!--<code>+
 cd ext  cd ext 
 source devel.bash source devel.bash
 cd /back/to/greenstone3-home cd /back/to/greenstone3-home
 </code> </code>
---> +--> <code>
-<code>+
 ant install ant install
 </code> </code>
en/user_advanced/installation.txt · Last modified: 2023/08/03 03:07 by anupama