Building and installing pdftex 1.30 on teTeX 3.0
I've followed the instructions listed at http://wiki.contextgarden.net/TeTeX_3.0_installation, but it won't quite give. The problem is that I use the Gentoo installation setup as a base and have the latest ConTeXt installed in /usr/local/share. Does anyone know what options to pass to pdftex's configure-script to match the setup on a Gentoo system (where stuff is stored in /etc/texmf and /var/lib/texmf)? Thanks. nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
Nikolai Weibull wrote:
I've followed the instructions listed at http://wiki.contextgarden.net/TeTeX_3.0_installation, but it won't quite give. The problem is that I use the Gentoo installation setup as a base and have the latest ConTeXt installed in /usr/local/share. Does anyone know what options to pass to pdftex's configure-script to match the setup on a Gentoo system (where stuff is stored in /etc/texmf and /var/lib/texmf)?
It would be simplest (and definately justified) to ask this to the Gentoo maintainer, because (s)he has apparently succeeded in setting that up (Gentoo's trees seem to bear only a passing resemblance to teTeX and would be more accurately called Gentoo-TeX). My best guess: find the non-etc version of texmf.cnf (I'm fairly certain there is one), and attempt to pass the root of texmf tree that contains it as --datadir to the configure script. Good luck, Taco
Taco Hoekwater wrote:
Nikolai Weibull wrote:
I've followed the instructions listed at http://wiki.contextgarden.net/TeTeX_3.0_installation, but it won't quite give. The problem is that I use the Gentoo installation setup as a base and have the latest ConTeXt installed in /usr/local/share. Does anyone know what options to pass to pdftex's configure-script to match the setup on a Gentoo system (where stuff is stored in /etc/texmf and /var/lib/texmf)?
It would be simplest (and definately justified) to ask this to the Gentoo maintainer, because (s)he has apparently succeeded in setting that up (Gentoo's trees seem to bear only a passing resemblance to teTeX and would be more accurately called Gentoo-TeX).
Sadly, there's no separate pdfetex ebuild for Gentoo. If there was, I wouldn't have to mess with this :-).
My best guess: find the non-etc version of texmf.cnf (I'm fairly certain there is one), and attempt to pass the root of texmf tree that contains it as --datadir to the configure script.
Yes, there's one in /var/lib/texmf/web2c. The reason for this layout is to separate architecture-dependent files and non-architecture-dependent files. I can't say that the added complexity justify this separation. nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
I have once tried to set up TeX on gentoo, and found this to be the most complicated and least user-friendly distribution I have ever seen. There's a bunch of texmf-trees in all kinds of bizarre locations, and a symlink farm in /etc like you wouldn't believe, and there's not a shred of documentation to be seen anywhere. So they make everything as complex as possible, but the TeX binaries are simply dumped into /usr/bin, so the only way to update is via the emerge system. But enough of this rant: be careful to figure out what cnf file is a symlink and which one is "real." They have an entire web2c tree in /etc/conf.d/texmf, if memory serves right, and the cnf files are regenerated from texmf.d/00texmf.cnf or somesuch, so this is the file you need to modify. But in the end, you may find it's not worth the trouble: just unmerge tetex and install a vanilla teTeX system. Best Thomas On Nov 28, 2005, at 9:05 PM, Nikolai Weibull wrote:
Taco Hoekwater wrote:
Nikolai Weibull wrote:
I've followed the instructions listed at http://wiki.contextgarden.net/TeTeX_3.0_installation, but it won't quite give. The problem is that I use the Gentoo installation setup as a base and have the latest ConTeXt installed in /usr/local/share. Does anyone know what options to pass to pdftex's configure-script to match the setup on a Gentoo system (where stuff is stored in /etc/texmf and /var/lib/texmf)?
It would be simplest (and definately justified) to ask this to the Gentoo maintainer, because (s)he has apparently succeeded in setting that up (Gentoo's trees seem to bear only a passing resemblance to teTeX and would be more accurately called Gentoo-TeX).
Sadly, there's no separate pdfetex ebuild for Gentoo. If there was, I wouldn't have to mess with this :-).
My best guess: find the non-etc version of texmf.cnf (I'm fairly certain there is one), and attempt to pass the root of texmf tree that contains it as --datadir to the configure script.
Yes, there's one in /var/lib/texmf/web2c. The reason for this layout is to separate architecture-dependent files and non-architecture- dependent files. I can't say that the added complexity justify this separation.
nikolai
-- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
I use (as root: sudo) the following shell script to install the latest pdfetex. For me it works. It might be of use to you. #!/bin/sh echo "Installing Pdftex..." umask 022 unzip pdftex-1.30.4.zip cd pdftex-1.30.4 sh ./Build cp -f build/texk/web2c/pdftex `which pdftex` cp -f build/texk/web2c/pdftex.pool `kpsewhich pdftex.pool` cp -f build/texk/web2c/pdfetex `which pdfetex` cp -f build/texk/web2c/pdfetex.pool `kpsewhich pdfetex.pool` chown -R root:wheel /usr/local/teTeX chmod -R u+w /usr/local/teTeX chmod -R a+r /usr/local/teTeX umask 027 cd .. echo "Installing Pdftex done." exit yours sincerely, dr. H. van der Meer On Nov 28, 2005, at 21:51, Thomas A. Schmitz wrote:
I have once tried to set up TeX on gentoo, and found this to be the most complicated and least user-friendly distribution I have ever seen. There's a bunch of texmf-trees in all kinds of bizarre locations, and a symlink farm in /etc like you wouldn't believe, and there's not a shred of documentation to be seen anywhere. So they make everything as complex as possible, but the TeX binaries are simply dumped into /usr/bin, so the only way to update is via the emerge system. But enough of this rant: be careful to figure out what cnf file is a symlink and which one is "real." They have an entire web2c tree in /etc/conf.d/texmf, if memory serves right, and the cnf files are regenerated from texmf.d/00texmf.cnf or somesuch, so this is the file you need to modify. But in the end, you may find it's not worth the trouble: just unmerge tetex and install a vanilla teTeX system.
Best
Thomas
On Nov 28, 2005, at 9:05 PM, Nikolai Weibull wrote:
Taco Hoekwater wrote:
Nikolai Weibull wrote:
I've followed the instructions listed at http://wiki.contextgarden.net/TeTeX_3.0_installation, but it won't quite give. The problem is that I use the Gentoo installation setup as a base and have the latest ConTeXt installed in /usr/local/ share. Does anyone know what options to pass to pdftex's configure-script to match the setup on a Gentoo system (where stuff is stored in /etc/texmf and /var/lib/texmf)?
It would be simplest (and definately justified) to ask this to the Gentoo maintainer, because (s)he has apparently succeeded in setting that up (Gentoo's trees seem to bear only a passing resemblance to teTeX and would be more accurately called Gentoo-TeX).
Sadly, there's no separate pdfetex ebuild for Gentoo. If there was, I wouldn't have to mess with this :-).
My best guess: find the non-etc version of texmf.cnf (I'm fairly certain there is one), and attempt to pass the root of texmf tree that contains it as --datadir to the configure script.
Yes, there's one in /var/lib/texmf/web2c. The reason for this layout is to separate architecture-dependent files and non-architecture- dependent files. I can't say that the added complexity justify this separation.
nikolai
-- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
On 11/29/05, Hans van der Meer
I use (as root: sudo) the following shell script to install the latest pdfetex. For me it works. It might be of use to you.
#!/bin/sh echo "Installing Pdftex..." umask 022 unzip pdftex-1.30.4.zip cd pdftex-1.30.4 sh ./Build cp -f build/texk/web2c/pdftex `which pdftex` cp -f build/texk/web2c/pdftex.pool `kpsewhich pdftex.pool` cp -f build/texk/web2c/pdfetex `which pdfetex` cp -f build/texk/web2c/pdfetex.pool `kpsewhich pdfetex.pool`
ok
chown -R root:wheel /usr/local/teTeX chmod -R u+w /usr/local/teTeX chmod -R a+r /usr/local/teTeX umask 027
I can not understand these commands. Why need that ?
cd .. echo "Installing Pdftex done." exit
Why not add command "fmtutil-sys --refresh" at end of your script ? -- http://vnoss.org Vietnamese Open Source Software Community
Hans van der Meer wrote:
I use (as root: sudo) the following shell script to install the latest pdfetex. For me it works. It might be of use to you.
#!/bin/sh echo "Installing Pdftex..." umask 022 unzip pdftex-1.30.4.zip cd pdftex-1.30.4 sh ./Build cp -f build/texk/web2c/pdftex `which pdftex` cp -f build/texk/web2c/pdftex.pool `kpsewhich pdftex.pool`
no need for pdftex, is kind of obsolete, and afaik pdfetex is always the default
cp -f build/texk/web2c/pdfetex `which pdfetex`
which -> kpsewhich
cp -f build/texk/web2c/pdfetex.pool `kpsewhich pdfetex.pool` chown -R root:wheel /usr/local/teTeX
what is this wheel thing?
chmod -R u+w /usr/local/teTeX chmod -R a+r /usr/local/teTeX
why not make that place independent as well? chmod -R u+w `which pdfetex` `which pdfetex.pool`
umask 027 cd .. echo "Installing Pdftex done." exit
wikiable Hans
Hi Hans and Hans, Hans Hagen wrote:
Hans van der Meer wrote:
I use (as root: sudo) the following shell script to install the latest pdfetex. For me it works. It might be of use to you.
#!/bin/sh echo "Installing Pdftex..." umask 022 unzip pdftex-1.30.4.zip cd pdftex-1.30.4 sh ./Build cp -f build/texk/web2c/pdftex `which pdftex` cp -f build/texk/web2c/pdftex.pool `kpsewhich pdftex.pool`
no need for pdftex, is kind of obsolete, and afaik pdfetex is always the default
Yes. I will remove these two lines from the wiki page as well.
cp -f build/texk/web2c/pdfetex `which pdfetex`
which -> kpsewhich
No, "which" is correct. You want to replace the executable pdfetex that is in the path. On all distributions (except the minimal zips), the bin tree is outside of kpsewhich scope.
cp -f build/texk/web2c/pdfetex.pool `kpsewhich pdfetex.pool` chown -R root:wheel /usr/local/teTeX
what is this wheel thing?
The "wheel" user group is a unix security measure (of sorts).
chmod -R u+w /usr/local/teTeX chmod -R a+r /usr/local/teTeX
why not make that place independent as well?
Hans is chmodding the directory, not the executable. I'm doubt these chown/chmod lines are really needed after each update of pdfetex (the will only do something the first time the script is run). It looks to me like you had a rather peculiar umask in effect when you installed teTeX 3.0. Cheers, Taco
Nikolai Weibull wrote:
I've followed the instructions listed at http://wiki.contextgarden.net/TeTeX_3.0_installation, but it won't quite give. The problem is that I use the Gentoo installation setup as a base and have the latest ConTeXt installed in /usr/local/share. Does anyone know what options to pass to pdftex's configure-script to match the setup on a Gentoo system (where stuff is stored in /etc/texmf and /var/lib/texmf)?
well, since it's the gentoo people who use a structure different from tds, it's up to them to provide support for that; btw, this var/lib/texmf path looks unfamiliar to me (i wonder what libs tex ships with/provides -) the problem is that there are so many texmf paths nowadays (not texmf-xxx under one root, but multiple texmf (main) paths in different locations that the change for clashes is pretty big) Hans
On 11/28/05, Nikolai Weibull
I've followed the instructions listed at http://wiki.contextgarden.net/TeTeX_3.0_installation, but it won't quite give. The problem is that I use the Gentoo installation setup as a base and have the latest ConTeXt installed in /usr/local/share. Does anyone know what options to pass to pdftex's configure-script to match the setup on a Gentoo system (where stuff is stored in /etc/texmf and /var/lib/texmf)?
The simple way, IMHO, is to build teTeX into /usr/local/teTeX. After finished all, you need put "/usr/local/teTeX/bin" at top of your $PATH and that should ok. PATH=/usr/local/teTeX/bin:/usr/bin:..... By this way I have always teTeX/pdfetex/ConTeXt up-to-date on my FC4 box. Cheers, -- http://vnoss.org Vietnamese Open Source Software Community
A las 19:03 del lun 28 nov, Nikolai Weibull tuvo a bien escribir:
I've followed the instructions listed at http://wiki.contextgarden.net/TeTeX_3.0_installation, but it won't quite give. The problem is that I use the Gentoo installation setup as a base and have the latest ConTeXt installed in /usr/local/share. Does anyone know what options to pass to pdftex's configure-script to match the setup on a Gentoo system (where stuff is stored in /etc/texmf and /var/lib/texmf)?
Thanks.
nikolai
I have built pdftex-1.30.3 following the wiki on a Gentoo box - which is what I use. After some try and swear, changing this line in the Build script of the pdftex dist, made it work: $ diff Build Build~ 69c69 < (cd texk/web2c; $MAKE texmf=${TEXMF_PATH:-/usr/share/texmf} pdftex pdfetex) || exit 1 ---
(cd texk/web2c; $MAKE pdftex pdfetex || exit 1) || exit 1
When it compiles, just copy pdfetex to /usr/bin, and the *.fmt and *.pool to /var/lib/texmf/web2c - this is where formats live. The only texmf.cnf lives in /etc/texmf.cnf; other are symlinks to it. -- José Antonio Rodríguez jar@eideia.net ------------------------ 'El Fuego vive en los corazones de quienes aman el futuro' (Agni Yoga)
Jose Antonio Rodriguez wrote:
After some try and swear...
I know how that goes :-(
$ diff Build Build~ 69c69 < (cd texk/web2c; $MAKE texmf=${TEXMF_PATH:-/usr/share/texmf} pdftex pdfetex) || exit 1 ---
(cd texk/web2c; $MAKE pdftex pdfetex || exit 1) || exit 1
When it compiles, just copy pdfetex to /usr/bin, and the *.fmt and *.pool to /var/lib/texmf/web2c - this is where formats live.
OK, thanks, I'll try that.
The only texmf.cnf lives in /etc/texmf.cnf; other are symlinks to it.
Do you have a symlink in /etc/share/texmf/web2c as well? nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
A las 19:43 del mar 29 nov, Nikolai Weibull tuvo a bien escribir:
Jose Antonio Rodriguez wrote:
After some try and swear...
I know how that goes :-(
$ diff Build Build~ 69c69 < (cd texk/web2c; $MAKE texmf=${TEXMF_PATH:-/usr/share/texmf} pdftex pdfetex) || exit 1 ---
(cd texk/web2c; $MAKE pdftex pdfetex || exit 1) || exit 1
When it compiles, just copy pdfetex to /usr/bin, and the *.fmt and *.pool to /var/lib/texmf/web2c - this is where formats live.
OK, thanks, I'll try that.
The only texmf.cnf lives in /etc/texmf.cnf; other are symlinks to it.
Do you have a symlink in /etc/share/texmf/web2c as well?
nikolai
Sorry, I made a typo: $ locate texmf.cnf /etc/texmf/web2c/texmf.cnf # real; make a backup! /etc/texmf/texmf.d/00texmf.cnf -- forget it - just a template, it'll overwrite your when updating /usr/share/texmf/web2c/texmf.cnf -- link /var/lib/texmf/web2c/texmf.cnf -- link I just compiled and installed pdftex 1.30.4 without problems. But to be safe, in the Build script include "--prefix=/usr" in the config options if you have the main tree in /usr/share/texmf. You'll also have a ~/.texmf-var - this is where I put the ConTeXt files. As in the wiki, you have to run fmtutil-sys --refresh afterwards Luck -- José Antonio Rodríguez jar@eideia.net ------------------------ 'El Fuego vive en los corazones de quienes aman el futuro' (Agni Yoga)
Hi, Nikolai Weibull wrote:
The only texmf.cnf lives in /etc/texmf.cnf; other are symlinks to it.
Do you have a symlink in /etc/share/texmf/web2c as well?
Well, I have with a standard-SUSE-10.0 teTeX only /etc/texmf/web2c/texmf.cnf and neither of those others. To find the texmf.cnf, which TeX uses, enter: kpsewhich texmf.cnf (gives here: /usr/share/texmf/web2c/texmf.cnf) to find the real file (you can also edit the symlink, actually), use readlink: readlink -f `kpsewhich texmf.cnf` (gives here: "/etc/texmf/web2c/texmf.cnf", the symlink above is actually "../../../../etc/texmf/web2c/texmf.cnf") Tobias
participants (8)
-
Hans Hagen
-
Hans van der Meer
-
Jose Antonio Rodriguez
-
Nikolai Weibull
-
Taco Hoekwater
-
Thomas A. Schmitz
-
Tobias Burnus
-
VnPenguin