man a man page file at unspecified directory

man a man page file at unspecified directory

Post by Sean » Wed, 29 Mar 2006 11:42:06



I installed a gcc version on my Linux box, while keeping the default
gcc in /usr/bin.

Say the gcc I built is in $HOME/mygcc/bin, and the associated man page
is in $HOME/mygcc/man/man1/gcc.1, how can I read it with proper format?
less/cat/vi does not work because the special characters are not
displayed properly.

Thanks,
Sean

 
 
 

man a man page file at unspecified directory

Post by Jordan Abe » Wed, 29 Mar 2006 12:48:22



Quote:> I installed a gcc version on my Linux box, while keeping the default
> gcc in /usr/bin.

> Say the gcc I built is in $HOME/mygcc/bin, and the associated man page
> is in $HOME/mygcc/man/man1/gcc.1, how can I read it with proper format?
> less/cat/vi does not work because the special characters are not
> displayed properly.

add $HOME/mygcc/man to your MANPATH, then type man gcc.

to get the manpage to the default gcc, remove it from MANPATH.

 
 
 

man a man page file at unspecified directory

Post by Harry3 » Wed, 29 Mar 2006 14:07:42


Quote:Sean wrote...

>I installed a gcc version on my Linux box, while keeping the default
>gcc in /usr/bin.

>Say the gcc I built is in $HOME/mygcc/bin, and the associated man page
>is in $HOME/mygcc/man/man1/gcc.1, how can I read it with proper format?
>less/cat/vi does not work because the special characters are not
>displayed properly.

nroff -ms gcc.1 | col -b > gcc_manpage.txt
 
 
 

man a man page file at unspecified directory

Post by Chris F.A. Johnso » Wed, 29 Mar 2006 14:06:55



> I installed a gcc version on my Linux box, while keeping the default
> gcc in /usr/bin.

> Say the gcc I built is in $HOME/mygcc/bin, and the associated man page
> is in $HOME/mygcc/man/man1/gcc.1, how can I read it with proper format?
> less/cat/vi does not work because the special characters are not
> displayed properly.

man $HOME/mygcc/man/man1/gcc.1

--
   Chris F.A. Johnson, author   |    <http://cfaj.freeshell.org>
   Shell Scripting Recipes:     |  My code in this post, if any,
   A Problem-Solution Approach  |          is released under the
   2005, Apress                 |     GNU General Public Licence

 
 
 

man a man page file at unspecified directory

Post by PM » Wed, 29 Mar 2006 15:39:08



> I installed a gcc version on my Linux box, while keeping the default
> gcc in /usr/bin.

> Say the gcc I built is in $HOME/mygcc/bin, and the associated man page
> is in $HOME/mygcc/man/man1/gcc.1, how can I read it with proper format?
> less/cat/vi does not work because the special characters are not
> displayed properly.

$ man -M $HOME/mygcc/man gcc
 
 
 

1. How to format BSD man pages (groff man) using "classical" troff man?

I need to format BSD man pages, apparently written for the new man
macros which can only be used with GNU's groff text formatter,
using "classical" troff and man macros (e.g., troff from DWB 2.0).

Does there exist a conversion tool or a macroset usable with troff?

Please respond by E-MAIL, if necessary I'll summarize.

--

--    Bull Nederland NV, Product Support Unix, Amsterdam, The Netherlands

2. Question about website forums...

3. Standard man pages to "Catted" man pages!

4. Which Emulex on AIX?

5. man can't format new man pages - can't find DESC file

6. network problem after system crash

7. Q: Display man page from file in personal directory?

8. LILO DOCUMENT ???

9. Man Man more man?

10. man oh man oh man!

11. tk man, perl man, and man servers

12. double man pages in man and cat

13. How do I add man pages to man path for new app