man pages
Алексей Муранов
alexey.muranov at gmail.com
Sun Apr 29 04:04:30 PDT 2007
After following the suggestion of Matt to modify my man.conf clear my
MANPATH variable,
i now can see man pages for all the ports (or so it seems so far).
Thanks.
Le 23 Apr 2007 à 15:39, Matt Meissner a écrit :
> On Apr 22, 2007, at 6:04 AM, Алексей Муранов wrote:
>
>> Le 22 Apr 2007 à 00:18, Matt Meissner a écrit :
>>
>>> On Apr 21, 2007, at 3:55 PM, Ryan Schmidt wrote:
>>>
>>>> On Apr 21, 2007, at 11:25, Sbranzo wrote:
>>>>
>>>>> On 21/04/07 00:56, Алексей Муранов wrote:
>>>>>
>>>>>> Hello,
>>>>>> i have a small problem.
>>>>>> I have just installed MascPorts, and tried
>>>>>> $ man port
>>>>>> but received
>>>>>> No manual entry for portgroup
>>>>>
>>>>> Maybe your $MANPATH doesn't include /opt/local/share/man/, if
>>>>> you add
>>>>> export MANPATH=/opt/local/share/man:/opt/local/man:/usr/share/
>>>>> man:/usr/local/share/man
>>>>> to your .profile all should work correctly.
>>>>> I thinks the tiger version of man have hardcoded other paths,
>>>>> since
>>>>> MANPATH doesn't have to include system man page folders.
>>>>
>>>> My MANPATH is empty but I still seem to be able to read manpages
>>>> for ports. I'm on Tiger.
>>>
>>> look up man(1) for the details, but on Tiger the man command
>>> looks at each item in your PATH, changes any "/bin" into "/man",
>>> and searches there for manpages.
>>>
>>> To bring this back to MacPorts, if I remember correctly, this is
>>> the only reason why ${prefix}/man -> ${prefix}/share/man is still
>>> around. It was decided ages ago that the canonical location for
>>> man pages is ${prefix}/share/man
>>>
>> Ok, after changing my MANPATH, i can use
>> $ man port ,
>> but not man for specific ports.
>> For example,
>> $ man transfig
>> or
>> $ man xfig
>> do not work.
>>
>
> I don't have those ports installed. Are you certain they have man
> pages in /opt/local/share/man?
>
>> What are the other directories that i should add to MANPATH?
>>
>> Here are my variables:
>>
>> MANPATH=/opt/local/share/man:/usr/local/teTeX/man:/usr/local/share/
>> man:/usr/share/man
>> PATH=/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/
>> usr/local/teTeX/bin/powerpc-apple-darwin-current:/usr/local/bin
>> INFOPATH=/usr/local/teTeX/info:/usr/local/share/info:/usr/local/
>> lib/info:/usr/local/info:/usr/share/info
>>
>> Thanks.
>>
>> Alexey.
>
> I would really suggest reading the section "SEARCH PATH FOR MANUAL
> PAGES" in man(1) and the corrosponding config file /usr/share/misc/
> man.conf. Then set up a MANPATH_MAP for "/usr/local/teTeX/bin/
> powerpc-apple-darwin-current". Finally, clear your MANPATH
> environment variable altogether.
>
>
> --
> Matt Meissner
> meissnem at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20070429/22825604/attachment.html
More information about the macports-users
mailing list