Monday, September 13, 2010

Lab 1 Build 2 packages from source

1. Nled

First I went to http://cdot.senecac.on.ca/software/nled/ site and download the tar file for nled.
Than I use the command tar -xvzf nled_2_52_src.tgz to extracted it.
Than I go into the directory I extracted and issue the command make and I got an error said
$ make
cc -O -c -o nled.o nled.c
cc -O -c -o nledisp.o nledisp.c
cc -O -c -o nledit.o nledit.c
cc -O -c -o nledio.o nledio.c
cc -O -c -o nledmisc.o nledmisc.c
cc -O -c -o nledata.o nledata.c
cc -O -c -o qkdisp.o qkdisp.c
qkdisp.c:125:21: error: ncurses.h: No such file or directory
qkdisp.c: In function ‘qd_boldon’:
qkdisp.c:181: error: ‘A_BOLD’ undeclared (first use in this function)
qkdisp.c:181: error: (Each undeclared identifier is reported only once
qkdisp.c:181: error: for each function it appears in.)
qkdisp.c: In function ‘qd_boldoff’:
qkdisp.c:195: error: ‘A_BOLD’ undeclared (first use in this function)
qkdisp.c: In function ‘qd_cols’:
qkdisp.c:276: error: ‘COLS’ undeclared (first use in this function)
qkdisp.c: In function ‘qd_open’:
qkdisp.c:499: error: ‘stdscr’ undeclared (first use in this function)
qkdisp.c: In function ‘qd_revon’:
qkdisp.c:570: error: ‘A_REVERSE’ undeclared (first use in this function)
qkdisp.c: In function ‘qd_revoff’:
qkdisp.c:584: error: ‘A_REVERSE’ undeclared (first use in this function)
qkdisp.c: In function ‘qd_rows’:
qkdisp.c:593: error: ‘LINES’ undeclared (first use in this function)
qkdisp.c: In function ‘qd_scrollup’:
qkdisp.c:635: error: ‘LINES’ undeclared (first use in this function)
qkdisp.c: In function ‘qd_scrolldown’:
qkdisp.c:682: error: ‘LINES’ undeclared (first use in this function)
make: *** [qkdisp.o] Error 1

Than in the terminal I issue the command yum install */ncurses.h
Than I try make command again and its successfully install nled.

2.Ettercap

I went to the http://sourceforge.net and download the Ettercap source code

http://sourceforge.net/projects/ettercap/files/ettercap/NG-0.7.3/ettercap-NG-0.7.3.tar.gz


Than I issue the command  $ tar -xvzf ettercap-NG-0.7.3.tar.gz
Than I go into the directory where i extracted and issue the ./configure command
and its show an error saying missing some files so in the command line I use yum install to install the following files libpcap,libnet and libgtk* than i ran ./configure again and no error show up. Next I issue the command make as current user than i ran make install in root. Than i ran ettercap -C  in the command line and its show the ettercap in text mode

[root@localhost ettercap-NG-0.7.3]# ettercap -C

Thursday, September 9, 2010