Attention This is the first documentation for this installation. Some things will be optimized in next versions.
Apt-environment
epubtk:~# cat /etc/apt/sources.list # # /etc/apt/sources.list # # # lenny # deb http://ftp.us.debian.org/debian/ lenny main contrib non-free deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free # # Security updates # deb http://security.debian.org/ lenny/updates main contrib non-free deb-src http://security.debian.org/ lenny/updates main contrib non-free
Installation requirements
apt-get install build-essential python python-minimal python-wxversion python2.4-4suite-xml \
python-egenix-mxtools python-egenix-mxdatetime python-pygresql python-psycopg python-pgsql \
python-wxgtk2.6 python-setuptools pyblosxom python-sqlobject python-levenshtein libxml2 \
libxslt1.1 python-lxml tetex-bin imagemagick python-imaging tex4ht postgresql-8.3 \
postgresql-plpython-8.3 postgresql-contrib-8.3 subversion python2.5-dev zlib1g-dev
LTXML source
The source is available here: http://www.ltg.ed.ac.uk/software/ltxml
tar -xvzf ltxml-1.2.7.tar.gz cd ltxml-1.2.7
Patch for configure script In config.sub the system type is check, but 64bit systems (x86_64) are unknown. This patch is adding the needed type.
epubtk:~/epubtk_requirements/ltxml-1.2.7# diff -Naur XML/config.sub XML/config.sub.new
--- XML/config.sub 1999-11-26 14:18:22.000000000 +0000
+++ XML/config.sub.new 2009-08-18 20:41:53.000000000 +0000
@@ -177,7 +177,7 @@
| hppa-* | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \
| pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \
| pdp11-* | sh-* | powerpc-* | powerpcle-* | sparc64-* | mips64-* | mipsel-* \
- | mips64el-* | mips64orion-* | mips64orionel-* | f301-*)
+ | mips64el-* | mips64orion-* | mips64orionel-* | f301-* | x86_64-*)
;;
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
go on to configure LTXML
mkdir build cd build ../XML/configure --with-zlib=/usr --enable-multi-byte
After the configuration a compiler flag needs to be added. Change the following:
- CC=gcc + CC=gcc -fPIC
in
- Makefile.usr
- data/Makefile
- src/Makefile.sub
compile and install
make all make install make distclean
PyLTXML Now the toolkit is also available as deb.package here: PyLTXML.
tar -xvzf PyLTXML-1.3.tar.gz cd PyLTXML-1.3 python setup.py build python setup.py install
XSV
wget ftp://ftp.cogsci.ed.ac.uk/pub/XSV/XSV_3.1-1_all.deb dpkg -i XSV_3.1-1_all.deb
pyoai
wget http://www.infrae.com/download/oaipmh/2.4/pyoai-2.4.tar.gz tar -xvzf pyoai-2.4.tar.gz cd pyoai python setup.py install
ePubTk
cd /usr/lib/python2.5/site-packages/ svn co https://dev.livingreviews.org/repos/epubtk/trunk/ePubTk
latest Latex Version
wget http://mirror.ctan.org/systems/texlive/tlnet/2008/install-tl-unx.tar.gz tar -xvzf install-tl-unx.tar.gz cd install-tl ./install-tl ( Type in I and press Enter ---> 1.8GB will be loaded. )
insert the following line in /etc/profile to enable latex 2008 for all users
export PATH=/usr/local/texlive/2008/bin/x86_64-linux:$PATH
New installation based on Ubuntu Installation link UNFINISHED
ePubTk on Ubuntu 10.04 (Lucid Lynx)
Install transcript
ePubTk runs on the standard distribution, plus the following packages:
- subversion
- texlive
- tex4ht
- bibtool
- imagemagick
- postgresql-8.4
- libpq-dev
- python-dev
- python-4suite-xml
- python-egenix-mxtools
- python-egenix-mxdatetime
- python-psycopg2
- python-sqlobject
- python-wxgtk2.8
This transcript shows how to set up a fresh installation the ePubTk pubBuilder? and register? component:
> sudo su - # apt-get install subversion texlive tex4ht bibtool imagemagick postgresql-8.4 libpq-dev python-dev python-4suite-xml python-egenix-mxtools python-egenix-mxdatetime python-psycopg2 python-sqlobject python-wxgtk2.8 # cd /usr/local/lib/python2.6/dist-packages # svn checkout https://dev.livingreviews.org/repos/epubtk/trunk/ePubTk # logout > mkdir bin # if not yet existent, log out and log in again after creating ~/bin > ln -s /usr/share/tex4ht/xhlatex bin ----> better: epubtk2:/usr/local/bin# ln -s /usr/share/tex4ht/xhlatex .
To enable the RefDB? gui applications, you need to install some further packages:
> sudo su - # cd /tmp # tar xzvf /usr/local/lib/python2.6/dist-packages/ePubTk/deps/python-Levenshtein-0.10.1.tar.gz # cd python-Levenshtein-0.10.1 # python setup.py install # cd /tmp # apt-get install curl # curl -O ftp://ftp.cogsci.ed.ac.uk/pub/LTXML/ltxml-1.2.9.tar.gz # tar xzvf ltxml-1.2.9.tar.gz # cd ltxml-1.2.9/XML # ./configure --enable-multi-byte ./XML/Makefile.usr:CC=gcc -fPIC ./XML/Makefile.com:CC=gcc -fPIC ./XML/src/Makefile.sub:CC=gcc -fPIC # make install ----> apt-get install build-essential && call 'make install' two times (missing file operand) # cd /tmp # curl -O ftp://ftp.cogsci.ed.ac.uk/pub/LTXML/PyLTXML-1.3.tar.gz # tar xzvf PyLTXML-1.3.tar.gz # cd PyLTXML-1.3 # python setup.py install Now the PyLTXML-toolkit is also available as deb.package here: [https://www.inf.ed.ac.uk/research/isdd/admin/package?view=1&id=121]. # cd /tmp # tar xzvf /usr/local/lib/python2.6/dist-packages/ePubTk/deps/XSV-3.1.tar.gz # cd XSV-3.1 # python setup.py install apt-get install python-simplejson # logout
TeX4ht configuration
As we're using tex4ht from the distribution, we could try to keep all configuration local to the user. Here comes a solution for properly disabling ligatures (similar to Tex4htNoLig?) in the home directory of the current user:
> mkdir -p texmf/tex4ht/ht-fonts/nolig > cp /usr/share/texmf/tex4ht/ht-fonts/unicode/charset/unicode.4hf texmf/tex4ht/ht-fonts/nolig
add the lines as described at point 3 of Tex4htNoLig? to texmf/tex4ht/ht-fonts/nolig/unicode.4hf
> mkdir .epubtk > cp /usr/local/lib/python2.6/dist-packages/ePubTk/config/system/linux/* .epubtk
add the line "i/space/downloads/tex4ht/texmf/tex4ht/ht-fonts/nolig/!" to .epubtk/tex4ht.env immediately after the line "<default>"
Further local modifications (cf. Tex4htInstall?):
> cp /usr/share/texmf/tex/generic/tex4ht/html4.4ht ~/texmf/tex/generic/tex4ht/ > cp /usr/share/texmf/tex/generic/tex4ht/natbib.4ht ~/texmf/tex/generic/tex4ht/
modify html4.4ht and natbib.4ht as described in Tex4htInstall?
Test by running pubBuilder: (NOT DURING INSTALLATION)
(VO: I had to install Levenshtein first, because I received the error that this package is missing. Therefore I did the next step, installation for GUI, before testing. Not sure, which steps exactly are needed.. Please, change description accordingly. Also gunzip test/*.gz was not necessary.)
> cp -r /usr/local/lib/python2.6/dist-packages/ePubTk/pubBuilder/test . > gunzip test/*.gz > cd test > mkdir out > python /usr/local/lib/python2.6/dist-packages/ePubTk/pubBuilder/run.py document.tex --cfg=lrsp --out=out -> process pdfColor -> process htmlJS
apt-get install python-feedparser
