http://bugs.openzim.org/show_bug.cgi?id=36
Summary: Simplify installation of zimlib/zimwriter Product: openZIM Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: zimlib AssignedTo: tommi@tntnet.org ReportedBy: volker.haas@pediapress.com CC: dev-l@openzim.org Estimated Hours: 0.0
The process of installing zimlib/zimwriter is a little lengthy and requires to much thinking and is therefore tedious. Furthermore I couldn't compile the latest svn version and had to manually alter installation files.
Below follows a log of the installation process and the problems:
0) I used this info for installation: http://www.openzim.org/Releases
1) Install "external" dependencies: This is basically straight forward, but it would be nice if the package name for "libxz-dev" would be mentioned in the install help for some main distros (ubuntu: liblzma-dev, arch: xz-utils).
2) cxxtools Installation of that was straight forward and went just as expected. But compilation took a long time - but there is probably not too much that can be done about that. dl source, configure, make, make install
3) tntdb This is where the "trouble" started. For a bare installation needed for zimlib the configure scripts requires a ton of non-standard options:
./configure --without-postgresql --without-mysql --without-sqlite --without-doxygen
I suggest that the configure script is changed: the standard (no options) behaviour would be the bare version (like above). If db support is required options like "--with-postgresql" need to be used.
4) zimlib no problems here
5) zimwriter After running autogen.sh and configure "make" fails for me [1] I resolved the problem by skipping wikizim [2]
----
Installation would be simplified if less dependencies were required obviously - but I guess this isn't exactly easy to achieve...
Alternatively I would have used binaries if available.
================
[1] /bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -o zimcreatorsearch zimcreatorsearch.o search.o ../src/libzimwriter.la libtool: link: g++ -g -O2 -o .libs/zimcreatorsearch zimcreatorsearch.o search.o ../src/.libs/libzimwriter.so /usr/local/lib/libzim.so -llzma /usr/local/lib/libcxxtools.so -lpthread -ldl -lrt -lnsl -Wl,-rpath -Wl,/usr/local/lib depbase=`echo wikizim.o | sed 's|[^/]*$|.deps/&|;s|.o$||'`;\ g++ -DHAVE_CONFIG_H -I. -I../include -g -O2 -MT wikizim.o -MD -MP -MF $depbase.Tpo -c -o wikizim.o wikizim.cpp &&\ mv -f $depbase.Tpo $depbase.Po wikizim.cpp:23:30: fatal error: cxxtools/net/uri.h: No such file or directory compilation terminated. make[2]: *** [wikizim.o] Error 1 make[2]: Leaving directory `/home/tools/zim/zimlib/zimwriter/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/tools/zim/zimlib/zimwriter/src' make: *** [all-recursive] Error 1
[2] [local] ~/zim/zimlib/zimwriter/ % svn diff Index: src/Makefile.am =================================================================== --- src/Makefile.am (revision 362) +++ src/Makefile.am (working copy) @@ -1,5 +1,5 @@ lib_LTLIBRARIES = libzimwriter.la -bin_PROGRAMS = zimwriterdb zimindexer zimcreatorsearch wikizim +bin_PROGRAMS = zimwriterdb zimindexer zimcreatorsearch #wikizim
AM_CPPFLAGS=-I$(top_builddir)/include
http://bugs.openzim.org/show_bug.cgi?id=36
Emmanuel Engelhart emmanuel@engelhart.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |emmanuel@engelhart.org
--- Comment #1 from Emmanuel Engelhart emmanuel@engelhart.org 2011-08-12 14:29:48 CET --- Few remarks: 1- Distro. dependent... (but could maybe be possible as comment in configure). 2- Lots of templates I think... takes time. 3- If you want only the zimlib, cxxtools and tntdb should not be mandatory (I use it without in kiwix). 4- yes 5- needs to be fixed.