gridfs-fuse
gridfs-fuse copied to clipboard
MongoDB source tree / compiling problems
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?
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?
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.
Better late than never! Thank you very much! :)
[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!
zzlyzq: do you know the repository address for an Ubuntu install?
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: https://github.com/mikejs/gridfs-fuse/issues/11#issuecomment-7056787