maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   TeX Live 2009 port to N900 (https://talk.maemo.org/showthread.php?t=42087)

titan 2010-01-24 22:44

TeX Live 2009 port to N900
 
Hi,
I've ported TeX Live 2009 to Maemo and uploaded it to extras-devel.
It's already optified but highly experimental. Use it at your own risk!
Feel free to share your experiences here.

It's supposed to contain the full TeX Live distribution (incl. pdflatex, xetex etc)

The download is about 24MB. It uses about 60MB flash memory (virtually nothing on root).
For the installation the extras-devel catalogue must be enabled.
Just install texlive-latex-base from the Office section.

to get rid of everything or to reset for an upgrade use
Quote:

apt-get remove --purge tex-common luatex libkpathsea5
rm -rf /opt/tex-common
as root in the Terminal

Happy TeXing

nergal 2010-01-24 22:49

Re: TeX Live 2009 port to N900
 
sounds promising :) - thanks for the effort

MPW 2010-01-24 22:54

Re: TeX Live 2009 port to N900
 
Hi titan,

thanks!

Can't find it with the program manager. Apt-cache gives me

luatex and texlive-binaries.

Is there an editor planned? Maybe a port of texmaker would be great...

Thanks for the first step porting tex to maemo!

Good night,
MPW

titan 2010-01-24 23:39

Re: TeX Live 2009 port to N900
 
Quote:

Originally Posted by MPW (Post 492623)
Can't find it with the program manager.
Is there an editor planned? Maybe a port of texmaker would be great...

there is no GUI application yet.
but once the console programs work lots of GUIs (e.g. LyX) could be ported.

filologen 2010-01-25 07:36

Re: TeX Live 2009 port to N900
 
This is truly fantastic news. I will give this a try tonight!

Have you tested xelatex? (I need xelatex's unicode (font) support for the work I'm doing).

What about the beamer class, any chance of including it you haven't already done it?

And what about tikz/pgf?

Once again, thanks for your work - it is truly appreciated!

@MPW, the imho without comparison best editors for latex are already available natively for Maemo 5 (GNU Emacs and Vim).

borghal 2010-01-25 08:31

Re: TeX Live 2009 port to N900
 
Thanks a lot titan, this sounds too good to be true!

I just tried to install according to your instructions, however I'm left with an error message and unconfigured packages:

Code:

sudo apt-get install -y texlive-latex-base
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following extra packages will be installed:
  tex-common texlive-base texlive-binaries texlive-common texlive-doc-base
Suggested packages:
  debhelper perl-tk ghostscript xpdf-reader pdf-viewer gv postscript-viewer
Recommended packages:
  lmodern texlive-latex-base-doc
The following NEW packages will be installed:
  tex-common texlive-base texlive-binaries texlive-common texlive-doc-base
  texlive-latex-base
0 upgraded, 6 newly installed, 0 to remove and 39 not upgraded.
Need to get 22,2MB of archives.
After this operation, 54,7MB of additional disk space will be used.
Get:1 http://repository.maemo.org fremantle/free tex-common 2.06maemo5 [721kB]
Get:2 http://repository.maemo.org fremantle/free texlive-common 2009-7maemo4 [99,1kB]
Get:3 http://repository.maemo.org fremantle/free texlive-doc-base 2009-2maemo3 [1345kB]
Get:4 http://repository.maemo.org fremantle/free texlive-binaries 2009-5maemo3 [4064kB]
Get:5 http://repository.maemo.org fremantle/free texlive-base 2009-7maemo4 [14,5MB]
Get:6 http://repository.maemo.org fremantle/free texlive-latex-base 2009-7maemo4 [1434kB]
Fetched 22,2MB in 30s (715kB/s)                                               
Selecting previously deselected package tex-common.
(Reading database ... 27721 files and directories currently installed.)
Unpacking tex-common (from .../tex-common_2.06maemo5_all.deb) ...
Selecting previously deselected package texlive-common.
Unpacking texlive-common (from .../texlive-common_2009-7maemo4_all.deb) ...
Selecting previously deselected package texlive-doc-base.
Unpacking texlive-doc-base (from .../texlive-doc-base_2009-2maemo3_all.deb) ...
Selecting previously deselected package texlive-binaries.
Unpacking texlive-binaries (from .../texlive-binaries_2009-5maemo3_armel.deb) ...
Selecting previously deselected package texlive-base.
Unpacking texlive-base (from .../texlive-base_2009-7maemo4_all.deb) ...
Selecting previously deselected package texlive-latex-base.
Unpacking texlive-latex-base (from .../texlive-latex-base_2009-7maemo4_all.deb) ...
Setting up tex-common (2.06maemo5) ...
dpkg: error processing tex-common (--configure):
 subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of texlive-common:
 texlive-common depends on tex-common (>= 2.0); however:
  Package tex-common is not configured yet.
dpkg: error processing texlive-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-base:
 texlive-doc-base depends on tex-common (>= 2.00); however:
  Package tex-common is not configured yet.
 texlive-doc-base depends on texlive-common (>= 2009-1); however:
  Package texlive-common is not configured yet.
dpkg: error processing texlive-doc-base (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-binaries:
 texlive-binaries depends on tex-common (>= 2.00); however:
  Package tex-common is not configured yet.
dpkg: error processing texlive-binaries (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-base:
 texlive-base depends on texlive-doc-base (>= 2009-1); however:
  Package texlive-doc-base is not configured yet.
 texlive-base depends on tex-common (>= 2.00); however:
  Package tex-common is not configured yet.
 texlive-base depends on texlive-common (>= 2009-1); however:
  Package texlive-common is not configured yet.
 texlive-base depends on texlive-binaries (>= 2009-1); however:
  Package texlive-binaries is not configured yet.
dpkg: error processing texlive-base (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-latex-base:
 texlive-latex-base depends on tex-common (>= 2.00); however:
  Package tex-common is not configured yet.
 texlive-latex-base depends on texlive-base (>= 2009-1); however:
  Package texlive-base is not configured yet.
 texlive-latex-base depends on texlive-common (>= 2009-1); however:
  Package texlive-common is not configured yet.
 texlive-latex-base depends on texlive-binaries (>= 2009-1); however:
  Package texlive-binaries is not configured yet.
dpkg: error processing texlive-latex-base (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 tex-common
 texlive-common
 texlive-doc-base
 texlive-binaries
 texlive-base
 texlive-latex-base
E: Sub-process /usr/bin/dpkg returned an error code (1)

I also commented out the luatex-lines in /etc/texmf/fmt.d/10texlive-latex-base.cnf.dpkg-new and tried
Code:

sudo dpkg --configure -a
but to no avail. What am I doing wrong?

jebba 2010-01-25 08:35

Re: TeX Live 2009 port to N900
 
This is madness. Nice. I'd like pdflatex, if it's not there already, and the memoir book class, microtyping, ledmac/ledpar, etc.... ;)

titan 2010-01-25 08:56

Re: TeX Live 2009 port to N900
 
thanks for the feedback.
it seems that configuration fails already with tex-common on your device.
I might already have hacked my device too much
so it's useful to see other people's output.

could you please set the first two lines of
/var/lib/dpkg/info/tex-common.postinst
to
Code:

#!/bin/sh -e                                                                                                                                           
set -x

and send me the output of
dpkg --configure tex-common

thanks

Quote:

Originally Posted by borghal (Post 493178)
I just tried to install according to your instructions, however I'm left with an error message and unconfigured packages:
Code:

Setting up tex-common (2.06maemo5) ...
dpkg: error processing tex-common (--configure):
 subprocess post-installation script returned error exit status 127



titan 2010-01-25 09:01

Re: TeX Live 2009 port to N900
 
Quote:

Originally Posted by jebba (Post 493179)
This is madness. Nice. I'd like pdflatex, if it's not there already, and the memoir book class, microtyping, ledmac/ledpar, etc.... ;)

yes, pdflatex is included and works.
It's the same as TexLive2009 on your desktop.

borghal 2010-01-25 09:02

Re: TeX Live 2009 port to N900
 
Hello titan, I did as you told me, (is there really suppose to be just a second line going
Code:

-e
? Looks odd. here's the output:

Code:

~ $ sudo dpkg --configure tex-common
Setting up tex-common (2.06maemo5) ...
/var/lib/dpkg/info/tex-common.postinst: line 2: -e: not found
update-texmf: Basic configuration file /etc/texmf/texmf.d/05TeXMF.cnf missing.
Exiting.
egrep: /etc/texmf/texmf.d/55Fonts.cnf: No such file or directory
Error in /etc/texmf/texmf.d/55Fonts.cnf: TEXFONTMAPS not defined.
egrep: /etc/texmf/texmf.cnf: No such file or directory
Error in /etc/texmf/texmf.cnf: TEXFONTMAPS not defined.
egrep: /etc/texmf/texmf.d/05TeXMF.cnf: No such file or directory
Error in /etc/texmf/texmf.d/05TeXMF.cnf: TEXMFMAIN not defined.
egrep: /etc/texmf/texmf.cnf: No such file or directory
Error in /etc/texmf/texmf.cnf: TEXMFMAIN not defined.
egrep: /etc/texmf/texmf.d/05TeXMF.cnf: No such file or directory
Error in /etc/texmf/texmf.d/05TeXMF.cnf: TEXMFDIST not defined.
egrep: /etc/texmf/texmf.cnf: No such file or directory
Error in /etc/texmf/texmf.cnf: TEXMFDIST not defined.
egrep: /etc/texmf/texmf.d/05TeXMF.cnf: No such file or directory
Error in /etc/texmf/texmf.d/05TeXMF.cnf: TEXMF not defined.
egrep: /etc/texmf/texmf.cnf: No such file or directory
Error in /etc/texmf/texmf.cnf: TEXMF not defined.
egrep: /etc/texmf/texmf.d/05TeXMF.cnf: No such file or directory
Error in /etc/texmf/texmf.d/05TeXMF.cnf: TEXMF not defined.
egrep: /etc/texmf/texmf.cnf: No such file or directory
Error in /etc/texmf/texmf.cnf: TEXMF not defined.
egrep: /etc/texmf/texmf.d/05TeXMF.cnf: No such file or directory
Error in /etc/texmf/texmf.d/05TeXMF.cnf: TEXMF not defined.
egrep: /etc/texmf/texmf.cnf: No such file or directory
Error in /etc/texmf/texmf.cnf: TEXMF not defined.
egrep: /etc/texmf/texmf.d/05TeXMF.cnf: No such file or directory
Error in /etc/texmf/texmf.d/05TeXMF.cnf: TEXMF not defined.
egrep: /etc/texmf/texmf.cnf: No such file or directory
Error in /etc/texmf/texmf.cnf: TEXMF not defined.
Unrecoverable errors in your configuration have been detected
in configuration files in /etc/texmf/.
If you've not seen debconf error messages,  see your mail for details
or use an interactive debconf frontend.

Exiting
dpkg: error processing tex-common (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 tex-common



All times are GMT. The time now is 16:29.

vBulletin® Version 3.8.8