[SERVER-5527] Can't build mongosniff on Ubuntu Created: 05/Apr/12  Updated: 25/Feb/13  Resolved: 05/Apr/12

Status: Closed
Project: Core Server
Component/s: Build, Tools
Affects Version/s: 2.1.0
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Randolph Tan Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 11.01


Issue Links:
Related
related to DOCS-1157 Clarify build instructions on: "refer... Closed
Operating System: ALL
Participants:

 Description   

Tried following the instructions from the docs:

http://www.mongodb.org/display/DOCS/mongosniff#mongosniff-Building

But still can't build:

scons mongosniff
scons: Reading SConscript files ...
scons version: 2.0.1
python version: 2 7 2 'final' 0
Checking whether the C++ compiler works(cached) yes
Checking for C library stdc++... (cached) yes
Checking for C++ header file execinfo.h... (cached) yes
Checking for C library pcap... (cached) no     <-------------------- it doesn't seem to be able to locate the library
Checking for C library wpcap... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
scons: *** Do not know how to make File target `mongosniff' (/home/ren/mongo/mongosniff).  Stop.
scons: building terminated because of errors.



 Comments   
Comment by Randolph Tan [ 04/May/12 ]

What Eric meant by clean is not the `scons -c` command, but removing the .scons and .sconf_temp directory.

Comment by Emanuel Buzek [ 04/May/12 ]

I ran into the exact same problem. Full clean did not help, however, static build worked:
scons --static=STATIC mongosniff

Comment by Eric Milkie [ 05/Apr/12 ]

scons was caching the fact that the library was missing. apparently, you need to do a full clean build after installing the library; you can't simply run scons again.

Generated at Thu Feb 08 03:09:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.