Hi firstly i have tested this command from the official site to install mongodb on the pi : http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian/
sudo apt-get install -y mongodb-org
E: Unable to locate package mongodb-org
i have tried another version
sudo apt-get install -y mongodb-org=3.0.5 mongodb-org-server=3.0.5
mongodb-org-shell=3.0.5 mongodb-org-mongos=3.0.5 mongodb-org-tools=3.0.5
E: Unable to locate package mongodb-org
E: Unable to locate package mongodb-org-server E: Unable to locate
package mongodb-org-shell
E: Unable to locate package mongodb-org-mongos
E: Unable to locate package mongodb-org-tools
after that , i found the folowing repository to install mongodb on the pi
however when i run
scons
i get these errors
scons: Reading SConscript files ...
scons version: 2.3.6
python version: 2 7 3 'final' 0
Checking whether the C++ compiler works... (cached) yes
Checking for C header file unistd.h... (cached) yes
Checking whether clock_gettime is declared... (cached) yes
Checking for C library rt... (cached) yes
Checking for C++ header file execinfo.h... (cached) yes
Checking whether backtrace is declared... (cached) yes
Checking whether backtrace_symbols is declared... (cached) yes
Checking for C library pcap... (cached) no
Checking for C library wpcap... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/linux2/normal/mongo/util/version.o -c -Wnon-virtual-dtor -Woverloaded-virtual -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -pipe -fno-builtin-memcmp -O3 -DBOOST_ALL_NO_LIB -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -D_FILE_OFFSET_BITS=64 -DJS_C_STRINGS_ARE_UTF8 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -DXP_UNIX -Ibuild/linux2/normal/third_party/boost -Isrc/third_party/boost -Ibuild/linux2/normal/third_party/pcre-8.30 -Isrc/third_party/pcre-8.30 -Ibuild/linux2/normal -Isrc -Ibuild/linux2/normal/mongo -Isrc/mongo -Ibuild/linux2/normal/third_party/snappy -Isrc/third_party/snappy -Ibuild/linux2/normal/third_party/js-1.7 -Isrc/third_party/js-1.7 src/mongo/util/version.cpp
In file included from src/mongo/util/version.cpp:29:0:
src/mongo/util/file.h:33:13: error: 'uint64_t' does not name a type
src/mongo/util/file.h:43:20: error: 'fileofs' has not been declared
src/mongo/util/file.h:44:19: error: 'fileofs' has not been declared
src/mongo/util/file.h:47:9: error: 'fileofs' does not name a type
src/mongo/util/file.h:51:23: error: 'fileofs' has not been declared
src/mongo/util/file.h:188:20: error: 'fileofs' has not been declared
src/mongo/util/file.h:191:19: error: 'fileofs' has not been declared
src/mongo/util/file.h:203:9: error: 'fileofs' does not name a type
src/mongo/util/file.h:217:23: error: 'fileofs' has not been declared
src/mongo/util/file.h: In member function 'void mongo::File::truncate(int)':
src/mongo/util/file.h:218:21: error: 'len' was not declared in this scope
src/third_party/boost/boost/system/error_code.hpp: At global scope:
src/third_party/boost/boost/system/error_code.hpp:214:36: error: 'boost::system::posix_category' defined but not used [-Werror=unused-variable]
src/third_party/boost/boost/system/error_code.hpp:215:36: error: 'boost::system::errno_ecat' defined but not used [-Werror=unused-variable]
src/third_party/boost/boost/system/error_code.hpp:216:36: error: 'boost::system::native_ecat' defined but not used [-Werror=unused-variable]
cc1plus: all warnings being treated as errors
scons: *** [build/linux2/normal/mongo/util/version.o] Error 1
scons: building terminated because of errors.
is there any others method can i try ?
any suggestions well be appreciated , thanks
https://github.com/audstanley/Node-MongoDb-Pi
– Audstanley Jan 02 '16 at 20:14