User Tools

Site Tools


en:developer:compiling_greenstone

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
en:developer:compiling_greenstone [2015/08/25 01:51] – external edit 127.0.0.1en:developer:compiling_greenstone [2023/03/13 01:46] – external edit 127.0.0.1
Line 1: Line 1:
 +
 +
 +
 ====== Compiling Greenstone ====== ====== Compiling Greenstone ======
  
  
-<TABAREA tabs="Greenstone3,Greenstone2"> +<tabbox Greenstone3>=====Unix=====
-<TAB>=====Unix=====+
 ==== Ubuntu ==== ==== Ubuntu ====
-<!-- mv:3 -->+
 Note: You need java from the [[http://java.sun.com/javase/downloads/index.jsp|sun website]], **not** from the <tt>sun-java6-jdk</tt> package. Note: You need java from the [[http://java.sun.com/javase/downloads/index.jsp|sun website]], **not** from the <tt>sun-java6-jdk</tt> package.
  
Line 33: Line 35:
 ant prepare install ant prepare install
 </code> </code>
-<!-- /mv:3 --> + 
-</TAB> +<tabbox Greenstone2>=====Unix=====
-<TAB>=====Unix=====+
  
 The "standard" commands of The "standard" commands of
Line 47: Line 48:
  
 You will probably need to use GNU make. You will probably need to use GNU make.
 +
 +If you get an error about CPPFunction not declared in client.c, edit runtime-src/packages/yaz/yaz-2.1.4/client/client.c, and change
 +<code>rl_attempted_completion_function = (CPPFunction*)readline_completer;</code>
 +to 
 +<code>rl_attempted_completion_function = (rl_completion_func_t*)readline_completer;</code>
  
 The Greenstone Librarian Interface (GLI) code is written in Java, and compiling it requires a suitable version of the Java Software Development Kit (version 1.4.0 or newer). To compile this source code, run makegli.sh from the gsdl/gli directory. The Greenstone Librarian Interface (GLI) code is written in Java, and compiling it requires a suitable version of the Java Software Development Kit (version 1.4.0 or newer). To compile this source code, run makegli.sh from the gsdl/gli directory.
Line 53: Line 59:
  
 ==== Ubuntu ==== ==== Ubuntu ====
-<!-- mv:2 --> + 
 You need to set JAVA_HOME to the actual root of the jdk, eg "/usr/lib/jvm/java-6-sun". JAVA_HOME cannot be left empty or be set to /usr. You need to set JAVA_HOME to the actual root of the jdk, eg "/usr/lib/jvm/java-6-sun". JAVA_HOME cannot be left empty or be set to /usr.
  
Line 74: Line 80:
 make install make install
 </code> </code>
-<!-- /mv:2 -->+
  
  
Line 238: Line 244:
 # when you configure Greenstone you should add //--with-gdbm=/Users/<username>/gdbm-1.8.3//(or wherever you installed it to) to the command. Note that this means that the compile option in the CD-ROM distribution Install script will fail, since it will only look in the default locations (/lib, /usr/lib/ and /usr/local/lib) # when you configure Greenstone you should add //--with-gdbm=/Users/<username>/gdbm-1.8.3//(or wherever you installed it to) to the command. Note that this means that the compile option in the CD-ROM distribution Install script will fail, since it will only look in the default locations (/lib, /usr/lib/ and /usr/local/lib)
  
-Also see the [[http://www.greenstone.org/docs/Install-Notes-osx.html|OSX Install Notes]] page.+Also see the [[http://files.greenstone.org/technical/Install-Notes-osx.html|OSX Install Notes]] page.
  
 ===Issues=== ===Issues===
Line 287: Line 293:
 ====Windows (Visual C++)====  ====Windows (Visual C++)==== 
  
-The third-party packages (pdftohtml, wvWare, rtftohtml, xlhtml, etc) were compiled using cygwin.</TAB></TABAREA> +The third-party packages (pdftohtml, wvWare, rtftohtml, xlhtml, etc) were compiled using cygwin.</tabbox>