Groff incorrectly installed in SuSE Linux 7.3 ?
![](https://seccdn.libravatar.org/avatar/90f31838a9b64b2149cd72803e07aca4.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Everyone and their mother probably knows that you view man files with: nroff -man file.n But groff creates postscript files good for printing. When using: groff -man file.n groff complains about not finding /etc/papersize * * tosi@gandalf:~/verkefni.Forritun/ftrans/ftrans> groff -man ftrans.1 >ftrans.1.ps * grops:<standard input>:1: can't open `/etc/papersize' * locate does not find papersize. - -- This mail is sent using KMail and Linux. Thus it is 100% guaranteed virus free. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8wHCZ6mRH+PEpr2YRAp1+AJwPuAg3oJ9hxvghwkRooVLCoK4mkQCdFNFW O2JwFf4Rj3QTPOP3HzSTyc4= =U/h1 -----END PGP SIGNATURE-----
![](https://seccdn.libravatar.org/avatar/d70f8a8240c69007852b9d1bf27e170b.jpg?s=120&d=mm&r=g)
* Tor Sigurdsson (tosi@orku.net) [020419 12:30]:
But groff creates postscript files good for printing. When using:
groff -man file.n
groff complains about not finding /etc/papersize
You need to set GROFF_PAGESIZE=a4 (or whatever) in /etc/rc.config and then run '/sbin/SuSEconfig --quick' -- -ckm
![](https://seccdn.libravatar.org/avatar/c70ed1ea051c2bf21a8085c2f54dd441.jpg?s=120&d=mm&r=g)
"CM" == Christopher Mahmood
writes:
CM> You need to set GROFF_PAGESIZE=a4 (or whatever) in /etc/rc.config CM> and then run '/sbin/SuSEconfig --quick' Didn't do anything for me. Looks like it only works if you have an /etc/printcap file; something that does not exist when using cups.... try: echo paperlength 720000 >/etc/papersize for letter, or perhaps 841996 for A4. -JimC
![](https://seccdn.libravatar.org/avatar/926aae47e9d1677af3799a66f39f330d.jpg?s=120&d=mm&r=g)
* Tor Sigurdsson;
-----BEGIN PGP SIGNED MESSAGE----- * tosi@gandalf:~/verkefni.Forritun/ftrans/ftrans> groff -man ftrans.1 >ftrans.1.ps * grops:<standard input>:1: can't open `/etc/papersize' *
I thought setting this paarmeter sorts it (SuSE7.X 8.0 has not arrived yet :-( # If the correct page size isn't found in your printcap # you can set GROFF_PAGESIZE to the following values # letter, legal, a4, or b5 # supported by both groff *and* ghostscript # GROFF_PAGESIZE="a4" -- Togan Muftuoglu
![](https://seccdn.libravatar.org/avatar/4157a87b172f550fa95a3c59c2651692.jpg?s=120&d=mm&r=g)
Togan Muftuoglu
* Tor Sigurdsson;
on 19 Apr, 2002 wrote: -----BEGIN PGP SIGNED MESSAGE----- * tosi@gandalf:~/verkefni.Forritun/ftrans/ftrans> groff -man ftrans.1 >ftrans.1.ps * grops:<standard input>:1: can't open `/etc/papersize' *
I thought setting this paarmeter sorts it (SuSE7.X 8.0 has not arrived yet :-(
# If the correct page size isn't found in your printcap # you can set GROFF_PAGESIZE to the following values # letter, legal, a4, or b5 # supported by both groff *and* ghostscript # GROFF_PAGESIZE="a4"
No, unfortunately it doesn't. SuSEconfig.groff is a bit broken in
SuSE Linux 7.3. It's fixed in SuSE Linux 8.0.
On SuSE Linux 7.3 just do:
echo 'a4' > /etc/papersize
Actually there is no difference whether you do that or not, it
avoids the "can't open `/etc/papersize'" message.
--
Mike Fabian
participants (5)
-
Christopher Mahmood
-
James H. Cloos Jr.
-
Mike Fabian
-
Togan Muftuoglu
-
Tor Sigurdsson