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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-14-2008, 06:55 PM
|
#1
|
Member
Registered: Jul 2008
Location: Iowa
Distribution: Ubuntu and Fedora, mostly
Posts: 103
Rep:
|
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
|
|
|
11-15-2008, 12:06 PM
|
#2
|
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766
Rep:
|
See if you can install the src-rpm.
otherwise get the source and compile it.
#./configure --help
|
|
|
11-15-2008, 12:55 PM
|
#3
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Quote:
Originally Posted by computer_freak_8
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.
|
|
|
11-15-2008, 02:54 PM
|
#4
|
Member
Registered: Jul 2008
Location: Iowa
Distribution: Ubuntu and Fedora, mostly
Posts: 103
Original Poster
Rep:
|
Quote:
Originally Posted by i92guboj
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: - Download Dsniff from http://monkey.org/~dugsong/dsniff/
- Extract using GUI archive manager
- Change to the extracted directory
- Error returned:
Quote:
checking for Berkeley DB with 1.85 compatibility... configure: error: Berkeley DB with 1.85 compatibility not found
|
- Download from http://www.oracle.com/technology/sof.../db/index.html Berkeley DB 4.7.25NC.tar.gz , without encryption (13M)
- Extract with the GUI archive manager
- Change to the extracted directory
- Open the "README" file. It says:
Quote:
To view release and
installation documentation, load the distribution file docs/index.html
into your web browser.
|
- 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.
|
- Click the UNIX/POSIX link (there is no Linux, and all the rest are not even close, as far as I know)
- Read this page
- Change to the "build_unix" directory
- 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)
- Ran "make"
- Ran "make install"
- Same results as #s 4 & 5 in the first list
- Saw possible option to solve problem: "--enable-compat185 Build DB 1.85 compatibility API."
- Ran "../dist/configure --enable-compat185"
- Ran "make"
- Ran "sudo make install"
- Same results as #s 4 & 5 in the first list
- Ran "./configure --help" (continuing from the above step)
- Saw line "--with-db=DIR use Berkeley DB (with --enable-compat185) in DIR"
- Looked at output of the Berkeley DB install
- Saw
Quote:
Libraries have been installed in:
/usr/local/BerkeleyDB.4.7/lib
|
- Ran "./configure --with-db=/usr/local/BerkeleyDB.4.7/lib"
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?
|
|
|
11-15-2008, 03:30 PM
|
#5
|
Member
Registered: Jul 2008
Location: Iowa
Distribution: Ubuntu and Fedora, mostly
Posts: 103
Original Poster
Rep:
|
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
|
|
|
11-15-2008, 03:38 PM
|
#6
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
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.
|
|
|
11-15-2008, 03:49 PM
|
#7
|
Member
Registered: Jul 2008
Location: Iowa
Distribution: Ubuntu and Fedora, mostly
Posts: 103
Original Poster
Rep:
|
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!
|
|
|
11-15-2008, 03:56 PM
|
#8
|
Member
Registered: Jul 2008
Location: Iowa
Distribution: Ubuntu and Fedora, mostly
Posts: 103
Original Poster
Rep:
|
Quote:
Originally Posted by i92guboj
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.
|
|
|
11-23-2008, 11:48 AM
|
#9
|
Member
Registered: Jul 2008
Location: Iowa
Distribution: Ubuntu and Fedora, mostly
Posts: 103
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 11:07 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|