LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-14-2008, 06:55 PM   #1
computer_freak_8
Member
 
Registered: Jul 2008
Location: Iowa
Distribution: Ubuntu and Fedora, mostly
Posts: 103

Rep: Reputation: 15
Question Install "development" version from source?


I am trying to install Berkeley DB on SuSE Enterprise (10.1?) as a "development" package. (Like an RPM that ends in "-devel".)

How do I do this? I installed according to the HTML document referenced in the documentation, but when attempting to install Dsniff, I still get an error about missing Berkeley DB support.

Note: This is schoolwork, so that means two things.
1. I will have to wait until Monday before I am able to try it again.
2. I need to learn to install it as a development package from source - not an RPM file.

My teacher will tell me if all else fails, but she wants me to try and use my resources (search engines/forums) to the best of my abilities before resorting to asking her for help.


Thanks in advance,
computer_freak_8
 
Old 11-15-2008, 12:06 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
See if you can install the src-rpm.

otherwise get the source and compile it.

#./configure --help
 
Old 11-15-2008, 12:55 PM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by computer_freak_8 View Post
I am trying to install Berkeley DB on SuSE Enterprise (10.1?) as a "development" package. (Like an RPM that ends in "-devel".)

How do I do this? I installed according to the HTML document referenced in the documentation, but when attempting to install Dsniff, I still get an error about missing Berkeley DB support.
Tell use exactly the steps you followed, and paste whatever error messages you are getting. It's very important to be accurate because that way you will get a better change to get helped and this thread will probably be shorter.

From the sound of it, I think that you might need to install the db or/and db-devel package. It's usually the name of the berkeley db package on most distros.
 
Old 11-15-2008, 02:54 PM   #4
computer_freak_8
Member
 
Registered: Jul 2008
Location: Iowa
Distribution: Ubuntu and Fedora, mostly
Posts: 103

Original Poster
Rep: Reputation: 15
Post

Quote:
Originally Posted by i92guboj View Post
Tell use exactly the steps you followed, and paste whatever error messages you are getting.
[...]
I think that you might need to install the db or/and db-devel package. It's usually the name of the berkeley db package on most distros.
First, sorry, I forget about that (until I'm trying to help someone else, of course)!
Second, keep in mind, I should not install the RPM of it; I should compile it from source.

Here's what I do:
  1. Download Dsniff from http://monkey.org/~dugsong/dsniff/
  2. Extract using GUI archive manager
  3. Change to the extracted directory
  4. Code:
    ./configure
  5. Error returned:
    Quote:
    checking for Berkeley DB with 1.85 compatibility... configure: error: Berkeley DB with 1.85 compatibility not found
  6. Download from http://www.oracle.com/technology/sof.../db/index.html Berkeley DB 4.7.25NC.tar.gz , without encryption (13M)
  7. Extract with the GUI archive manager
  8. Change to the extracted directory
  9. Open the "README" file. It says:
    Quote:
    To view release and
    installation documentation, load the distribution file docs/index.html
    into your web browser.
  10. Open "./docs/index.html" in Firefox. It says:
    Quote:
    Build, Installation, and Upgrading Guides
    These guides contain helpful hints, step-by-step instructions, and information on platform-specific details of the build, installation, and upgrade processes.
  11. Click the UNIX/POSIX link (there is no Linux, and all the rest are not even close, as far as I know)
  12. Read this page
  13. Change to the "build_unix" directory
  14. Last time: ran "../dist/configure" (See next list for what happened) ||| This time: ran "../dist/configure --help" (As suggested by amani. See last list for what happened)
  1. Ran "make"
  2. Ran "make install"
  3. Same results as #s 4 & 5 in the first list
  1. Saw possible option to solve problem: "--enable-compat185 Build DB 1.85 compatibility API."
  2. Ran "../dist/configure --enable-compat185"
  3. Ran "make"
  4. Ran "sudo make install"
  5. Same results as #s 4 & 5 in the first list
  6. Ran "./configure --help" (continuing from the above step)
  7. Saw line "--with-db=DIR use Berkeley DB (with --enable-compat185) in DIR"
  8. Looked at output of the Berkeley DB install
  9. Saw
    Quote:
    Libraries have been installed in:
    /usr/local/BerkeleyDB.4.7/lib
  10. Ran "./configure --with-db=/usr/local/BerkeleyDB.4.7/lib"
  11. Quote:
    configure: error: db_185.h or libdb.a not found in /usr/local/BerkeleyDB.4.7/lib or not configured with --enable-compat185


Okay, now I'm really confused. Any ideas?
 
Old 11-15-2008, 03:30 PM   #5
computer_freak_8
Member
 
Registered: Jul 2008
Location: Iowa
Distribution: Ubuntu and Fedora, mostly
Posts: 103

Original Poster
Rep: Reputation: 15
Exclamation Update

Okay, I figured out I needed to leave of the "lib" on the directory parameter when configuring dsniff. I went through a few other errors, ended up installing Flex and Bison (to install Libpcap, which I did). Now the latest error is about Libnet.

So I downloaded Libnet from Sourceforge, and try to compile it according to the "readme.txt" file (copy the makefile, then run "make").

I get the following output:
Code:
make -C lib/ lib
make[1]: Entering directory `/home/jaredtbrees/Downloads/SCHOOL/libnet/lib'
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX   -c -o core/core.o core/core.c
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX   -c -o core/channels.o core/channels.c
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX   -c -o core/config.o core/config.c
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX   -c -o core/conns.o core/conns.c
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX   -c -o core/lists.o core/lists.c
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX   -c -o core/connhelp.o core/connhelp.c
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX   -c -o core/timer.o core/timer.c
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX   -c -o core/fixaddr.o core/fixaddr.c
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX   -c -o core/classes.o core/classes.c
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX   -c -o core/drivers.o core/drivers.c
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX   -c -o core/threads.o core/threads.c
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX   -c -o core/wait.o core/wait.c
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX   -c -o core/address.o core/address.c
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX   -c -o drivers/nonet.o drivers/nonet.c
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX   -c -o drivers/wsockdos.o drivers/wsockdos.c
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX   -c -o drivers/internet.o drivers/internet.c
cc1: warnings being treated as errors
drivers/internet.c: In function ‘do_init_channel’:
drivers/internet.c:116: warning: dereferencing type-punned pointer will break strict-aliasing rules
drivers/internet.c:140: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness
drivers/internet.c: In function ‘drv_recv’:
drivers/internet.c:205: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness
make[1]: *** [drivers/internet.o] Error 1
make[1]: Leaving directory `/home/jaredtbrees/Downloads/SCHOOL/libnet/lib'
make: *** [lib] Error 2
Then I found Libnet at Packetfactory, and it was a lot newer, so I downloaded it. After seeing the "readme.txt" is the same, I ran "make". The output is:
Code:
make -C lib/ lib
make[1]: Entering directory `/home/jaredtbrees/Downloads/SCHOOL/libnet/lib'
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX   -c -o drivers/internet.o drivers/internet.c
cc1: warnings being treated as errors
drivers/internet.c: In function ‘do_init_channel’:
drivers/internet.c:116: warning: dereferencing type-punned pointer will break strict-aliasing rules
drivers/internet.c:140: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness
drivers/internet.c: In function ‘drv_recv’:
drivers/internet.c:205: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness
make[1]: *** [drivers/internet.o] Error 1
make[1]: Leaving directory `/home/jaredtbrees/Downloads/SCHOOL/libnet/lib'
make: *** [lib] Error 2
I don't know what all these errors are about; does anyone know how to fix them?

Last edited by computer_freak_8; 11-15-2008 at 03:39 PM. Reason: Add information
 
Old 11-15-2008, 03:38 PM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Your way to proceed is basically correct.

The problem seems to be on the dsniff configure step, maybe there's some other parameter to tweak or maybe there's some problem with it. I will try once I finish some compiling that I am doing right now and let you know if I find something.
 
Old 11-15-2008, 03:49 PM   #7
computer_freak_8
Member
 
Registered: Jul 2008
Location: Iowa
Distribution: Ubuntu and Fedora, mostly
Posts: 103

Original Poster
Rep: Reputation: 15
Update (2)

Hmmm...
It doesn't say anything about "./configure" in the "readme.txt" of the newer version, but there is a file named "configure" in that directory - unlike the older version.
So, I ran it. No errors. So I ran "make" - the output is:
Code:
make -C lib/ lib
make[1]: Entering directory `/home/jaredtbrees/Downloads/SCHOOL/libnet/lib'
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX   -c -o core/core.o core/core.c
cc1: warnings being treated as errors
In file included from ../include/libnet.h:124,
                 from core/core.c:12:
../include/./libnet/libnet-functions.h:1840: warning: function declaration isn’t a prototype
../include/./libnet/libnet-functions.h:1862: warning: function declaration isn’t a prototype
../include/./libnet/libnet-functions.h:1870: warning: function declaration isn’t a prototype
../include/./libnet/libnet-functions.h:1878: warning: function declaration isn’t a prototype
../include/./libnet/libnet-functions.h:1886: warning: function declaration isn’t a prototype
In file included from core/core.c:13:
include/internal.h:21: error: ‘NET_MAX_ADDRESS_LENGTH’ undeclared here (not in a function)
include/internal.h:45: error: expected ‘)’ before ‘*’ token
include/internal.h:46: error: expected ‘;’ before ‘int’
include/internal.h:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘list_t’
include/internal.h:82: error: expected specifier-qualifier-list before ‘NET_DRIVER’
In file included from core/core.c:14:
include/channels.h:17: error: expected specifier-qualifier-list before ‘NET_CHANNEL’
In file included from core/core.c:15:
include/conns.h:17: error: expected specifier-qualifier-list before ‘NET_CONN’
In file included from core/core.c:16:
include/drivers.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
include/drivers.h:20: error: expected ‘)’ before ‘*’ token
In file included from core/core.c:17:
include/connhelp.h:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__libnet_internal__wrapper_driver’
core/core.c:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘detected_drivers’
core/core.c:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘initialised_drivers’
core/core.c:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘temp_detected_list’
core/core.c:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘net_drivers_all’
core/core.c: In function ‘exitfunc’:
core/core.c:36: warning: implicit declaration of function ‘net_shutdown’
core/core.c: At top level:
core/core.c:42: warning: no previous prototype for ‘net_init’
core/core.c: In function ‘net_init’:
core/core.c:47: warning: implicit declaration of function ‘net_set_mutex_funcs’
core/core.c:49: warning: implicit declaration of function ‘net_set_timer_func’
core/core.c:52: error: ‘detected_drivers’ undeclared (first use in this function)
core/core.c:52: error: (Each undeclared identifier is reported only once
core/core.c:52: error: for each function it appears in.)
core/core.c:52: warning: implicit declaration of function ‘net_driverlist_create’
core/core.c:53: error: ‘initialised_drivers’ undeclared (first use in this function)
core/core.c:54: error: ‘temp_detected_list’ undeclared (first use in this function)
core/core.c:55: error: ‘net_drivers_all’ undeclared (first use in this function)
core/core.c: In function ‘detectdrivers_helper’:
core/core.c:76: error: ‘NET_DRIVER’ undeclared (first use in this function)
core/core.c:76: error: ‘driver’ undeclared (first use in this function)
core/core.c:76: warning: implicit declaration of function ‘__libnet_internal__get_driver’
core/core.c:78: warning: implicit declaration of function ‘net_driverlist_add’
core/core.c:78: error: ‘detected_drivers’ undeclared (first use in this function)
core/core.c:79: error: ‘temp_detected_list’ undeclared (first use in this function)
core/core.c: At top level:
core/core.c:88: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘net_detectdrivers’
core/core.c:98: warning: no previous prototype for ‘net_detectdriver’
core/core.c: In function ‘net_detectdriver’:
core/core.c:99: error: ‘list_t’ undeclared (first use in this function)
core/core.c:99: error: expected ‘;’ before ‘temp’
core/core.c:101: error: ‘temp’ undeclared (first use in this function)
core/core.c:102: warning: implicit declaration of function ‘net_driverlist_clear’
core/core.c:104: error: ‘detected’ undeclared (first use in this function)
core/core.c:104: warning: implicit declaration of function ‘net_detectdrivers’
core/core.c:105: warning: implicit declaration of function ‘net_driverlist_destroy’
core/core.c:106: warning: implicit declaration of function ‘net_driverlist_test’
core/core.c: In function ‘initdrivers_helper’:
core/core.c:112: error: ‘NET_DRIVER’ undeclared (first use in this function)
core/core.c:112: error: ‘driver’ undeclared (first use in this function)
core/core.c:114: error: ‘initialised_drivers’ undeclared (first use in this function)
core/core.c: At top level:
core/core.c:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘net_initdrivers’
core/core.c:162: warning: no previous prototype for ‘net_initdriver’
core/core.c: In function ‘net_initdriver’:
core/core.c:163: error: ‘list_t’ undeclared (first use in this function)
core/core.c:163: error: expected ‘;’ before ‘temp’
core/core.c:165: error: ‘temp’ undeclared (first use in this function)
core/core.c:168: error: ‘inited’ undeclared (first use in this function)
core/core.c:168: warning: implicit declaration of function ‘net_initdrivers’
core/core.c: In function ‘exit_all_drivers_helper’:
core/core.c:176: error: ‘NET_DRIVER’ undeclared (first use in this function)
core/core.c:176: error: ‘driver’ undeclared (first use in this function)
core/core.c: In function ‘exit_all_drivers’:
core/core.c:185: warning: implicit declaration of function ‘net_driverlist_foreach’
core/core.c:185: error: ‘initialised_drivers’ undeclared (first use in this function)
core/core.c: At top level:
core/core.c:193: warning: no previous prototype for ‘net_shutdown’
core/core.c: In function ‘net_shutdown’:
core/core.c:201: error: ‘detected_drivers’ undeclared (first use in this function)
core/core.c:202: error: ‘temp_detected_list’ undeclared (first use in this function)
core/core.c:203: error: ‘initialised_drivers’ undeclared (first use in this function)
core/core.c:204: error: ‘net_drivers_all’ undeclared (first use in this function)
make[1]: *** [core/core.o] Error 1
make[1]: Leaving directory `/home/jaredtbrees/Downloads/SCHOOL/libnet/lib'
make: *** [lib] Error 2
Okay, I'm stuck again!
 
Old 11-15-2008, 03:56 PM   #8
computer_freak_8
Member
 
Registered: Jul 2008
Location: Iowa
Distribution: Ubuntu and Fedora, mostly
Posts: 103

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by i92guboj View Post
I will try once I finish some compiling that I am doing right now and let you know if I find something.
Okay, thanks. As I mentioned in the first original post, I won't be able to try it "for real" until Monday, since it's a school computer. I'm doing this all on my Ubuntu box as of right now. I will take the files used to compile everything with me on my flash drive, so I won't have to re-download everything while doing "guess and check" at school. Also, I made an edit about the same time you posted, and since then I added another post in the thread (in addition to this one). The edit is the second half of the post made right before yours.
 
Old 11-23-2008, 11:48 AM   #9
computer_freak_8
Member
 
Registered: Jul 2008
Location: Iowa
Distribution: Ubuntu and Fedora, mostly
Posts: 103

Original Poster
Rep: Reputation: 15
Post Update (3)

Still getting some error messages; can't remember what they were. Installed a bunch of crap from the SuSE Enterprise Linux CDs - my teacher is fine with me using RPMs now; she just wanted to be sure that I know how to install things from source if I ever need to.

I'll try to remember to post back this Monday.


Thanks again,
computer_freak_8
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need to get rid of my old kbfx files to install new version - "access denied" Onewheelinweirdo Linux - Software 5 03-28-2007 09:04 AM
From the "Who Cares" Dept: You can install Vista full version from the upgrade DVD rickh General 5 02-06-2007 10:02 AM
Open Source "Version Tracker Pro" work-alike skylark General 0 07-10-2005 10:13 PM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 03:32 PM
Can you explain the difference between "Free Software (GNU)" and "Open Source"? vharishankar General 5 03-03-2005 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration