Please support VectorLinux!

Author Topic: MANPATH screwed up on (my) VL5.8 Standard?  (Read 3407 times)

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
MANPATH screwed up on (my) VL5.8 Standard?
« 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?

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3208
Re: MANPATH screwed up on (my) VL5.8 Standard?
« Reply #1 on: July 19, 2007, 11:23:44 am »
I think the manpath in vl defaults to /usr/man not /usr/share/man

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: MANPATH screwed up on (my) VL5.8 Standard?
« 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.

easuter

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 2160
Re: MANPATH screwed up on (my) VL5.8 Standard?
« 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: [Select]
ls -l /usr/share/man

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: MANPATH screwed up on (my) VL5.8 Standard?
« Reply #4 on: July 19, 2007, 03:14:26 pm »
Code: [Select]
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/


easuter

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 2160
Re: MANPATH screwed up on (my) VL5.8 Standard?
« Reply #5 on: July 19, 2007, 10:32:46 pm »
My bad: I was thinking of /usr/share/info  :-[

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) ;)

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: MANPATH screwed up on (my) VL5.8 Standard?
« 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?  :P

Thanks for the tip on where $MANPATH is set.

easuter

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 2160
Re: MANPATH screwed up on (my) VL5.8 Standard?
« 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.

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: MANPATH screwed up on (my) VL5.8 Standard?
« 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.

easuter

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 2160
Re: MANPATH screwed up on (my) VL5.8 Standard?
« 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  :-X

Triarius Fidelis

  • Vecteloper
  • Vectorian
  • ****
  • Posts: 2399
  • Domine, exaudi vocem meam
    • my website
Re: MANPATH screwed up on (my) VL5.8 Standard?
« 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.
"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
Re: MANPATH screwed up on (my) VL5.8 Standard?
« 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.