Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoDB source tree / compiling problems #11

Open
pulstar opened this issue Jan 6, 2012 · 6 comments
Open

MongoDB source tree / compiling problems #11

pulstar opened this issue Jan 6, 2012 · 6 comments

Comments

@pulstar
Copy link

pulstar commented Jan 6, 2012

I am trying to compile the wwoods fork of gridfs-fuse in an Ubuntu server with the lastest stable version of MongoDB, but I am getting the following error:

operations.cpp:30:36: error: mongo/util/hostandport.h: No such file or directory

I noticed that that file is in the "mongo/util/net" directory instead of "mongo/util".

Maybe something need to be updated in order to work with this version of MongoDB?

@pulstar
Copy link
Author

pulstar commented Jan 6, 2012

I changed the path to "mongo/util/net" inside operations.cpp and main.cpp, but now it is showing the error:

g++ -o mount_gridfs main.o operations.o options.o local_gridfile.o -L/usr/local/lib -L. -lmongoclient -lfuse -lboost_thread-mt -lboost_filesystem-mt -lboost_system-mt -ldl
/usr/bin/ld: cannot find -lmongoclient
collect2: ld returned 1 exit status
make: *** [mount_gridfs] Error 1

I did try "make debian" too, but it throws the same error. Then I noticed this:

#aptitude install mongodb-dev
Couldn't find any package whose name or description matched "mongodb-dev"
No packages will be installed, upgraded, or removed.

Is that package in a repository somewhere?

@wwoods
Copy link

wwoods commented Mar 13, 2012

Sorry for taking so long, I'm bad at checking github. It's in debian's "unstable" ... you'll have to configure apt-get appropriately.

@pulstar
Copy link
Author

pulstar commented Mar 13, 2012

Better late than never! Thank you very much! :)

@zzlyzq
Copy link

zzlyzq commented Jul 17, 2012

[10gen]
name=10gen Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686
gpgcheck=0
enabled=1
Ref: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-redhat-centos-or-fedora-linux/

Based on the above infomation, you can add the repo to /etc/yum.repos.d/mongo.repo. Then you can use the command "yum install mongo*", and then you can pass the problem, but I met another question:
"/usr/bin/ld: cannot find -lfuse_ino64".

Hope it can help you!

@pulstar
Copy link
Author

pulstar commented Jul 18, 2012

zzlyzq: do you know the repository address for an Ubuntu install?

@zzlyzq
Copy link

zzlyzq commented Jul 18, 2012

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian-or-ubuntu-linux/

Pulstar:
The URL above will help you to use apt-get to install mongo.
I used the command "yum install mongodb-devel", maybe you will use "apt-get install mongodb-dev".
I have successfully compiled the gridfs-fuse today. I have met two problems:
1.
Some body had changed the two files Makefile And local_gridfile.h
https://github.com/epitron/gridfs-fuse/blob/b8207d50eb65cd2fbd9a5e7fa19d33ae2035bc83/Makefile
https://github.com/epitron/gridfs-fuse/blob/b8207d50eb65cd2fbd9a5e7fa19d33ae2035bc83/local_gridfile.h
1.
Also , because My CentOS is x86_64, so I changed the LDOPTS.
#LDOPTS=-L/usr/local/lib -L. -lmongoclient -lfuse -lboost_thread -lboost_filesystem -lboost_system
LDOPTS=-L/usr/lib64 -L. -lmongoclient -lfuse -lboost_thread -lboost_filesystem -lboost_system

Good Luck.

At 2012-07-18 12:54:50,pulstar [email protected] wrote:

zzlyzq: do you have the repository address for an Ubuntu install?


Reply to this email directly or view it on GitHub:
#11 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants