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/06/26 07:44] – [Uptodate source code from SVN] anupamaen:user_advanced:installation [2018/06/26 09:44] – [Uptodate source code from SVN] anupama
Line 386: Line 386:
 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>   - Checkout the code: <code>
Line 394: Line 395:
 ant  ant 
 </code>\\ Now, if necessary, you can customise the port/hostname fields in the newly generated toplevel file ''build.properties''. </code>\\ Now, if necessary, you can customise the port/hostname fields 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// for successful compilation. If you wish to //compile gnome-lib// along with GS3, uncomment the following line in ''build.properties'' to activate it <code>
 checkout.gnomelib.ext=true checkout.gnomelib.ext=true
-</code>\\ Alternatively, if you don't want to compile the gnome-lib extension along with GS3 but wish to use a precompiled ''gnome-lib'' to speed up compiling, then proceed with these instructions up to step 8's ''ant prepare''. After doing ''ant prepare'', grab the precompiled ''gnome-lib'' for your operating system by visiting http://trac.greenstone.org/browser/gs2-extensions/gnome-lib/trunk and there clicking on the link for the ''gnome-lib-**minimal**-'' the zip/tarball for your operating systemthen following the download link. Download the ''gnome-lib'' zip/tar file into your ''gs2build/ext'' folder and unzip/untar it there. Then proceed with the ''ant install'part of step 8 of these instructions.+</code>\\ Skip this step if you don't want to //compile// the gnome-lib extension when compiling GS3but prefer to use a pre-compiled ''gnome-lib'' to speed up the processin which case you'll carry out step 9 later.
   - 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
Line 403: Line 404:
 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 building GS3 from SVN: <code> 
-ant prepare +ant prepare</code> 
-</code><!--<code>+  - This step is only applicable if you had decided on using a //pre-compiled// ''gnome-lib'' in step 5. In that case, visit http://trac.greenstone.org/browser/gs2-extensions/gnome-lib/trunk and there click on the link for the ''gnome-lib-**minimal**-'' zip/tarball for your operating system. On the next page, click on the download link to download the zip/tarball file, then move this downloaded file into ''gs2build/ext''. After that, unpack and set up your gnome-lib-minimal for compiling as follows: \\ <code>cd gs2build/ext 
 +tar -xvzf gnome-lib-minimal-<your-OS-version>.tar.gz 
 +cd gnome-lib-minimal 
 +source ./devel.bash 
 +cd ../../.. 
 +</code> 
 +  - You can now run the compile step: <!--<code>
 cd ext  cd ext 
 source devel.bash source devel.bash
Line 417: Line 424:
  
 <code> <code>
 +cd gs2build
 svn co http://svn.greenstone.org/main/trunk/binaries/mac/intel/imagemagick bin/darwin/imagemagick svn co http://svn.greenstone.org/main/trunk/binaries/mac/intel/imagemagick bin/darwin/imagemagick
 svn co http://svn.greenstone.org/main/trunk/binaries/mac/intel/ghostscript bin/darwin/ghostscript svn co http://svn.greenstone.org/main/trunk/binaries/mac/intel/ghostscript bin/darwin/ghostscript
en/user_advanced/installation.txt · Last modified: 2023/08/03 03:07 by anupama