lynx man page

Joined
Mar 4, 2012
Messages
5
Reaction score
0
Points
1
installed lynx. When I run it in Terminal it runs fine. But, when I enter the command 'man lynx' it says it has no manual entry. Yet the folder that contains all the files that I compiled to install lynx has a man page named: lynx.man . I can open the file with an app called ManOpen . but where do I put this file so that it opens in Terminal when i type 'man lynx' ?
 
Joined
May 14, 2009
Messages
2,052
Reaction score
136
Points
63
Location
Near Whitehorse, Yukon
Your Mac's Specs
2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
You need to add it to your MANPATH so that the man command knows where to look for it.

Code:
export MANPATH=$MANPATH:/path/to/manfolder

And if you don't know about this already, Homebrew makes installing CL apps way easier if they have it in their repositories.
One command and it downloads/compiles/installs and your done!
Homebrew ? MacPorts driving you to drink? Try Homebrew!
 
OP
S
Joined
Mar 4, 2012
Messages
5
Reaction score
0
Points
1
man page

so I would enter in Terminal:

export MANPATH=$MANPATH:/Documents


The Documents folder is where I have the lynx.man file.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
The man page should have been installed when you executed "make install." Did you install it or just build it?

Here's another recommendation for Homebrew - it's free, simple and quick.
 
OP
S
Joined
Mar 4, 2012
Messages
5
Reaction score
0
Points
1
in terminal I changed to the folder that contained all the lynx stuff
then I ran

. /configure

it did its thing and then I ran

make

then I ran

sudo make install

everything went find lynx was installed but like I said, if I run 'man lynx'
i get 'no manual entry for lynx'
this is my manpath:
usr/share/man:/usr/X11/man:/Users/steveray/Documents

and I'm still getting 'no manual entry for lynx'

yet /Users/steveray/Documents is where the lynx.man file is located.

should i copy the lynx.man file to usr/share/man ?
 
Joined
May 14, 2009
Messages
2,052
Reaction score
136
Points
63
Location
Near Whitehorse, Yukon
Your Mac's Specs
2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
Well, the script does install the man file, to /usr/local/man/man1
I have added it to my man paths but it still errors out.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
I installed it through Homebrew and the man page works fine here. Maybe you could consider installing it that way.

Looking at the makefile, it would appear that it is placing the man page in the man1 folder as you'd expect. Interestingly however, I don't even have a MANPATH variable set and it works fine here:
Code:
~/Downloads/lynx2-8-7 :: /usr/libexec/path_helper -s
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.6/bin"; export PATH;
It makes me wonder what Homebrew has done in the background.

EDIT: The only man path I have set is /usr/X11/share/man (for X11 stuff) in my /etc/manpaths.d/ folder. However, Lynx's man page is not there. I'll do a quick search and see what I come up with.

EDIT 2: Well, I can't find lynx's man page. Hmmm....
 
Joined
May 14, 2009
Messages
2,052
Reaction score
136
Points
63
Location
Near Whitehorse, Yukon
Your Mac's Specs
2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
OP: Moving the man file to the /usr/share/man/man1 folder will make it work.

I tried to get man to load the manfile from the default install location. You can specifty the path where man has to look for the manfile with man -M /usr/local/man/man1/ lynx but even then it didn't load it.
I must be overlooking something huge here…
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
I must be overlooking something huge here…
You and me both.

I'm intrigued to know why the man page wasn't installed in the right location. What is the output of the following:
Code:
sudo find / -name lynx.1 -print

By the way, I found out where Homebrew installs man pages (/usr/local/share/man/man1/).
 
Joined
May 14, 2009
Messages
2,052
Reaction score
136
Points
63
Location
Near Whitehorse, Yukon
Your Mac's Specs
2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
The Lynx source man file location, /usr/local/man/man1/lynx.1
Homebrew man file location, /usr/local/share/man/man1/lynx.1
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top