I am trying to compile aide. The commands are ./configure,make, make install.
I get two errors on the make command and never make it to the make install command.
Code:
gcc -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS -W -Wall -g -g -O2 -static -o aide aide.o base64.o be.o commandconf.o compare_db.o conf_lex.o conf_yacc.o db.o db_disk.o db_file.o db_lex.o db_list.o db_sql.o do_md.o error.o gen_list.o getopt1.o getopt.o gnu_regex.o list.o md.o snprintf.o symboltable.o util.o -lm -lelf
/usr/bin/ld: cannot find -lelf
collect2: ld returned 1 exit status
make[3]: *** [aide] Error 1
make[3]: Leaving directory `/home/james/Desktop/aide-0.15.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/james/Desktop/aide-0.15.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/james/Desktop/aide-0.15.1'
make: *** [all] Error 2
The firt error is the one that I am concerned about. I beleive the second error will do way once I take care of the first error.
The error is
Code:
cc -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS -W -Wall -g -g -O2 -static -o aide aide.o base64.o be.o commandconf.o compare_db.o conf_lex.o conf_yacc.o db.o db_disk.o db_file.o db_lex.o db_list.o db_sql.o do_md.o error.o gen_list.o getopt1.o getopt.o gnu_regex.o list.o md.o snprintf.o symboltable.o util.o -lm -lelf
/usr/bin/ld: cannot find -lelf
collect2: ld returned 1 exit status
make[3]: *** [aide] Error 1
It is not finding -lelf.
ld returned 1 exit status
I am not sure how to make it find lelf.
Any help appreciated.
Thanks in advance.
R,
jyunker