EiTkoCaT | 2 Jul 02:14 2011
Picon

Compiling on Linux problem

Hey,

OK I have a problem. I've downloaded the c++ driver from
http://dl.mongodb.org/dl/cxx-driver. I'm following the
http://www.mongodb.org/pages/viewpage.action?pageId=21266598 but when
I type "scons" it gives me:
/mongo-cxx-driver-v1.8# scons
-bash: scons: command not found

What to do?

Thanks.

Eliot Horowitz | 2 Jul 02:15 2011
Picon

Re: Compiling on Linux problem

You need to install scons.
If this is linux, would be either:
apt-get install scons
or
yum install scons

On Fri, Jul 1, 2011 at 8:14 PM, EiTkoCaT <eitkocat@...> wrote:
> Hey,
>
> OK I have a problem. I've downloaded the c++ driver from
> http://dl.mongodb.org/dl/cxx-driver. I'm following the
> http://www.mongodb.org/pages/viewpage.action?pageId=21266598 but when
> I type "scons" it gives me:
> /mongo-cxx-driver-v1.8# scons
> -bash: scons: command not found
>
> What to do?
>
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongodb-user@...
> To unsubscribe from this group, send email to mongodb-user+unsubscribe@...
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>

(Continue reading)

EiTkoCaT | 2 Jul 02:24 2011
Picon

Re: Compiling on Linux problem

OK but now it gives me error..:

In file included from mongo/client/../db/cursor.h:23,
                 from mongo/client/../db/pdfile.h:367,
                 from mongo/client/../db/db.h:22,
                 from mongo/client/../db/dbhelpers.h:27,
                 from mongo/client/clientOnly.cpp:20:
mongo/client/../db/matcher.h:24:21: error: pcrecpp.h: No such file or
directory
In file included from mongo/client/../db/cursor.h:23,
                 from mongo/client/../db/pdfile.h:367,
                 from mongo/client/../db/db.h:22,
                 from mongo/client/../db/dbhelpers.h:27,
                 from mongo/client/clientOnly.cpp:20:
mongo/client/../db/matcher.h:39: error: 'pcrecpp' was not declared in
this scope
mongo/client/../db/matcher.h:39: error: template argument 1 is invalid
scons: *** [mongo/client/clientOnly.o] Error 1
scons: building terminated because of errors.

On Jul 2, 3:15 am, Eliot Horowitz <eliothorow...@...> wrote:
> You need to install scons.
> If this is linux, would be either:
> apt-get install scons
> or
> yum install scons
>
>
>
>
(Continue reading)

Eliot Horowitz | 2 Jul 02:26 2011
Picon

Re: Re: Compiling on Linux problem

You should follow the instructions here for setting  up your environment:
http://www.mongodb.org/display/DOCS/Building+for+Linux

On Fri, Jul 1, 2011 at 8:24 PM, EiTkoCaT <eitkocat@...> wrote:
> OK but now it gives me error..:
>
> In file included from mongo/client/../db/cursor.h:23,
>                 from mongo/client/../db/pdfile.h:367,
>                 from mongo/client/../db/db.h:22,
>                 from mongo/client/../db/dbhelpers.h:27,
>                 from mongo/client/clientOnly.cpp:20:
> mongo/client/../db/matcher.h:24:21: error: pcrecpp.h: No such file or
> directory
> In file included from mongo/client/../db/cursor.h:23,
>                 from mongo/client/../db/pdfile.h:367,
>                 from mongo/client/../db/db.h:22,
>                 from mongo/client/../db/dbhelpers.h:27,
>                 from mongo/client/clientOnly.cpp:20:
> mongo/client/../db/matcher.h:39: error: 'pcrecpp' was not declared in
> this scope
> mongo/client/../db/matcher.h:39: error: template argument 1 is invalid
> scons: *** [mongo/client/clientOnly.o] Error 1
> scons: building terminated because of errors.
>
>
> On Jul 2, 3:15 am, Eliot Horowitz <eliothorow...@...> wrote:
>> You need to install scons.
>> If this is linux, would be either:
>> apt-get install scons
>> or
(Continue reading)

EiTkoCaT | 2 Jul 15:26 2011
Picon

Re: Compiling on Linux problem

OK I followed and installed all OK but when I try to compile it gives
me:
/usr/bin/ld: cannot find -lmongoclient
collect2: ld returned 1 exit status

On Jul 2, 3:26 am, Eliot Horowitz <eliothorow...@...> wrote:
> You should follow the instructions here for setting  up your environment:http://www.mongodb.org/display/DOCS/Building+for+Linux
>
>
>
>
>
>
>
> On Fri, Jul 1, 2011 at 8:24 PM, EiTkoCaT <eitko...@...> wrote:
> > OK but now it gives me error..:
>
> > In file included from mongo/client/../db/cursor.h:23,
> >                 from mongo/client/../db/pdfile.h:367,
> >                 from mongo/client/../db/db.h:22,
> >                 from mongo/client/../db/dbhelpers.h:27,
> >                 from mongo/client/clientOnly.cpp:20:
> > mongo/client/../db/matcher.h:24:21: error: pcrecpp.h: No such file or
> > directory
> > In file included from mongo/client/../db/cursor.h:23,
> >                 from mongo/client/../db/pdfile.h:367,
> >                 from mongo/client/../db/db.h:22,
> >                 from mongo/client/../db/dbhelpers.h:27,
> >                 from mongo/client/clientOnly.cpp:20:
> > mongo/client/../db/matcher.h:39: error: 'pcrecpp' was not declared in
(Continue reading)

EiTkoCaT | 2 Jul 15:30 2011
Picon

Re: Compiling on Linux problem

Also if I'm doing
g++ -I .. simple_client_demo.cpp mongo_client_lib.cpp -lboost_thread-
mt -lboost_filesystem

it gives me some lot of undefined reference to `mongo::OID::init()'
and other functions...

WTF? Thanks.

On Jul 2, 4:26 pm, EiTkoCaT <eitko...@...> wrote:
> OK I followed and installed all OK but when I try to compile it gives
> me:
> /usr/bin/ld: cannot find -lmongoclient
> collect2: ld returned 1 exit status
>
> On Jul 2, 3:26 am, Eliot Horowitz <eliothorow...@...> wrote:
>
>
>
>
>
>
>
> > You should follow the instructions here for setting  up your environment:http://www.mongodb.org/display/DOCS/Building+for+Linux
>
> > On Fri, Jul 1, 2011 at 8:24 PM, EiTkoCaT <eitko...@...> wrote:
> > > OK but now it gives me error..:
>
> > > In file included from mongo/client/../db/cursor.h:23,
> > >                 from mongo/client/../db/pdfile.h:367,
(Continue reading)

Eliot Horowitz | 2 Jul 15:37 2011
Picon

Re: Re: Compiling on Linux problem

You need -lmongoclient

On Jul 2, 2011 9:30 AM, "EiTkoCaT" <eitkocat-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Also if I'm doing
> g++ -I .. simple_client_demo.cpp mongo_client_lib.cpp -lboost_thread-
> mt -lboost_filesystem
>
> it gives me some lot of undefined reference to `mongo::OID::init()'
> and other functions...
>
> WTF? Thanks.
>
> On Jul 2, 4:26 pm, EiTkoCaT <eitko...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> OK I followed and installed all OK but when I try to compile it gives
>> me:
>> /usr/bin/ld: cannot find -lmongoclient
>> collect2: ld returned 1 exit status
>>
>> On Jul 2, 3:26 am, Eliot Horowitz <eliothorow...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>>
>>
>>
>>
>>
>>
>>
>> > You should follow the instructions here for setting  up your environment:http://www.mongodb.org/display/DOCS/Building+for+Linux
>>
>> > On Fri, Jul 1, 2011 at 8:24 PM, EiTkoCaT <eitko...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> > > OK but now it gives me error..:
>>
>> > > In file included from mongo/client/../db/cursor.h:23,
>> > >                 from mongo/client/../db/pdfile.h:367,
>> > >                 from mongo/client/../db/db.h:22,
>> > >                 from mongo/client/../db/dbhelpers.h:27,
>> > >                 from mongo/client/clientOnly.cpp:20:
>> > > mongo/client/../db/matcher.h:24:21: error: pcrecpp.h: No such file or
>> > > directory
>> > > In file included from mongo/client/../db/cursor.h:23,
>> > >                 from mongo/client/../db/pdfile.h:367,
>> > >                 from mongo/client/../db/db.h:22,
>> > >                 from mongo/client/../db/dbhelpers.h:27,
>> > >                 from mongo/client/clientOnly.cpp:20:
>> > > mongo/client/../db/matcher.h:39: error: 'pcrecpp' was not declared in
>> > > this scope
>> > > mongo/client/../db/matcher.h:39: error: template argument 1 is invalid
>> > > scons: *** [mongo/client/clientOnly.o] Error 1
>> > > scons: building terminated because of errors.
>>
>> > > On Jul 2, 3:15 am, Eliot Horowitz <eliothorow...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> > >> You need to install scons.
>> > >> If this is linux, would be either:
>> > >> apt-get install scons
>> > >> or
>> > >> yum install scons
>>
>> > >> On Fri, Jul 1, 2011 at 8:14 PM, EiTkoCaT <eitko...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> > >> > Hey,
>>
>> > >> > OK I have a problem. I've downloaded the c++ driver from
>> > >> >http://dl.mongodb.org/dl/cxx-driver. I'm following the
>> > >> >http://www.mongodb.org/pages/viewpage.action?pageId=21266598butwhen
>> > >> > I type "scons" it gives me:
>> > >> > /mongo-cxx-driver-v1.8# scons
>> > >> > -bash: scons: command not found
>>
>> > >> > What to do?
>>
>> > >> > Thanks.
>>
>> > >> > --
>> > >> > You received this message because you are subscribed to the Google Groups "mongodb-user" group.
>> > >> > To post to this group, send email to mongodb-user-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>> > >> > To unsubscribe from this group, send email to mongodb-user+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>> > >> > For more options, visit this group athttp://groups.google.com/group/mongodb-user?hl=en.
>>
>> > > --
>> > > You received this message because you are subscribed to the Google Groups "mongodb-user" group.
>> > > To post to this group, send email to mongodb-user-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>> > > To unsubscribe from this group, send email to mongodb-user+unsubscribe <at> googlegroups.com.
>> > > For more options, visit this group athttp://groups.google.com/group/mongodb-user?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongodb-user-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To unsubscribe from this group, send email to mongodb-user+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>

--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongodb-user-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to mongodb-user+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
EiTkoCaT | 2 Jul 15:44 2011
Picon

Re: Compiling on Linux problem

Gives me:
/usr/bin/ld: cannot find -lmongoclient
collect2: ld returned 1 exit status

On Jul 2, 4:37 pm, Eliot Horowitz <eliothorow...@...> wrote:
> You need -lmongoclient
> On Jul 2, 2011 9:30 AM, "EiTkoCaT" <eitko...@...> wrote:
>
>
>
>
>
>
>
> > Also if I'm doing
> > g++ -I .. simple_client_demo.cpp mongo_client_lib.cpp -lboost_thread-
> > mt -lboost_filesystem
>
> > it gives me some lot of undefined reference to `mongo::OID::init()'
> > and other functions...
>
> > WTF? Thanks.
>
> > On Jul 2, 4:26 pm, EiTkoCaT <eitko...@...> wrote:
> >> OK I followed and installed all OK but when I try to compile it gives
> >> me:
> >> /usr/bin/ld: cannot find -lmongoclient
> >> collect2: ld returned 1 exit status
>
> >> On Jul 2, 3:26 am, Eliot Horowitz <eliothorow...@...> wrote:
>
> >> > You should follow the instructions here for setting  up your
>
> environment:http://www.mongodb.org/display/DOCS/Building+for+Linux
>
>
>
>
>
>
>
>
>
> >> > On Fri, Jul 1, 2011 at 8:24 PM, EiTkoCaT <eitko...@...> wrote:
> >> > > OK but now it gives me error..:
>
> >> > > In file included from mongo/client/../db/cursor.h:23,
> >> > >                 from mongo/client/../db/pdfile.h:367,
> >> > >                 from mongo/client/../db/db.h:22,
> >> > >                 from mongo/client/../db/dbhelpers.h:27,
> >> > >                 from mongo/client/clientOnly.cpp:20:
> >> > > mongo/client/../db/matcher.h:24:21: error: pcrecpp.h: No such file or
> >> > > directory
> >> > > In file included from mongo/client/../db/cursor.h:23,
> >> > >                 from mongo/client/../db/pdfile.h:367,
> >> > >                 from mongo/client/../db/db.h:22,
> >> > >                 from mongo/client/../db/dbhelpers.h:27,
> >> > >                 from mongo/client/clientOnly.cpp:20:
> >> > > mongo/client/../db/matcher.h:39: error: 'pcrecpp' was not declared in
> >> > > this scope
> >> > > mongo/client/../db/matcher.h:39: error: template argument 1 is
> invalid
> >> > > scons: *** [mongo/client/clientOnly.o] Error 1
> >> > > scons: building terminated because of errors.
>
> >> > > On Jul 2, 3:15 am, Eliot Horowitz <eliothorow...@...> wrote:
> >> > >> You need to install scons.
> >> > >> If this is linux, would be either:
> >> > >> apt-get install scons
> >> > >> or
> >> > >> yum install scons
>
> >> > >> On Fri, Jul 1, 2011 at 8:14 PM, EiTkoCaT <eitko...@...> wrote:
> >> > >> > Hey,
>
> >> > >> > OK I have a problem. I've downloaded the c++ driver from
> >> > >> >http://dl.mongodb.org/dl/cxx-driver. I'm following the
> >> > >> >http://www.mongodb.org/pages/viewpage.action?pageId=21266598butwhen
> >> > >> > I type "scons" it gives me:
> >> > >> > /mongo-cxx-driver-v1.8# scons
> >> > >> > -bash: scons: command not found
>
> >> > >> > What to do?
>
> >> > >> > Thanks.
>
> >> > >> > --
> >> > >> > You received this message because you are subscribed to the Google
>
> Groups "mongodb-user" group.>> > >> > To post to this group, send email to mongodb-user@...
> .
> >> > >> > To unsubscribe from this group, send email to
>
> mongodb-user+unsubscribe@...>> > >> > For more
options, visit this group athttp://
>
> groups.google.com/group/mongodb-user?hl=en.
>
> >> > > --
> >> > > You received this message because you are subscribed to the Google
>
> Groups "mongodb-user" group.>> > > To post to this group, send email to mongodb-user@...
> >> > > To unsubscribe from this group, send email to
>
> mongodb-user+unsubscribe@...>> > > For more
options, visit this group athttp://
>
> groups.google.com/group/mongodb-user?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
>
> "mongodb-user" group.> To post to this group, send email to mongodb-user <at> googlegroups.com.
> > To unsubscribe from this group, send email to
>
> mongodb-user+unsubscribe@...> For more
options, visit this group at
>
> http://groups.google.com/group/mongodb-user?hl=en.
>
>
>
>
>
>
>
>

--

-- 
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongodb-user@...
To unsubscribe from this group, send email to mongodb-user+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.

EiTkoCaT | 2 Jul 17:05 2011
Picon

Re: Compiling on Linux problem

Well how can I solve that? It drives me crazy!

On Jul 2, 4:44 pm, EiTkoCaT <eitko...@...> wrote:
> Gives me:
> /usr/bin/ld: cannot find -lmongoclient
> collect2: ld returned 1 exit status
>
> On Jul 2, 4:37 pm, Eliot Horowitz <eliothorow...@...> wrote:
>
>
>
>
>
>
>
> > You need -lmongoclient
> > On Jul 2, 2011 9:30 AM, "EiTkoCaT" <eitko...@...> wrote:
>
> > > Also if I'm doing
> > > g++ -I .. simple_client_demo.cpp mongo_client_lib.cpp -lboost_thread-
> > > mt -lboost_filesystem
>
> > > it gives me some lot of undefined reference to `mongo::OID::init()'
> > > and other functions...
>
> > > WTF? Thanks.
>
> > > On Jul 2, 4:26 pm, EiTkoCaT <eitko...@...> wrote:
> > >> OK I followed and installed all OK but when I try to compile it gives
> > >> me:
> > >> /usr/bin/ld: cannot find -lmongoclient
> > >> collect2: ld returned 1 exit status
>
> > >> On Jul 2, 3:26 am, Eliot Horowitz <eliothorow...@...> wrote:
>
> > >> > You should follow the instructions here for setting  up your
>
> > environment:http://www.mongodb.org/display/DOCS/Building+for+Linux
>
> > >> > On Fri, Jul 1, 2011 at 8:24 PM, EiTkoCaT <eitko...@...> wrote:
> > >> > > OK but now it gives me error..:
>
> > >> > > In file included from mongo/client/../db/cursor.h:23,
> > >> > >                 from mongo/client/../db/pdfile.h:367,
> > >> > >                 from mongo/client/../db/db.h:22,
> > >> > >                 from mongo/client/../db/dbhelpers.h:27,
> > >> > >                 from mongo/client/clientOnly.cpp:20:
> > >> > > mongo/client/../db/matcher.h:24:21: error: pcrecpp.h: No such file or
> > >> > > directory
> > >> > > In file included from mongo/client/../db/cursor.h:23,
> > >> > >                 from mongo/client/../db/pdfile.h:367,
> > >> > >                 from mongo/client/../db/db.h:22,
> > >> > >                 from mongo/client/../db/dbhelpers.h:27,
> > >> > >                 from mongo/client/clientOnly.cpp:20:
> > >> > > mongo/client/../db/matcher.h:39: error: 'pcrecpp' was not declared in
> > >> > > this scope
> > >> > > mongo/client/../db/matcher.h:39: error: template argument 1 is
> > invalid
> > >> > > scons: *** [mongo/client/clientOnly.o] Error 1
> > >> > > scons: building terminated because of errors.
>
> > >> > > On Jul 2, 3:15 am, Eliot Horowitz <eliothorow...@...> wrote:
> > >> > >> You need to install scons.
> > >> > >> If this is linux, would be either:
> > >> > >> apt-get install scons
> > >> > >> or
> > >> > >> yum install scons
>
> > >> > >> On Fri, Jul 1, 2011 at 8:14 PM, EiTkoCaT <eitko...@...> wrote:
> > >> > >> > Hey,
>
> > >> > >> > OK I have a problem. I've downloaded the c++ driver from
> > >> > >> >http://dl.mongodb.org/dl/cxx-driver. I'm following the
> > >> > >> >http://www.mongodb.org/pages/viewpage.action?pageId=21266598butwhen
> > >> > >> > I type "scons" it gives me:
> > >> > >> > /mongo-cxx-driver-v1.8# scons
> > >> > >> > -bash: scons: command not found
>
> > >> > >> > What to do?
>
> > >> > >> > Thanks.
>
> > >> > >> > --
> > >> > >> > You received this message because you are subscribed to the Google
>
> > Groups "mongodb-user" group.>> > >> > To post to this group, send email to mongodb-user@...
> > .
> > >> > >> > To unsubscribe from this group, send email to
>
> > mongodb-user+unsubscribe@...>> > >> > For more
options, visit this group athttp://
>
> > groups.google.com/group/mongodb-user?hl=en.
>
> > >> > > --
> > >> > > You received this message because you are subscribed to the Google
>
> > Groups "mongodb-user" group.>> > > To post to this group, send email to mongodb-user@...
> > >> > > To unsubscribe from this group, send email to
>
> > mongodb-user+unsubscribe@...>> > > For more
options, visit this group athttp://
>
> > groups.google.com/group/mongodb-user?hl=en.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
>
> > "mongodb-user" group.> To post to this group, send email to mongodb-user <at> googlegroups.com.
> > > To unsubscribe from this group, send email to
>
> > mongodb-user+unsubscribe@...> For more
options, visit this group at
>
> >http://groups.google.com/group/mongodb-user?hl=en.

--

-- 
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongodb-user@...
To unsubscribe from this group, send email to mongodb-user+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.

Nat | 2 Jul 17:10 2011
Picon

Re: Re: Compiling on Linux problem

After you build mongoclient, make sure you get it placed in lib location such as /usr/lib, /usr/lib64
-----Original Message-----
From: EiTkoCaT <eitkocat@...>
Sender: mongodb-user@...
Date: Sat, 2 Jul 2011 08:05:17 
To: mongodb-user<mongodb-user@...>
Reply-To: mongodb-user@...
Subject: [mongodb-user] Re: Compiling on Linux problem

Well how can I solve that? It drives me crazy!

On Jul 2, 4:44 pm, EiTkoCaT <eitko...@...> wrote:
> Gives me:
> /usr/bin/ld: cannot find -lmongoclient
> collect2: ld returned 1 exit status
>
> On Jul 2, 4:37 pm, Eliot Horowitz <eliothorow...@...> wrote:
>
>
>
>
>
>
>
> > You need -lmongoclient
> > On Jul 2, 2011 9:30 AM, "EiTkoCaT" <eitko...@...> wrote:
>
> > > Also if I'm doing
> > > g++ -I .. simple_client_demo.cpp mongo_client_lib.cpp -lboost_thread-
> > > mt -lboost_filesystem
>
> > > it gives me some lot of undefined reference to `mongo::OID::init()'
> > > and other functions...
>
> > > WTF? Thanks.
>
> > > On Jul 2, 4:26 pm, EiTkoCaT <eitko...@...> wrote:
> > >> OK I followed and installed all OK but when I try to compile it gives
> > >> me:
> > >> /usr/bin/ld: cannot find -lmongoclient
> > >> collect2: ld returned 1 exit status
>
> > >> On Jul 2, 3:26 am, Eliot Horowitz <eliothorow...@...> wrote:
>
> > >> > You should follow the instructions here for setting  up your
>
> > environment:http://www.mongodb.org/display/DOCS/Building+for+Linux
>
> > >> > On Fri, Jul 1, 2011 at 8:24 PM, EiTkoCaT <eitko...@...> wrote:
> > >> > > OK but now it gives me error..:
>
> > >> > > In file included from mongo/client/../db/cursor.h:23,
> > >> > >                 from mongo/client/../db/pdfile.h:367,
> > >> > >                 from mongo/client/../db/db.h:22,
> > >> > >                 from mongo/client/../db/dbhelpers.h:27,
> > >> > >                 from mongo/client/clientOnly.cpp:20:
> > >> > > mongo/client/../db/matcher.h:24:21: error: pcrecpp.h: No such file or
> > >> > > directory
> > >> > > In file included from mongo/client/../db/cursor.h:23,
> > >> > >                 from mongo/client/../db/pdfile.h:367,
> > >> > >                 from mongo/client/../db/db.h:22,
> > >> > >                 from mongo/client/../db/dbhelpers.h:27,
> > >> > >                 from mongo/client/clientOnly.cpp:20:
> > >> > > mongo/client/../db/matcher.h:39: error: 'pcrecpp' was not declared in
> > >> > > this scope
> > >> > > mongo/client/../db/matcher.h:39: error: template argument 1 is
> > invalid
> > >> > > scons: *** [mongo/client/clientOnly.o] Error 1
> > >> > > scons: building terminated because of errors.
>
> > >> > > On Jul 2, 3:15 am, Eliot Horowitz <eliothorow...@...> wrote:
> > >> > >> You need to install scons.
> > >> > >> If this is linux, would be either:
> > >> > >> apt-get install scons
> > >> > >> or
> > >> > >> yum install scons
>
> > >> > >> On Fri, Jul 1, 2011 at 8:14 PM, EiTkoCaT <eitko...@...> wrote:
> > >> > >> > Hey,
>
> > >> > >> > OK I have a problem. I've downloaded the c++ driver from
> > >> > >> >http://dl.mongodb.org/dl/cxx-driver. I'm following the
> > >> > >> >http://www.mongodb.org/pages/viewpage.action?pageId=21266598butwhen
> > >> > >> > I type "scons" it gives me:
> > >> > >> > /mongo-cxx-driver-v1.8# scons
> > >> > >> > -bash: scons: command not found
>
> > >> > >> > What to do?
>
> > >> > >> > Thanks.
>
> > >> > >> > --
> > >> > >> > You received this message because you are subscribed to the Google
>
> > Groups "mongodb-user" group.>> > >> > To post to this group, send email to mongodb-user@...
> > .
> > >> > >> > To unsubscribe from this group, send email to
>
> > mongodb-user+unsubscribe@...>> > >> > For more
options, visit this group athttp://
>
> > groups.google.com/group/mongodb-user?hl=en.
>
> > >> > > --
> > >> > > You received this message because you are subscribed to the Google
>
> > Groups "mongodb-user" group.>> > > To post to this group, send email to mongodb-user@...
> > >> > > To unsubscribe from this group, send email to
>
> > mongodb-user+unsubscribe@...>> > > For more
options, visit this group athttp://
>
> > groups.google.com/group/mongodb-user?hl=en.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
>
> > "mongodb-user" group.> To post to this group, send email to mongodb-user <at> googlegroups.com.
> > > To unsubscribe from this group, send email to
>
> > mongodb-user+unsubscribe@...> For more
options, visit this group at
>
> >http://groups.google.com/group/mongodb-user?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongodb-user@...
To unsubscribe from this group, send email to mongodb-user+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.

--

-- 
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongodb-user@...
To unsubscribe from this group, send email to mongodb-user+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.

EiTkoCaT | 2 Jul 17:40 2011
Picon

Re: Compiling on Linux problem

How to build mongoclient? That's exactly my problem!!!

Thanks!

On Jul 2, 6:10 pm, "Nat" <nat.lu...@...> wrote:
> After you build mongoclient, make sure you get it placed in lib location such as /usr/lib, /usr/lib64
>
>
>
>
>
>
>
> -----Original Message-----
> From: EiTkoCaT <eitko...@...>
> Sender: mongodb-user@...
> Date: Sat, 2 Jul 2011 08:05:17
> To: mongodb-user<mongodb-user@...>
> Reply-To: mongodb-user@...
> Subject: [mongodb-user] Re: Compiling on Linux problem
>
> Well how can I solve that? It drives me crazy!
>
> On Jul 2, 4:44 pm, EiTkoCaT <eitko...@...> wrote:
> > Gives me:
> > /usr/bin/ld: cannot find -lmongoclient
> > collect2: ld returned 1 exit status
>
> > On Jul 2, 4:37 pm, Eliot Horowitz <eliothorow...@...> wrote:
>
> > > You need -lmongoclient
> > > On Jul 2, 2011 9:30 AM, "EiTkoCaT" <eitko...@...> wrote:
>
> > > > Also if I'm doing
> > > > g++ -I .. simple_client_demo.cpp mongo_client_lib.cpp -lboost_thread-
> > > > mt -lboost_filesystem
>
> > > > it gives me some lot of undefined reference to `mongo::OID::init()'
> > > > and other functions...
>
> > > > WTF? Thanks.
>
> > > > On Jul 2, 4:26 pm, EiTkoCaT <eitko...@...> wrote:
> > > >> OK I followed and installed all OK but when I try to compile it gives
> > > >> me:
> > > >> /usr/bin/ld: cannot find -lmongoclient
> > > >> collect2: ld returned 1 exit status
>
> > > >> On Jul 2, 3:26 am, Eliot Horowitz <eliothorow...@...> wrote:
>
> > > >> > You should follow the instructions here for setting  up your
>
> > > environment:http://www.mongodb.org/display/DOCS/Building+for+Linux
>
> > > >> > On Fri, Jul 1, 2011 at 8:24 PM, EiTkoCaT <eitko...@...> wrote:
> > > >> > > OK but now it gives me error..:
>
> > > >> > > In file included from mongo/client/../db/cursor.h:23,
> > > >> > >                 from mongo/client/../db/pdfile.h:367,
> > > >> > >                 from mongo/client/../db/db.h:22,
> > > >> > >                 from mongo/client/../db/dbhelpers.h:27,
> > > >> > >                 from mongo/client/clientOnly.cpp:20:
> > > >> > > mongo/client/../db/matcher.h:24:21: error: pcrecpp.h: No such file or
> > > >> > > directory
> > > >> > > In file included from mongo/client/../db/cursor.h:23,
> > > >> > >                 from mongo/client/../db/pdfile.h:367,
> > > >> > >                 from mongo/client/../db/db.h:22,
> > > >> > >                 from mongo/client/../db/dbhelpers.h:27,
> > > >> > >                 from mongo/client/clientOnly.cpp:20:
> > > >> > > mongo/client/../db/matcher.h:39: error: 'pcrecpp' was not declared in
> > > >> > > this scope
> > > >> > > mongo/client/../db/matcher.h:39: error: template argument 1 is
> > > invalid
> > > >> > > scons: *** [mongo/client/clientOnly.o] Error 1
> > > >> > > scons: building terminated because of errors.
>
> > > >> > > On Jul 2, 3:15 am, Eliot Horowitz <eliothorow...@...> wrote:
> > > >> > >> You need to install scons.
> > > >> > >> If this is linux, would be either:
> > > >> > >> apt-get install scons
> > > >> > >> or
> > > >> > >> yum install scons
>
> > > >> > >> On Fri, Jul 1, 2011 at 8:14 PM, EiTkoCaT <eitko...@...> wrote:
> > > >> > >> > Hey,
>
> > > >> > >> > OK I have a problem. I've downloaded the c++ driver from
> > > >> > >> >http://dl.mongodb.org/dl/cxx-driver. I'm following the
> > > >> > >> >http://www.mongodb.org/pages/viewpage.action?pageId=21266598butwhen
> > > >> > >> > I type "scons" it gives me:
> > > >> > >> > /mongo-cxx-driver-v1.8# scons
> > > >> > >> > -bash: scons: command not found
>
> > > >> > >> > What to do?
>
> > > >> > >> > Thanks.
>
> > > >> > >> > --
> > > >> > >> > You received this message because you are subscribed to the Google
>
> > > Groups "mongodb-user" group.>> > >> > To post to this group, send email to mongodb-user@...
> > > .
> > > >> > >> > To unsubscribe from this group, send email to
>
> > > mongodb-user+unsubscribe@...>> > >> > For more
options, visit this group athttp://
>
> > > groups.google.com/group/mongodb-user?hl=en.
>
> > > >> > > --
> > > >> > > You received this message because you are subscribed to the Google
>
> > > Groups "mongodb-user" group.>> > > To post to this group, send email to mongodb-user@...
> > > >> > > To unsubscribe from this group, send email to
>
> > > mongodb-user+unsubscribe@...>> > > For more
options, visit this group athttp://
>
> > > groups.google.com/group/mongodb-user?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google Groups
>
> > > "mongodb-user" group.> To post to this group, send email to mongodb-user@...
> > > > To unsubscribe from this group, send email to
>
> > > mongodb-user+unsubscribe@...> For more
options, visit this group at
>
> > >http://groups.google.com/group/mongodb-user?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongodb-user@...
> To unsubscribe from this group, send email to mongodb-user+unsubscribe <at> googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/mongodb-user?hl=en.

--

-- 
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongodb-user@...
To unsubscribe from this group, send email to mongodb-user+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.

Nat | 2 Jul 18:12 2011
Picon

Re: Compiling on Linux problem

If you build it from mongodb source, you can try "scons --full install"

Otherwise, if building from cxx-driver tarball, you can just run "scons" from the extracted directory.

--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mongodb-user/-/DSQrNfLy8YIJ.
To post to this group, send email to mongodb-user-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to mongodb-user+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
EiTkoCaT | 2 Jul 18:29 2011
Picon

Re: Compiling on Linux problem

I already did just "scons". I'm using the cxx-driver.

On Jul 2, 7:12 pm, Nat <nat.lu...@...> wrote:
> If you build it from mongodb source, you can try "scons --full install"
> Otherwise, if building from cxx-driver tarball, you can just run "scons"
> from the extracted directory.

--

-- 
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongodb-user@...
To unsubscribe from this group, send email to mongodb-user+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.

Nat | 3 Jul 02:08 2011
Picon

Re: Compiling on Linux problem

Did you make sure mongoclient.a get copied to /usr/lib or /usr/lib64? 

EiTkoCaT | 3 Jul 11:00 2011
Picon

Re: Compiling on Linux problem

OK I've formatted everything, re-installed and works great.

Thanks!

On Jul 3, 3:08 am, Nat <nat.lu...@...> wrote:
> Did you make sure mongoclient.a get copied to /usr/lib or /usr/lib64?

--

-- 
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongodb-user@...
To unsubscribe from this group, send email to mongodb-user+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.


Gmane