Thank you much for taking time to look at this.

i am attempting to install and run lynx2-8-7.
The current OS i have is Debian of 2.6.26-2-amd64
It looks as though ncurses = version 5.7  .... this was installed already on 
the system (since time of original OS install)

i am a beginner at using linux, but have a general understanding of some of 
this.
I have included some info, particularly of the error when i attempt the "make" 
command.
hopefully it will be clear what step(s) i am missing or doing wrong, at least 
enough to point me in the right direction. 

...............................................

I downloaded the file (lynx2.8.7.tar.bz2) into a "/lynx" directory i created.  
Then uncompressing created "/lynx/lynx2-8-7"
These are done from root.  

In root terminal at "/lynx/lynx2-8-7"# a first attempt was 
to use simply "./configure"

this ran through alittle, and stopped when saying curses headers not found.

then running  "./configure --with-screen=ncurses"   went a bit furthur untill 
not finding color-style

...so then running (still from root   /lynx/lynx2-8-7:# )  
          "./configure --with-screen=ncurses --disable-color-style"  seemed to 
go through all the configure process...

the above was done exactly as above, along with the 
--sysconfdir=/lynx/lynx2-8-7  option added - both seemed to get through 
configure ok, though the "make" command failed for both :


This is the terminal output for running (from root)  :/lynx/lynx2-8-7#make

>>>>>>>>>>>>>>>>>>>>>>>>>>>>

/bin/sh -c 'SHELL=/bin/sh /bin/sh ./scripts/cfg_defs.sh .'
Constructing sed-script help_files.sed
sed     -e '/^#/d' -e '/^$/d' \
                -e 's%\(.*\)=\(....@.*\)$...@\1@=\2=g%' \
                -e 's%\(.*\)=\(http:.*\)$...@\1@=\2=g%' \
                -e 's%\(.*\)=\(ftp:.*\)$...@\1@=\2=g%' \
                -e 's%\(.*\)=\(.*\.html\)$...@\1@=\2=g%' \
                help_files.tmp | tr '=' '"'> help_files.sed
Appending interim-fix for existing html files to help_files.sed
sed     -e '/^#/d' -e '/[:@]/d' -e '/^$/d' \
                -e 's%\(.*\)=\(.*\.html\)$%s=\2=\2=g%' \
                -e 's%\.html=%\\.html=%' \
                help_files.tmp | tr '=' '"'>> help_files.sed
if test -n ""; then echo 's%\\%%g'>> help_files.sed; fi
Creating LYHelp.h
**********************************************

       Help files will NOT be gzipped.

**********************************************
cd ./WWW/Library/Implementation && make DESTDIR="" CC="gcc" LY_CFLAGS="-O2 " 
CPPFLAGS="-D_GNU_SOURCE  -DLINUX -I/usr/include/ncurses" LYFLAGS=""
make[1]: Entering directory `/lynx/lynx2-8-7/WWW/Library/Implementation'
gcc -DHAVE_CONFIG_H  -I../../.. -I../../../src -I../../.. -I../../../src  
-I../../../WWW/Library/Implementation  -D_GNU_SOURCE  -DLINUX 
-I/usr/include/ncurses -O2    -I../../../WWW/Library/Implementation/ 
-DACCESS_AUTH -c ../../../WWW/Library/Implementation/HTParse.c
In file included from ../../../WWW/Library/Implementation/HTParse.c:8:
../../../WWW/Library/Implementation/HTUtils.h:534:19: error: operator '==' has 
no left operand
../../../WWW/Library/Implementation/HTUtils.h:540:21: error: operator '==' has 
no left operand
../../../WWW/Library/Implementation/HTUtils.h:557:19: error: operator '>' has 
no left operand
../../../WWW/Library/Implementation/HTUtils.h:572:20: error: operator '==' has 
no left operand
../../../WWW/Library/Implementation/HTUtils.h:578:22: error: operator '==' has 
no left operand
../../../WWW/Library/Implementation/HTUtils.h:595:20: error: operator '>' has 
no left operand
In file included from /usr/include/fcntl.h:38,
                 from ../../../WWW/Library/Implementation/www_tcp.h:133,
                 from ../../../WWW/Library/Implementation/HTUtils.h:630,
                 from ../../../WWW/Library/Implementation/HTParse.c:8:
/usr/include/sys/stat.h:458: error: redefinition of ‘stat’
/usr/include/sys/stat.h:452: error: previous definition of ‘stat’ was here
In file included from ../../../src/LYKeymap.h:6,
                 from ../../../src/LYUtils.h:6,
                 from ../../../WWW/Library/Implementation/HTParse.c:11:
../../../src/LYCurses.h:217:41: error: curses.h: No such file or directory
In file included from ../../../src/LYKeymap.h:6,
                 from ../../../src/LYUtils.h:6,
                 from ../../../WWW/Library/Implementation/HTParse.c:11:
../../../src/LYCurses.h:331: error: expected ‘)’ before ‘*’ token
../../../src/LYCurses.h:332: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘*’ token
../../../src/LYCurses.h:337: error: expected ‘)’ before ‘*’ token
../../../src/LYCurses.h:338: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘*’ token
../../../src/LYCurses.h:467: error: expected ‘)’ before ‘*’ token
../../../src/LYCurses.h:472: error: expected ‘)’ before ‘*’ token
../../../src/LYCurses.h:824: error: expected ‘)’ before ‘*’ token
In file included from ../../../WWW/Library/Implementation/HTParse.c:13:
../../../src/LYStrings.h:31: error: expected ‘)’ before ‘*’ token
make[1]: *** [HTParse.o] Error 1
make[1]: Leaving directory `/lynx/lynx2-8-7/WWW/Library/Implementation'
make: *** [all] Error 2
 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>



Working through the INSTALLATION text was helpfull, though i am getting really 
mixed up in how to define the LIB or CFLAGS or CPPFLAGS. (if these are even 
necessary)

there was an ncurses info/text file that referred to the default locations for 
the ncurses lib and include directories being in "/usr/local"  ....this might 
be the case on my system, though i am not sure how to know.  (i mean... 
/usr/local  does have both an "include" and a "lib" folder, but i am not sure 
if these are matched with ncurses)....  

also the example in INSTALLATION (1e.examples) uses slang -which looks as 
though it has a regular "slang" directory..... i cannot find the "curses or 
ncurses" directory which has the "include and lib" directories in it on my 
system.

It seems I may be leaving out necessary env variables, and not knowing how to 
assign them (any attempts i have made to assign the variables LIB or CPPFLAGS 
at the time of " ./configure " have just read off errors and not allowed 
configuration to go)

from what i have read in the INSTALLATION text, it seems i might have some sort 
of problem with setting variables, or using ncurses or curses in the wrong way 
and not knowing how to coordinate things with finding lib or include files.

-- Any help would be greatly appreciated in helping me figure out what is 
happening here, or even  
recommending a different approach i should be taking to install the lynx 
browser.

Thank you !
                                          
_______________________________________________
Lynx-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lynx-dev

Reply via email to