Building mongo-perf

298 views
Skip to first unread message

Brian Carpio

unread,
May 1, 2012, 3:34:04 PM5/1/12
to mongodb-user
Hi,

I'm currently trying to build mono-perf using this guide here:
http://blog.beyondfog.com/mongodb-how-to-benchmark-and-test-performance-using-mongo-perf/#.T6AgY8Uvnrc

I have build mongo from source using scons and everything went fine
but when I try and build mono-perf using scons I get the following
error maybe this guide is missing a step. Also when I check /usr/local/
include/mongo I don't see the platform directory, it does exist in my
~/Projects/mongo/src/mongo/platform directory.

~/Projects/mongo-perf$ sudo scons
scons: Reading SConscript files ...
Checking for C library mongoclient... yes
Checking for C library boost_thread-mt... yes
Checking for C library boost_filesystem-mt... yes
Checking for C library boost_program_options-mt... yes
Checking for C library boost_system-mt... yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o benchmark.o -c benchmark.cpp
In file included from /usr/local/include/mongo/client/dbclient.h:30,
from benchmark.cpp:1:
/usr/local/include/pch.h:28:34: error: mongo/platform/basic.h: No such
file or directory
In file included from /usr/local/include/pch.h:76,
from /usr/local/include/mongo/client/dbclient.h:30,
from benchmark.cpp:1:
/usr/local/include/mongo/util/assert_util.h:24:37: error: mongo/
platform/compiler.h: No such file or directory
In file included from /usr/local/include/pch.h:76,
from /usr/local/include/mongo/client/dbclient.h:30,
from benchmark.cpp:1:
/usr/local/include/mongo/util/assert_util.h:150: error: expected
constructor, destructor, or type conversion before 'void'
/usr/local/include/mongo/util/assert_util.h:152: error: expected
constructor, destructor, or type conversion before 'void'
/usr/local/include/mongo/util/assert_util.h:157: error: expected
constructor, destructor, or type conversion before 'void'
/usr/local/include/mongo/util/assert_util.h:158: error: expected
constructor, destructor, or type conversion before 'void'
/usr/local/include/mongo/util/assert_util.h:163: error: expected
constructor, destructor, or type conversion before 'void'
/usr/local/include/mongo/util/assert_util.h:165: error: expected
constructor, destructor, or type conversion before 'void'
/usr/local/include/mongo/util/assert_util.h:166: error: expected
constructor, destructor, or type conversion before 'void'
/usr/local/include/mongo/util/assert_util.h: In function 'void
mongo::fassert(int, bool)':
/usr/local/include/mongo/util/assert_util.h:175: error:
'fassertFailed' was not declared in this scope
In file included from /usr/local/include/pch.h:76,
from /usr/local/include/mongo/client/dbclient.h:30,
from benchmark.cpp:1:
/usr/local/include/mongo/util/assert_util.h: At global scope:
/usr/local/include/mongo/util/assert_util.h:219: error: expected
constructor, destructor, or type conversion before 'void'
/usr/local/include/mongo/util/assert_util.h: In function 'void
mongo::assertStreamGood(unsigned int, std::string, std::ios&)':
/usr/local/include/mongo/util/assert_util.h:222: error:
'streamNotGood' was not declared in this scope
In file included from /usr/local/include/mongo/util/goodies.h:24,
from /usr/local/include/pch.h:78,
from /usr/local/include/mongo/client/dbclient.h:30,
from benchmark.cpp:1:
/usr/local/include/mongo/bson/util/misc.h: In member function 'time_t
mongo::Date_t::toTimeT() const':
/usr/local/include/mongo/bson/util/misc.h:93: error: 'verifyFailed' is
not a member of 'mongo'
/usr/local/include/mongo/bson/util/misc.h:94: error: 'verifyFailed' is
not a member of 'mongo'
In file included from /usr/local/include/mongo/util/goodies.h:25,
from /usr/local/include/pch.h:78,
from /usr/local/include/mongo/client/dbclient.h:30,
from benchmark.cpp:1:
/usr/local/include/mongo/util/concurrency/mutex.h: In constructor
'mongo::SimpleMutex::SimpleMutex(const char*)':
/usr/local/include/mongo/util/concurrency/mutex.h:151: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/util/concurrency/mutex.h: In destructor
'mongo::SimpleMutex::~SimpleMutex()':
/usr/local/include/mongo/util/concurrency/mutex.h:154: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/util/concurrency/mutex.h: In member function
'void mongo::SimpleMutex::lock()':
/usr/local/include/mongo/util/concurrency/mutex.h:158: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/util/concurrency/mutex.h: In member function
'void mongo::SimpleMutex::unlock()':
/usr/local/include/mongo/util/concurrency/mutex.h:159: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/util/concurrency/mutex.h: In destructor
'mongo::RecursiveMutex::scoped_lock::~scoped_lock()':
/usr/local/include/mongo/util/concurrency/mutex.h:191: error:
'verifyFailed' is not a member of 'mongo'
In file included from /usr/local/include/pch.h:78,
from /usr/local/include/mongo/client/dbclient.h:30,
from benchmark.cpp:1:
/usr/local/include/mongo/util/goodies.h: In function 'void
mongo::strcpy_s(char*, unsigned int, const char*)':
/usr/local/include/mongo/util/goodies.h:122: error: 'verifyFailed' is
not a member of 'mongo'
In file included from /usr/local/include/mongo/util/log.h:28,
from /usr/local/include/pch.h:80,
from /usr/local/include/mongo/client/dbclient.h:30,
from benchmark.cpp:1:
/usr/local/include/mongo/bson/util/builder.h: In member function 'void
mongo::StringBuilderImpl<Allocator>::appendDoubleNice(double)':
/usr/local/include/mongo/bson/util/builder.h:304: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/bson/util/builder.h:305: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/bson/util/builder.h: In member function
'mongo::StringBuilderImpl<Allocator>&
mongo::StringBuilderImpl<Allocator>::SBNUM(T, int, const char*)':
/usr/local/include/mongo/bson/util/builder.h:338: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/bson/util/builder.h:339: error:
'verifyFailed' is not a member of 'mongo'
In file included from /usr/local/include/mongo/db/../bson/oid.h:20,
from /usr/local/include/mongo/db/jsobj.h:35,
from /usr/local/include/mongo/client/
dbclientinterface.h:26,
from /usr/local/include/mongo/client/connpool.h:23,
from /usr/local/include/mongo/client/dbclient.h:32,
from benchmark.cpp:1:
/usr/local/include/mongo/db/../bson/../util/hex.h: In function 'int
mongo::fromHex(char)':
/usr/local/include/mongo/db/../bson/../util/hex.h:29: error:
'verifyFailed' is not a member of 'mongo'
In file included from /usr/local/include/mongo/db/jsobj.h:36,
from /usr/local/include/mongo/client/
dbclientinterface.h:26,
from /usr/local/include/mongo/client/connpool.h:23,
from /usr/local/include/mongo/client/dbclient.h:32,
from benchmark.cpp:1:
/usr/local/include/mongo/db/../bson/bsonelement.h: In member function
'const char* mongo::BSONElement::binData(int&) const':
/usr/local/include/mongo/db/../bson/bsonelement.h:265: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/db/../bson/bsonelement.h: In member function
'mongo::BinDataType mongo::BSONElement::binDataType() const':
/usr/local/include/mongo/db/../bson/bsonelement.h:284: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/db/../bson/bsonelement.h: In member function
'const char* mongo::BSONElement::regex() const':
/usr/local/include/mongo/db/../bson/bsonelement.h:291: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/db/../bson/bsonelement.h: In member function
'const char* mongo::BSONElement::dbrefNS() const':
/usr/local/include/mongo/db/../bson/bsonelement.h:365: error:
'uasserted' is not a member of 'mongo'
/usr/local/include/mongo/db/../bson/bsonelement.h: In member function
'const mongo::OID& mongo::BSONElement::dbrefOID() const':
/usr/local/include/mongo/db/../bson/bsonelement.h:370: error:
'uasserted' is not a member of 'mongo'
/usr/local/include/mongo/db/../bson/bsonelement.h: In constructor
'mongo::BSONElement::BSONElement(const char*, int)':
/usr/local/include/mongo/db/../bson/bsonelement.h:395: error:
'uasserted' is not a member of 'mongo'
/usr/local/include/mongo/db/../bson/bsonelement.h: In member function
'const mongo::BSONElement& mongo::BSONElement::chk(int) const':
/usr/local/include/mongo/db/../bson/bsonelement.h:432: error: cannot
convert 'std::string' to 'const char*' for argument '2' to 'void
mongo::msgasserted(int, const char*)'
/usr/local/include/mongo/db/../bson/bsonelement.h: In member function
'int mongo::BSONElement::canonicalType() const':
/usr/local/include/mongo/db/../bson/bsonelement.h:483: error:
'verifyFailed' is not a member of 'mongo'
In file included from /usr/local/include/mongo/db/../bson/bsonobj.h:
25,
from /usr/local/include/mongo/db/jsobj.h:37,
from /usr/local/include/mongo/client/
dbclientinterface.h:26,
from /usr/local/include/mongo/client/connpool.h:23,
from /usr/local/include/mongo/client/dbclient.h:32,
from benchmark.cpp:1:
/usr/local/include/mongo/db/../bson/util/atomic_int.h: At global
scope:
/usr/local/include/mongo/db/../bson/util/atomic_int.h:35: error:
expected unqualified-id before numeric constant
/usr/local/include/mongo/db/../bson/util/atomic_int.h:35: error:
expected ')' before numeric constant
In file included from /usr/local/include/mongo/db/jsobj.h:37,
from /usr/local/include/mongo/client/
dbclientinterface.h:26,
from /usr/local/include/mongo/client/connpool.h:23,
from /usr/local/include/mongo/client/dbclient.h:32,
from benchmark.cpp:1:
/usr/local/include/mongo/db/../bson/bsonobj.h:442: error: expected '}'
before end of line
/usr/local/include/mongo/db/../bson/bsonobj.h:442: error: expected
declaration before end of line
scons: *** [benchmark.o] Error 1
scons: building terminated because of errors.

Eliot Horowitz

unread,
May 1, 2012, 10:31:58 PM5/1/12
to mongod...@googlegroups.com
How did you install the c++ drivers?
Something seems a bit messed up with that install.
> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>

Brian Carpio

unread,
May 2, 2012, 11:32:57 AM5/2/12
to mongodb-user
I am running Ubuntu 10.04 (Lucid) and installed gcc and g++ using apt-
get install

root@brianc-linux:~# dpkg -l | grep gcc
ii gcc
4:4.4.3-1ubuntu1 The GNU C compiler
ii gcc-4.1
4.1.2-27ubuntu1 The GNU C compiler
ii gcc-4.1-base
4.1.2-27ubuntu1 The GNU Compiler
Collection (base package)
ii gcc-4.4
4.4.3-4ubuntu5.1 The GNU C compiler
ii gcc-4.4-base
4.4.3-4ubuntu5.1 The GNU Compiler
Collection (base package)
ii lib32gcc1
1:4.4.3-4ubuntu5.1 GCC support library
(32 bit Version)
ii libgcc1
1:4.4.3-4ubuntu5.1 GCC support library

root@brianc-linux:~# dpkg -l | grep g++
ii g++
4:4.4.3-1ubuntu1 The GNU C++ compiler
ii g++-4.1
4.1.2-27ubuntu1 The GNU C++ compiler
ii g++-4.4
4.4.3-4ubuntu5.1 The GNU C++ compiler



On May 1, 8:31 pm, Eliot Horowitz <el...@10gen.com> wrote:
> How did you install the c++ drivers?
> Something seems a bit messed up with that install.
>
>
>
>
>
>
>
> On Tue, May 1, 2012 at 3:34 PM, Brian Carpio <bcar...@thetek.net> wrote:
> > Hi,
>
> > I'm currently trying to build mono-perf using this guide here:
> >http://blog.beyondfog.com/mongodb-how-to-benchmark-and-test-performan...
> >          ...
>
> read more »

Tad Marshall

unread,
May 4, 2012, 9:52:38 AM5/4/12
to mongod...@googlegroups.com
We've been refactoring the C++ driver and are still tweaking things a bit ... I think your issue was just fixed yesterday -- https://jira.mongodb.org/browse/SERVER-5748 .  Can you update your mongo install and see if the problem is still there?  The bug mentions platform.h specifically.

Brian Carpio

unread,
May 4, 2012, 12:03:28 PM5/4/12
to mongodb-user
Hey Tad,

Thanks for the update. I cloned the git repo again and rebuilt mongo
but I still appear to be having an issue, although its a different
issue now:

bcarpio@brianc-linux:~/Projects/mongo-perf$ sudo scons
scons: Reading SConscript files ...
Checking for C library mongoclient... (cached) yes
Checking for C library boost_thread-mt... (cached) yes
Checking for C library boost_filesystem-mt... (cached) yes
Checking for C library boost_program_options-mt... (cached) yes
Checking for C library boost_system-mt... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o benchmark.o -c benchmark.cpp
g++ -o benchmark benchmark.o -lmongoclient -lboost_thread-mt -
lboost_filesystem-mt -lboost_program_options-mt -lboost_system-mt
/usr/local/lib64/libmongoclient.a(dbclient_rs.o): In function
`__static_initialization_and_destruction_0':
/home/bcarpio/Projects/mongo/src/third_party/boost/boost/system/
error_code.hpp:214: undefined reference to
`boost::system::generic_category()'
/home/bcarpio/Projects/mongo/src/third_party/boost/boost/system/
error_code.hpp:215: undefined reference to
`boost::system::generic_category()'
/home/bcarpio/Projects/mongo/src/third_party/boost/boost/system/
error_code.hpp:216: undefined reference to
`boost::system::system_category()'
/usr/local/lib64/libmongoclient.a(dbclientcursor.o): In function
`__static_initialization_and_destruction_0':
/home/bcarpio/Projects/mongo/src/third_party/boost/boost/system/
error_code.hpp:214: undefined reference to
`boost::system::generic_category()'
/home/bcarpio/Projects/mongo/src/third_party/boost/boost/system/
error_code.hpp:215: undefined reference to
`boost::system::generic_category()'
/home/bcarpio/Projects/mongo/src/third_party/boost/boost/system/
error_code.hpp:216: undefined reference to
`boost::system::system_category()'
/usr/local/lib64/libmongoclient.a(syncclusterconnection.o): In
function `__static_initialization_and_destruction_0':
/home/bcarpio/Projects/mongo/src/third_party/boost/boost/system/
error_code.hpp:214: undefined reference to
`boost::system::generic_category()'
/home/bcarpio/Projects/mongo/src/third_party/boost/boost/system/
error_code.hpp:215: undefined reference to
`boost::system::generic_category()'
/home/bcarpio/Projects/mongo/src/third_party/boost/boost/system/
error_code.hpp:216: undefined reference to
`boost::system::system_category()'
/usr/local/lib64/libmongoclient.a(log.o): In function
`__static_initialization_and_destruction_0':
/home/bcarpio/Projects/mongo/src/third_party/boost/boost/system/
error_code.hpp:214: undefined reference to
`boost::system::generic_category()'
/home/bcarpio/Projects/mongo/src/third_party/boost/boost/system/
error_code.hpp:215: undefined reference to
`boost::system::generic_category()'
/home/bcarpio/Projects/mongo/src/third_party/boost/boost/system/
error_code.hpp:216: undefined reference to
`boost::system::system_category()'
/usr/local/lib64/libmongoclient.a(log.o): In function `error_code':
/home/bcarpio/Projects/mongo/src/third_party/boost/boost/system/
error_code.hpp:315: undefined reference to
`boost::system::system_category()'
/usr/local/lib64/libmongoclient.a(log.o): In function
`boost::enable_if<boost::filesystem2::is_basic_path<boost::filesystem2::basic_path<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
boost::filesystem2::path_traits> >, bool>::type
boost::filesystem2::is_directory<boost::filesystem2::basic_path<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
boost::filesystem2::path_traits>
>(boost::filesystem2::basic_path<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
boost::filesystem2::path_traits> const&)':
/home/bcarpio/Projects/mongo/src/third_party/boost/boost/filesystem/v2/
operations.hpp:304: undefined reference to
`boost::filesystem2::detail::status_api(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
boost::system::error_code&)'
/usr/local/lib64/libmongoclient.a(log.o): In function `error_code':
/home/bcarpio/Projects/mongo/src/third_party/boost/boost/system/
error_code.hpp:315: undefined reference to
`boost::system::system_category()'
/usr/local/lib64/libmongoclient.a(log.o): In function
`boost::enable_if<boost::filesystem2::is_basic_path<boost::filesystem2::basic_path<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
boost::filesystem2::path_traits> >, bool>::type
boost::filesystem2::is_regular<boost::filesystem2::basic_path<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
boost::filesystem2::path_traits>
>(boost::filesystem2::basic_path<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
boost::filesystem2::path_traits> const&)':
/home/bcarpio/Projects/mongo/src/third_party/boost/boost/filesystem/v2/
operations.hpp:325: undefined reference to
`boost::filesystem2::detail::status_api(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
boost::system::error_code&)'
/usr/local/lib64/libmongoclient.a(log.o): In function `error_code':
/home/bcarpio/Projects/mongo/src/third_party/boost/boost/system/
error_code.hpp:315: undefined reference to
`boost::system::system_category()'
/usr/local/lib64/libmongoclient.a(log.o): In function
`boost::enable_if<boost::filesystem2::is_basic_path<boost::filesystem2::basic_path<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
boost::filesystem2::path_traits> >, bool>::type
boost::filesystem2::exists<boost::filesystem2::basic_path<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
boost::filesystem2::path_traits>
>(boost::filesystem2::basic_path<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
boost::filesystem2::path_traits> const&)':
/home/bcarpio/Projects/mongo/src/third_party/boost/boost/filesystem/v2/
operations.hpp:294: undefined reference to
`boost::filesystem2::detail::status_api(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
boost::system::error_code&)'
collect2: ld returned 1 exit status
scons: *** [benchmark] Error 1
scons: building terminated because of errors.
bcarpio@brianc-linux:~/Projects/mongo-perf$

On May 4, 7:52 am, Tad Marshall <t...@10gen.com> wrote:
> We've been refactoring the C++ driver and are still tweaking things a bit
> ... I think your issue was just fixed yesterday --https://jira.mongodb.org/browse/SERVER-5748.  Can you update your mongo
> ...
>
> read more »

Tad Marshall

unread,
May 4, 2012, 3:10:59 PM5/4/12
to mongod...@googlegroups.com
Sorry for the false start ... I'm also having trouble building mongo-perf and I spoke to the author, who will look at it soon.  So, it's not you, the code is in flux and mongo-perf is not quite sync-ed up with the most recent changes in the MongoDB C++ driver.  I'll post an update when I get the "all clear".

Brian Carpio

unread,
May 4, 2012, 3:45:04 PM5/4/12
to mongodb-user
Thanks for your help Tad! I'll look forward to your update.

Brian Carpio

On May 4, 1:10 pm, Tad Marshall <t...@10gen.com> wrote:
> Sorry for the false start ... I'm also having trouble building mongo-perf
> and I spoke to the author, who will look at it soon.  So, it's not you, the
> code is in flux and mongo-perf is not quite sync-ed up with the most recent
> changes in the MongoDB C++ driver.  I'll post an update when I get the "all
> clear".
>
>
>
>
>
>
>
> On Tuesday, May 1, 2012 3:34:04 PM UTC-4, Brian Carpio wrote:
>
> > Hi,
>
> > I'm currently trying to build mono-perf using this guide here:
>
> >http://blog.beyondfog.com/mongodb-how-to-benchmark-and-test-performan...
> ...
>
> read more »

Mathias Stearn

unread,
May 7, 2012, 2:26:04 PM5/7/12
to mongod...@googlegroups.com
I just pushed some build fixes to mongo-perf. Please refetch and recompile. Note that it is currently only tested building against the stable (2.0) branch of the driver so I'd suggest using that to compile. Lest me know if you are still getting errors.

Brian Carpio

unread,
May 9, 2012, 12:14:30 PM5/9/12
to mongodb-user
Hey Mathias,

I have done a git clone on:

git clone https://github.com/mongodb/mongo.git

I then did a git checkout on remotes/origin/v2.0:

git checkout remotes/origin/v2.0

Then I tried to build mongodb:

sudo scons $(test $(uname) = "Darwin" && echo -n --prefix=/opt/local)
--full all

But the build fails:

third_party/js-1.7/jsprf.c: In function 'dosprintf':
third_party/js-1.7/jsprf.c:952: warning: pointer targets in passing
argument 1 of 'js_OneUcs4ToUtf8Char' differ in signedness
third_party/js-1.7/jsstr.h:496: note: expected 'uint8 *' but argument
is of type 'char *'
gcc -o third_party/js-1.7/jsregexp.o -c -fPIC -fno-strict-aliasing -
ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -
fno-builtin-memcmp -O3 -D_SCONS -DMONGO_EXPOSE_MACROS -
D_FILE_OFFSET_BITS=64 -DXP_UNIX -DJSFILE -DEXPORT_JS_API -
DJS_C_STRINGS_ARE_UTF8 -DHAVE_VA_COPY -DVA_COPY=va_copy -Ithird_party/
js-1.7 -Ithird_party/pcre-7.4 -I. third_party/js-1.7/jsregexp.c
abgcc -o third_party/js-1.7/jsscan.o -c -fPIC -fno-strict-aliasing -
ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -
fno-builtin-memcmp -O3 -D_SCONS -DMONGO_EXPOSE_MACROS -
D_FILE_OFFSET_BITS=64 -DXP_UNIX -DJSFILE -DEXPORT_JS_API -
DJS_C_STRINGS_ARE_UTF8 -DHAVE_VA_COPY -DVA_COPY=va_copy -Ithird_party/
js-1.7 -Ithird_party/pcre-7.4 -I. third_party/js-1.7/jsscan.c
third_party/js-1.7/jsscan.c:112:22: error: jsautokw.h: No such file or
directory
third_party/js-1.7/jsscan.c: In function 'FindKeyword':
third_party/js-1.7/jsscan.c:122: warning: label 'test_guess' defined
but not used
third_party/js-1.7/jsscan.c:119: warning: label 'got_match' defined
but not used
scons: *** [third_party/js-1.7/jsscan.o] Error 1
scons: building terminated because of errors.

Maybe my problem is using git and I should download a released tgz
file from the mongodb website for 2.0? I am going to try master and
then try and compile mongo-perf and see if that gets me anywhere.

This is somewhat important I get running because I want/need to do
some performance analysis on EC2 vs my current VMware infrastructure
to see what the performance ratio is going to be. I know EC2 is going
to be slower then my VMware environment but I'd like to come up with a
good ratio with regard to shards in EC2 vs VMware so we know what our
EC2 footprint is going to be.

Thanks,
Brian Carpio
> ...
>
> read more »

Brian Carpio

unread,
May 9, 2012, 1:28:37 PM5/9/12
to mongodb-user
I have successfully built master (but I know you said to build 2.0)
and get the same error as before:

bcarpio@brianc-linux:~/Projects/mongo-perf$ sudo scons
scons: Reading SConscript files ...
Checking for C library mongoclient... yes
Checking for C library boost_thread_mt... no
Checking for C library boost_thread... yes
Checking for C library boost_filesystem_mt... no
Checking for C library boost_filesystem... yes
Checking for C library boost_program_options_mt... no
Checking for C library boost_program_options... yes
Checking for C library boost_system_mt... no
Checking for C library boost_system... yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o benchmark.o -c -pthread -O3 -g benchmark.cpp
In file included from benchmark.cpp:5:
/usr/local/include/mongo/client/dbclient.h:25:2: error: #error
dbclient.h is for C++ driver consumer use only
scons: *** [benchmark.o] Error 1
scons: building terminated because of errors.
bcarpio@brianc-linux:~/Projects/mongo-perf$

Let me know if I am doing something wrong here..

Thanks,
Brian


On May 9, 10:14 am, Brian Carpio <bcar...@thetek.net> wrote:
> Hey Mathias,
>
> I have done a git clone on:
>
>  git clonehttps://github.com/mongodb/mongo.git
> > > > >                  from...
>
> read more »

Mathias Stearn

unread,
May 9, 2012, 4:15:40 PM5/9/12
to mongod...@googlegroups.com
I would suggest just downloading the 2.0 driver from http://dl.mongodb.org/dl/cxx-driver/. It doesn't depend on JS so you shouldn't get the errors you did last time.
Reply all
Reply to author
Forward
0 new messages