VectorLinux
November 25, 2014, 02:54:35 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: MANPATH screwed up on (my) VL5.8 Standard?  (Read 3190 times)
exeterdad
Packager
Vectorian
****
Posts: 2046



« on: July 19, 2007, 09:18:54 am »

I've been noticing that many times when trying to view a manpage there doesn' seem to be a listing for that app.
I just built a package and was testing it today.  The manpage for the app was in /usr/share/man.  I went to see if it was indeed there and it was, along with many, many others.  I did a
Quote
echo $MANPATH
and /usr/share/man wasn't included.  I updated the path in a console like this
Quote
export MANPATH=$MANPATH:/usr/share/man
and it worked.
Quote
man xscreensaver
works now, but didn't in the past.  Where in the system is this path set/appended?  I'd like to fix it so I don't have to reset it each time I open up a console?
Logged
M0E-lnx
Administrator
Vectorian
*****
Posts: 3192



« Reply #1 on: July 19, 2007, 11:23:44 am »

I think the manpath in vl defaults to /usr/man not /usr/share/man
Logged

exeterdad
Packager
Vectorian
****
Posts: 2046



« Reply #2 on: July 19, 2007, 11:54:44 am »

That may be so, but /usr/share/man needs to be there as well.  Take a peek there.  There are TONS of man pages there that are part of the default install.
Logged
easuter
Global Moderator
Vectorian
*****
Posts: 2160



« Reply #3 on: July 19, 2007, 03:10:16 pm »

Actually, I think /usr/share/man is simply a symlink to /usr/man
To check if this is so:

Code:
ls -l /usr/share/man
Logged

exeterdad
Packager
Vectorian
****
Posts: 2046



« Reply #4 on: July 19, 2007, 03:14:26 pm »

Code:
leeh:$ ls -l /usr/share/man
total 8
drwxr-xr-x 2 root root  784 2007-07-05 13:23 man1/
drwxr-xr-x 2 root root  888 2006-11-27 23:50 man3/
drwxr-xr-x 2 root root  400 2006-11-27 23:50 man5/
drwxr-xr-x 2 root root 6768 2007-07-19 13:00 man6/
drwxr-xr-x 2 root root  112 2006-11-27 23:50 man7/
drwxr-xr-x 2 root root  504 2006-11-27 23:50 man8/

Logged
easuter
Global Moderator
Vectorian
*****
Posts: 2160



« Reply #5 on: July 19, 2007, 10:32:46 pm »

My bad: I was thinking of /usr/share/info  Embarrassed

The paths set for all users are in ~/.bashrc and /etc/profile.d (this is where you can put these exports in a script and they will be run for all users).

BTW, when compiling from source, there is also normally an option to use the --mandir=/usr/man flag to make sure the man pages get installed to /usr/man (which is the Slackware way) Wink
Logged

exeterdad
Packager
Vectorian
****
Posts: 2046



« Reply #6 on: July 20, 2007, 06:54:27 am »

Quote
/usr/man (which is the Slackware way)

Noted!  I will adjust the package before uploading.

Although I am curious how the manpages got into /usr/share/man on a clean install?  Tongue

Thanks for the tip on where $MANPATH is set.
Logged
easuter
Global Moderator
Vectorian
*****
Posts: 2160



« Reply #7 on: July 20, 2007, 08:44:43 am »

By default, configure scripts set the manpages to be installed either to /usr/share/man or /usr/local/man, so unless you specifically use the --mandir flag, the manpages will normally always end up in the wrong place.
Logged

exeterdad
Packager
Vectorian
****
Posts: 2046



« Reply #8 on: July 20, 2007, 08:52:50 am »

I think you may of misunderstood.  There are lots of manpages already in /usr/share/man that were put there by the install cd.  A few hundred of them.
Logged
easuter
Global Moderator
Vectorian
*****
Posts: 2160



« Reply #9 on: July 22, 2007, 03:35:02 am »

Yes, I understood, that simply means those packages were not compiled with the --mandir flag....and they should have been  Lips sealed
Logged

Triarius Fidelis
Vecteloper
Vectorian
****
Posts: 2399


Domine, exaudi vocem meam


WWW
« Reply #10 on: July 22, 2007, 06:16:30 am »

/usr/share/doc, /usr/share/man, and /usr/share/info should be links IMO. Makes messing up impossible.
Logged

"Leatherface, you BITCH! Ho Chi Minh, hah hah hah!"

Formerly known as "Epic Fail Guy" and "Döden" in recent months
exeterdad
Packager
Vectorian
****
Posts: 2046



« Reply #11 on: July 22, 2007, 06:51:56 am »

/usr/share/doc, /usr/share/man, and /usr/share/info should be links IMO. Makes messing up impossible.
I agree with that.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!