TexLive 2012 issues
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 570 from 2007/7/29
    As it has nothing to do with the download itself, I open a new thread for some issues that I have with this version in the hope that someone can help me.


    1)
    So I downloaded TexLive 2012 and it took hours to unpack. Then I ran "Startup TeX" to install all assings. I hoped to find the commands latex or pdflatex in the package. Both are not in there. So I ran the tex command but it says:
    fmtutil: /tex/texmf-var/web2c/tex/tex.fmt installed.
    /tex/texmf-var/web2c/tex/tex.fmt
    rm: cannot remove '/tmp/fmtutil.1055437728': File exists
    I can't find the format file `tex.fmt'!

    But this file is present in two places:
    TeXLive/texmf/web2c/tex/
    TeXLive/texmf-var/web2c/tex/

    What is needed to let it find these files? And why are latex and pdflatex missing? Could you add them, please?


    2)
    Then I run 'texconfig'. It needs about one minute (!) to start (Mac mini), then it gives a message that you can set some settings here and then asks for pressing return to continue, same as on Linux, and when I do hit return it then it immediately quits. So it has a bug and I cannot change any settings. What is wrong here? On Linux I get a simple text menu in colours to set the configuration.


    3)
    I cannot compile a tex file with 'tex' command:

    Ram Disk:> tex sheet01.tex
    This is TeX, Version 3.1415926 (TeX Live 2012)
    (./sheet01.tex
    ! Undefined control sequence.
    l.4 \documentclass
    [12pt,a4paper]{letter}
    ?

    Because commands 'latex' and 'pdflatex' are not in the package I ran 'tex'
    command. This gives the above output. The log file gets created but stays
    empty. With the 'latex' command on a Linux my document compiles. Are there
    classes missing in our TeX Live?

    Here is my tex file:

    % sheet01.tex
    %
    \documentclass[12pt,a4paper]{letter}
    \usepackage[T1]{fontenc}
    \usepackage[utf8]{inputenc}
    \usepackage[ngerman]{babel}
    \begin{document}
    \address{It is me \\ 12345 New Road}
    \signature{It is me \\ pidgin@localhost \\ 12345 New Road}
    \date{October, 28nd}
    \begin{letter}{Mr. Bernie Carlsson \\
    Big Apple Street 17 \\
    98765 Brighton}

    \opening{Dear Bernie,}

    how are you?

    \closing{Best wishes,}
    \cc{John \\ Newton}
    \end{letter}
    \end{document}
    %
    % end sheet01.tex
  • »30.10.14 - 19:56
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    polluks
    Posts: 803 from 2007/10/23
    From: Gelsenkirchen,...
    Of course you should rather try
    Code:
    tex -fmt latex sheet01.tex

    Well, this is not smart
    Code:
    >type latex2man
    /DH0/TeXLive/bin/../texmf-dist/scripts/latex2man/latex2man

    How about using an assign?
    Code:
    /TeX/bin/../texmf-dist/scripts/latex2man/latex2man
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1 17", MorphOS 3.18
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.18
  • »31.10.14 - 08:53
    Profile
  • Just looking around
    Posts: 19 from 2013/6/15
    You don't need to run texconfig, at least I've never used it. The "Startup TeX" script is all you need. However, note that it's contents has been updated so you need to replace the one from the original archive. The updated version has been provided on the forum, in the original thread (post number 19).
    When all assigns are correct, you just type

    Code:
    pdftex --progname=pdflatex sheet01.tex


    See the screenshots:
    a758ab361294958
    and
    1670de361294961
  • »31.10.14 - 11:06
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    polluks
    Posts: 803 from 2007/10/23
    From: Gelsenkirchen,...
    You may use this:

    echo "Assigning TeX:"
    assign TeX: ""
    echo "Assigning texmf:"
    assign texmf: TeX:texmf
    echo "Adding tex:bin to c: assignment"
    assign c: tex:bin/ add
    echo "Adding '/c:.' to search path"
    setenv PATH $PATH:/c:.
    echo "Done"
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1 17", MorphOS 3.18
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.18
  • »02.11.14 - 22:14
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 570 from 2007/7/29
    Thank you guys for your repsonses.

    "Of course you should rather try
    Code:
    tex -fmt latex sheet01.tex"

    Why "of course"? Is it written somewhere? I have not found it so far.

    So I do it:
    Code:

    Ram Disk:> tex -fmt latex sheet01.tex
    This is TeXk, Version 3.1415926 (TeX Live 2012)
    restricted write18 enabled.

    kpathsea: Running mktexfmt latex.fmt
    Executing: mktexfmt latex.fmt
    fmtutil: running `pdftex -ini -jobname=latex -progname=latex
    -translate-file=cp227.tcx *latex.ini' ...
    fatal: memory exhausted (xmalloc of 24000008 bytes).
    fatal: memory exhausted (xmalloc of 24000008 bytes).
    Error: `pdftex -ini -jobname=latex -progname=latex
    -translate-file=cp227.tcx *latex.ini' failed

    ###############################################################################
    fmtutil: Error! Not all formats have been built successfully.
    Visit the log files in directory
    /tex/texmf-var/web2c
    for details.
    ###############################################################################

    This is a summary of all `failed' messages:
    `pdftex -ini -jobname=latex -progname=latex -translate-file=cp227.tcx
    *latex.ini' failed
    rm: cannot remove '/tmp/fmtutil.802861104': File exists
    I can't find the format file `latex.fmt'!
    Ram Disk:>


    I do not know why these fatal: memory exhausted messages come. There are more than 200MB (two hundred) free and he just asks for 20MB (twenty).

    "Visit the log files in directory
    /tex/texmf-var/web2c
    for details."

    there are two directories. only in "tex" directory there is a file "tex.log". It looks like this:

    Code:

    This is TeX, Version 3.1415926 (TeX Live 2012) (INITEX) 27 OCT 2014 09:09
    **tex.ini
    (/tex/texmf-dist/tex/plain/config/tex.ini
    (/tex/texmf-dist/tex/plain/base/plain.tex Preloading the plain format:
    codes,
    registers,
    maxdimen=dimen10
    hideskip=skip10
    centering=skip11
    p@=dimen11
    z@=dimen12
    z@skip=skip12
    voidb@x=box10
    parameters,
    smallskipamount=skip13
    medskipamount=skip14
    bigskipamount=skip15
    normalbaselineskip=skip16
    normallineskip=skip17
    normallineskiplimit=dimen13
    jot=dimen14
    interdisplaylinepenalty=count23
    interfootnotelinepenalty=count24
    fonts, more fonts,
    itfam=fam4
    slfam=fam5
    bffam=fam6
    ttfam=fam7
    macros,
    strutbox=box11
    mscount=count25
    tabs=box12
    tabsyet=box13
    tabsdone=box14
    math definitions,
    rootbox=box15
    p@renwd=dimen15

    output routines,
    headline=toks10
    footline=toks11
    footins=insert254
    topins=insert253
    hyphenation (/tex/texmf/tex/generic/hyphen/hyphen.tex)) )
    Beginning to dump on file tex.fmt
    (format=tex 2014.10.27)
    2027 strings of total length 29136
    4990 memory locations dumped; current usage is 110&4877
    926 multiletter control sequences
    fontnullfont=nullfont
    fonttenrm=cmr10
    fontpreloaded=cmr9
    fontpreloaded=cmr8
    fontsevenrm=cmr7
    fontpreloaded=cmr6
    fontfiverm=cmr5
    fontteni=cmmi10
    fontpreloaded=cmmi9
    fontpreloaded=cmmi8
    fontseveni=cmmi7
    fontpreloaded=cmmi6
    fontfivei=cmmi5
    fonttensy=cmsy10
    fontpreloaded=cmsy9
    fontpreloaded=cmsy8
    fontsevensy=cmsy7
    fontpreloaded=cmsy6
    fontfivesy=cmsy5
    fonttenex=cmex10
    fontpreloaded=cmss10
    fontpreloaded=cmssq8
    fontpreloaded=cmssi10
    fontpreloaded=cmssqi8
    fonttenbf=cmbx10
    fontpreloaded=cmbx9
    fontpreloaded=cmbx8
    fontsevenbf=cmbx7
    fontpreloaded=cmbx6
    fontfivebf=cmbx5
    fonttentt=cmtt10
    fontpreloaded=cmtt9
    fontpreloaded=cmtt8
    fontpreloaded=cmsltt10
    fonttensl=cmsl10
    fontpreloaded=cmsl9
    fontpreloaded=cmsl8
    fonttenit=cmti10
    fontpreloaded=cmti9
    fontpreloaded=cmti8
    fontpreloaded=cmti7
    fontpreloaded=cmu10
    fontpreloaded=cmmib10
    fontpreloaded=cmbsy10
    fontpreloaded=cmcsc10
    fontpreloaded=cmssbx10
    fontpreloaded=cmdunh10
    fontpreloaded=cmr7 at 14.51799pt
    fontpreloaded=cmtt10 at 14.4pt
    fontpreloaded=cmssbx10 at 14.4pt
    fontpreloaded=manfnt
    14787 words of font info for 50 preloaded fonts
    14 hyphenation exceptions
    Hyphenation trie of length 6075 has 181 ops out of 35111
    181 for language 0
    No pages of output.


    Then you say:

    "Well, this is not smart
    Code:
    >type latex2man
    /DH0/TeXLive/bin/../texmf-dist/scripts/latex2man/latex2man"

    I don't understand this. Can yopu please explain what do you mean? What shall I do? If I enter "type latex2man" from Shell it is not found somewhere (of course after setting the inital assigns from the script).

    "How about using an assign?
    Code:
    /TeX/bin/../texmf-dist/scripts/latex2man/latex2man"

    An assign to this file? How do you mean it? Yes, I can show this file in an editor. It is a perl script it says. But I cannot execute it. What should I do with it?

    net_buster, you say:
    "You don't need to run texconfig, at least I've never used it. The "Startup
    TeX" script is all you need. However, note that it's contents has been
    updated so you need to replace the one from the original archive. The
    updated version has been provided on the forum, in the original thread
    (post number 19).
    When all assigns are correct, you just type

    Code:
    pdftex --progname=pdflatex sheet01.tex"

    As I can see it is _not_ all that I need because it does not run. I compared the script from post #19 with mine and it is exactly the same. I managed to download the torrent from another machine and copied the bz2 archive and unpacked it on my MOS machine. So the Startup TEX script has already been same as the one in #19. I guess it was already included in the torrent archive because the torrent was announced after post #19.


    Code:

    Ram Disk:> pdftex --progname=pdflatex sheet01.tex
    This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
    restricted write18 enabled.
    fatal: memory exhausted (xmalloc of 24000008 bytes).
    Ram Disk:>


    It fails again although there are several hundred MB of free RAM.

    BTW: which editor do you use to write tex files? Scribble says it has support for TeX but when I select it the code is no coloured.


    polluks, can you explain what the difference is in the changed TeX Startup? I only see some differences with the PATH. What does it do? The rest looks the same.
  • »04.11.14 - 16:34
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 570 from 2007/7/29
    Are there some ideas out there? Please give me some input.
  • »13.11.14 - 20:09
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 570 from 2007/7/29
    Even if I got no reply to the issues I had so far, I still hope for some answers as more problems arise.

    There are several errors in Tex Live because I get the following messages.

    1) Work:latex> tex -fmt dvips document.tex
    This is TeXk, Version 3.1415926 (TeX Live 2012)
    restricted \write18 enabled.

    kpathsea: Running mktexfmt dvips.fmt
    Executing: mktexfmt dvips.fmt
    rm: cannot remove '/tmp/fmtutil.800808952': File exists
    I can't find the format file `dvips.fmt'!


    So at first the file can be found and a second later not anymore? And what is the problem about removing the temp file?


    2) Same for latex. At first it progresses very long for about 2 minutes. Then at the end I get:

    Transcript written on latex.log.
    fmtutil: /tex/texmf-var/web2c/pdftex/latex.fmt installed.
    /tex/texmf-var/web2c/pdftex/latex.fmt
    rm: cannot remove '/tmp/fmtutil.1032248128': File exists
    I can't find the format file `latex.fmt'!

    The file "latex.fmt" is there, so first it can be found and three lines later the file is gone? No, it is still there. What is wrong here?


    3) I want to run "dvips" command directly from TeXLive/bin but it does not work either:

    Work:latex> dvips document.tex
    This is dvips(k) 5.992 Copyright 2012 Radical Eye Software
    (www.radicaleye.com)
    dvips: ! Bad DVI file: first byte not preamble


    Any ideas out there?
  • »09.12.14 - 17:53
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 570 from 2007/7/29
    I had to switch to Windows now to write my documents where it is all working.
  • »16.12.14 - 17:57
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    polluks
    Posts: 803 from 2007/10/23
    From: Gelsenkirchen,...
    Quote:

    connor schrieb:
    3) I want to run "dvips" command directly from TeXLive/bin but it does not work either:

    Work:latex> dvips document.tex
    This is dvips(k) 5.992 Copyright 2012 Radical Eye Software
    (www.radicaleye.com)
    dvips: ! Bad DVI file: first byte not preamble


    Any ideas out there?


    It's called "dvips" because it wants to read a dvi file:
    dvips document.dvi
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1 17", MorphOS 3.18
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.18
  • »18.12.14 - 00:33
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 570 from 2007/7/29
    Regarding DVIPS, yes, it was a simple reading error. with a dvi file instead it works of course.

    I am still hoping for your explanations on the other questions, though.


    And more problems arised:

    There are some some files missing or not configured or I do not know how to set them right. I want to run xetex, luatex, xelatex in TeXLive but they don't work. I started them like

    pdftex --progname=xelatex -shell-escape my.tex

    but then it says: xetex: not found

    and later:
    This is a summary of all `failed' messages:
    `xetex -ini -jobname=xelatex -progname=xelatex -etex xelatex.ini' failed
    rm: cannot remove '/tmp/fmtutil.1317524944': File exists
    I can't find the format file `xelatex.fmt'!


    I tried to create missing files but it does not work either because:

    fmtutil --missing
    =>
    xetex: not found
    luatex: not found


    How to make it work?

    Also, why is this little command so demanding? CPU goes to full load immediately (g4 1.5GHz) and stays there for minutes just for some small batch jobs.

    For installing new files I need to run mktexlsr. It finished with scanning the directory and says

    mktexlsr: Done.
    />

    but then the new files can not be found. When I compile a document it still asks me for the *.sty file:

    ! LaTeX Error: File `beamerthemeAmsterdam.sty' not found.

    Type X to quit or <RETURN> to proceed,
    or enter new name. (Default extension: sty)

    But when I enter the full path to the file then the document compiles correctly. Why can't it be found after mktexlsr?
  • »12.05.15 - 18:14
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 570 from 2007/7/29
    TeX Live 2015 was released: http://tug.org/texlive/doc/texlive-en/texlive-en.html
    I am not experienced with this but would the one who ported Tex Live 2012 like to bring us up to date?
  • »18.06.15 - 19:10
    Profile
  • Cocoon
    Cocoon
    ciVic
    Posts: 45 from 2013/6/2
    I had to remove Xetex and Lualatex as it requires UTF-8 support which was not possible. A port of 2015 would be possible but the changes are very incremental from year to year, so I think its not worth it. However, the best idea would be to create a patch from the changes for MorphOS and try to apply it to 2015.
  • »20.06.15 - 07:41
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 570 from 2007/7/29
    THanks for your info. There is UTF-8 in some MOS apps, e.g. Scribble and OWB. So it is not enough?
  • »23.06.15 - 17:38
    Profile
  • Cocoon
    Cocoon
    ciVic
    Posts: 45 from 2013/6/2
    I think it was an UTF8 library that is needed but not available on morphos, but I'm not sure till I look at the source.
  • »28.06.15 - 06:42
    Profile