The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-14-2002
rachael rachael is offline
Registered User
  
 

Join Date: Oct 2001
Posts: 25
man gcc

Hi all,

How can I get man page to recognize gcc when i need to look up gcc options? I tried "man gcc" but got a response "no manual entry for gcc".

Thanks a bunch,

Rachael
  #2 (permalink)  
Old 01-14-2002
thehoghunter
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
You must add the path to your MANPATH. Type in either env or echo $MANPATH and you will see the path searched for man entries. Add the path for the gcc man pages (could be /usr/local/gcc/man or something like it)
  #3 (permalink)  
Old 01-14-2002
rachael rachael is offline
Registered User
  
 

Join Date: Oct 2001
Posts: 25
Thanks and i found the path to man but where is the variable MANPATH defined? is it ok if i put it in my .profile? I have tried to grep for MANPATH but got permission denied to all files found

Rachael
  #4 (permalink)  
Old 01-14-2002
thehoghunter
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Putting it in your profile would be correct (you will probably find it in there already). Just add the path to it if it's there or add it in if it's not - if it isn't there it may already be defined and you may want to set it to MANPATH=$MANPATH:/your/new/path
  #5 (permalink)  
Old 01-14-2002
rachael rachael is offline
Registered User
  
 

Join Date: Oct 2001
Posts: 25
Question

the variable MANPATH was not set but defined as

/usr/dt/man:/usr/man

so i added the path of gcc to the end and rebooted. As a result, manpage to gcc is still not working but to others are still ok and the echo $MANPATH command gave

/usr/dt/man:/usr/man:/usr/dt/man/usr/man:/usr/local/bin/gcc
(new path for gcc)

any clues what is wrong?

Rachael
  #6 (permalink)  
Old 01-15-2002
Myrkul Myrkul is offline
Registered User
  
 

Join Date: Jan 2002
Location: Switzerland Zürich
Posts: 7
Hi,

I think you've forgotten the man in your path: /usr/local/bin/gcc

i think the path should be like this: /usr/local/bin/gcc/man

Cheers

Myrkul
  #7 (permalink)  
Old 01-15-2002
thehoghunter
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Myrkul is correct. And you do not need to reboot - just sign out and back in.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0