10 Aug 2011 12:37
[Bug 36] New: Simplify installation of zimlib/zimwriter
2011-08-10 10:37:20 GMT
2011-08-10 10:37:20 GMT
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@... ReportedBy: volker.haas@... CC: dev-l@... 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  I resolved the problem by skipping wikizim  ---- 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. ================  /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: *** [wikizim.o] Error 1 make: Leaving directory `/home/tools/zim/zimlib/zimwriter/src' make: *** [all] Error 2 make: Leaving directory `/home/tools/zim/zimlib/zimwriter/src' make: *** [all-recursive] Error 1  [local] ~/zim/zimlib/zimwriter/ % svn diff Index: src/Makefile.am =================================================================== --- src/Makefile.am (revision 362) +++ src/Makefile.am (working copy) <at> <at> -1,5 +1,5 <at> <at> lib_LTLIBRARIES = libzimwriter.la -bin_PROGRAMS = zimwriterdb zimindexer zimcreatorsearch wikizim +bin_PROGRAMS = zimwriterdb zimindexer zimcreatorsearch #wikizim AM_CPPFLAGS=-I$(top_builddir)/include -- -- Configure bugmail: http://bugs.openzim.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.