mikejs / gridfs-fuse

A FUSE wrapper around MongoDB's GridFS
GNU General Public License v3.0
210 stars 41 forks source link

Got this error when I compile the code, how can I fix that ? #5

Closed ericfong closed 13 years ago

ericfong commented 14 years ago

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

ghost commented 13 years ago

Having the same issue. How did you fix it? Working on ubuntu-server 10.10. Installed libfuse-dev, checkout boost and mongo/client sources from github. When running './make' I get following err:

g++ -g -D_FILE_OFFSET_BITS=64 -I. -I/usr/local/include -c operations.cpp g++ -g -D_FILE_OFFSET_BITS=64 -I. -I/usr/local/include -c local_gridfile.cpp g++ -g -D_FILE_OFFSET_BITS=64 -I. -I/usr/local/include -c main.cpp g++ -g -D_FILE_OFFSET_BITS=64 -I. -I/usr/local/include -c options.cpp g++ -o mount_gridfs main.o operations.o options.o local_gridfile.o -L/usr/local/lib -L. -lmongoclient -lfuse_ino64 -lboost_thread-mt -lboost_filesystem-mt -lboost_system-mt /usr/bin/ld: cannot find -lmongoclient /usr/bin/ld: cannot find -lfuse_ino64 /usr/bin/ld: cannot find -lboost_thread-mt /usr/bin/ld: cannot find -lboost_filesystem-mt /usr/bin/ld: cannot find -lboost_system-mt collect2: ld returned 1 exit status make: *\ [mount_gridfs] Error 1

thanks!

ericfong commented 13 years ago

Given Up already