LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-04-2011, 05:30 PM   #1
Abbraxas
LQ Newbie
 
Registered: Aug 2011
Location: Germany
Distribution: Slackware 14.1
Posts: 18

Rep: Reputation: Disabled
man page is not found although $MANPATH and man.conf changed


Hi all,
I have got something like a problem.
I downloaded the sourcefiles for the programm diction.

Now here is the clue:
the programm is executable and works fine but if I type 'man diction' I get the error message that the manpage was not found.

Then I changed the env.var. $MANPATH and added the directory where the source files are stored, but nothing.

Next I added the directory of the src in the config file of the manpages.

Then I though, oh wait, is there ANY manpage?

The answer is yes, there is, and with the usual name "diction.1".
And I am able to open it with less, beeing formatted as expected.

But here is the question: why does my approach not work on the problem?
What have I to do, so that the manpage for diction is found by using the command "man diction"???

Abbraxas

I forgot to metion that I copied the diction.1 file also into the /usr/local/man/man1 directory

Last edited by Abbraxas; 09-04-2011 at 05:32 PM.
 
Old 09-04-2011, 05:58 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Double check the permissions and ownership compared to other man pages.

On my system the man pages are all own/group to root and have 644 permissions unless they're a symbolic link (which have 777).

Test out the page to be sure it formats correctly. Man can use a relative path (usually used for testing or developement).

Code:
man ./diction.1
On my system man1 is located in /usr/share/man/man1 but not sure if that's the required path for your system.

Last edited by sag47; 09-04-2011 at 06:03 PM.
 
1 members found this post helpful.
Old 09-05-2011, 06:06 AM   #3
Abbraxas
LQ Newbie
 
Registered: Aug 2011
Location: Germany
Distribution: Slackware 14.1
Posts: 18

Original Poster
Rep: Reputation: Disabled
Hey,
now it works, had to move it to /usr/share/man/man1
but I found the directory man in more than one parentdirectory,
for example:
/usr/local/man
/usr/local/share/man
/usr/man

but where is the difference?! because in every man/* there are the same files...
 
Old 09-05-2011, 06:40 PM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
There are people who explain this better than me. So I shall defer to them.

You tend to realize it when you start compiling your own software. But that post I gave you (at least from the Red Hat perspective) is how I treat it.

And as far as I know man pages should only be in either /usr/share/man/ or /usr/local/share/man/ unless you want to follow your own convention. That's why it's a convention and not a requirement so other distro's could make it different.

Last edited by sag47; 09-05-2011 at 06:44 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slackpkg failed to find /usr/lib64/man.conf.new or man.conf should be in /etc? grissiom Slackware 12 08-18-2009 02:57 AM
Does "mtd write" clear/erase the end of the mtd block by default? (no man page found) maddes.b Linux - Kernel 0 08-17-2009 03:07 AM
How do I get out of a man page? christianunix Linux - Newbie 4 10-17-2007 08:37 PM
waht file have paths for man? man.conf? where? xcore_on Linux - Newbie 4 05-23-2006 09:38 AM
man alsamixer not showing the man page nosaku Slackware 1 12-20-2004 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration