Visit Our UNIX and Linux User Community


man gcc


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers man gcc
# 1  
Old 01-14-2002
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  
Old 01-14-2002
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)
thehoghunter
# 3  
Old 01-14-2002
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 Smilie

Rachael
# 4  
Old 01-14-2002
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
thehoghunter
# 5  
Old 01-14-2002
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  
Old 01-15-2002
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  
Old 01-15-2002
Myrkul is correct. And you do not need to reboot - just sign out and back in.
thehoghunter
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #271
Difficulty: Easy
While working at Bletchley Park, in the first week of June each year Alan Turing would get a bad attack of hay fever, and he would cycle to the office wearing a service gas mask to keep from breathing pollen. In the first week of June each year he would get a bad attack of hay fever, and he would cycle to the office wearing a service gas mask to keep from breathing the pollen.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

what man*x directories should contain ?

man pages are located beneath /usr/share/man. e.g., manual pages for "section 1" are located in /usr/share/man/man1/. And /usr/share/man/man*p should contain manual pages for POSIX programmers. I need to know what /usr/share/man/man*x directories should contain ? (1 Reply)
Discussion started by: new0h
1 Replies

2. UNIX for Dummies Questions & Answers

gcc man pages not found under Solaris 10

Hi friends, When I try to see the man pages of gcc, man gcc I see No manual entry for gcc. Could you help me please. I am running solaris 10 Thanks! (4 Replies)
Discussion started by: gabam
4 Replies

3. Post Here to Contact Site Administrators and Moderators

Man tags

Is it possible to specify the section as well as the OS when using tags? I played with a few combinations but without success. (3 Replies)
Discussion started by: CarloM
3 Replies

4. Shell Programming and Scripting

Man command

How to get only the options and arguments of a command excluding the descriptive help? (1 Reply)
Discussion started by: mayur_verma
1 Replies

5. Linux

man command

Hey people do u know how to disable the man command in linux??? i am not able to do anythg apart from disabling the permission for /usr/bin/... i dont wanna uninstall the man / man pages also... this has been one of the toughest challenges i have come across in linux... can anybody... (5 Replies)
Discussion started by: linux.user
5 Replies

6. Solaris

man and ldm man

According to Sun documentation (Ldoms 1.1 Administration Guide), To access the ldm(1M) man page, add the directory path /opt/SUNWldm/man to the variable $MANPATH. When I add the lines: MANPATH=$MANPATH:/opt/SUNWldm/man export MANPATH to .profile, exit root and re-login, I would have "man ldm"... (5 Replies)
Discussion started by: StarSol
5 Replies

7. Solaris

Installing gcc - recieve error message gcc : cannot execute

AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies

8. UNIX for Dummies Questions & Answers

need help how to use man

hello every one im a new to unix i use solaris 9 experimental i would like to use real unix system but there are to many versions and i need someone to recommend a good one for me i also need help on how to use "man" (3 Replies)
Discussion started by: abu_malek
3 Replies

9. Programming

man

If i have my own application ( say 'myTool'), then is it possible to create a man page for it? such that "man myTool" will give information about it. if so how to go about it? thanks in advance, Nads (3 Replies)
Discussion started by: Nads
3 Replies

10. UNIX for Dummies Questions & Answers

man pages

Hi folks, I want to know all the commands for which man pages are available. How do i get it? Cheers, Nisha (4 Replies)
Discussion started by: Nisha
4 Replies

Featured Tech Videos