ltonetwork / mongodb-rest

JSON REST server for MongoDB (using node.js)
MIT License
405 stars 143 forks source link

Can't run from the command line #18

Closed camden-kid closed 13 years ago

camden-kid commented 13 years ago

This is my build output:

mongodb@0.9.6-3 install /Users/username/Desktop/tdegrunt-mongodb-rest-315dc34/node_modules/mongodb-rest/node_modules/mongodb bash ./install.sh

uname: illegal option -- o usage: uname [-amnprsv] Not building native library for cygwin make -C ./external-libs/bson rm -rf build .lock-wscript bson.node node-waf configure build Checking for program g++ or c++ : /usr/bin/g++ Checking for program cpp : /usr/bin/cpp Checking for program ar : /usr/bin/ar Checking for program ranlib : /usr/bin/ranlib Checking for g++ : ok
Checking for node path : not found Checking for node prefix : ok /usr/local 'configure' finished successfully (0.171s) Waf: Entering directory /Users/username/Desktop/tdegrunt-mongodb-rest-315dc34/node_modules/mongodb-rest/node_modules/mongodb/external-libs/bson/build' [1/9] cxx: bson.cc -> build/default/bson_1.o [2/9] cxx: long.cc -> build/default/long_1.o [3/9] cxx: objectid.cc -> build/default/objectid_1.o [4/9] cxx: binary.cc -> build/default/binary_1.o [5/9] cxx: code.cc -> build/default/code_1.o [6/9] cxx: dbref.cc -> build/default/dbref_1.o [7/9] cxx: timestamp.cc -> build/default/timestamp_1.o [8/9] cxx: local.cc -> build/default/local_1.o [9/9] cxx_link: build/default/bson_1.o build/default/long_1.o build/default/objectid_1.o build/default/binary_1.o build/default/code_1.o build/default/dbref_1.o build/default/timestamp_1.o build/default/local_1.o -> build/default/bson.node Waf: Leaving directory/Users/username/Desktop/tdegrunt-mongodb-rest-315dc34/node_modules/mongodb-rest/node_modules/mongodb/external-libs/bson/build' 'build' finished successfully (4.014s) === EXECUTING TEST_BSON === === EXECUTING TEST_FULL_BSON === mongodb-rest@0.9.0 ./node_modules/mongodb-rest ├── jade@0.12.4 ├── mongodb@0.9.6-3 └── express@2.4

but then when I type mongodb-rest at the command line I get the error: mongodb-rest: command not found

Any ideas?

plugn commented 13 years ago

I have the same problem (Debian 5.0.4, node v0.4.10)

u18504:/home/u18504/mongo# npm install mongodb-rest

mongodb@0.9.6-10 install /home/u18504/mongo/node_modules/mongodb-rest/node_modules/mongodb bash ./install.sh

= = = To install with C++ bson parser do <npm install mongodb --mongodb:native> = = the parser only works for node 0.4.X or lower =

= =

Not building native library for cygwin mongodb-rest@0.9.0 ./node_modules/mongodb-rest Б■°Б■─Б■─ jade@0.14.2 Б■°Б■─Б■─ mongodb@0.9.6-10 Б■■Б■─Б■─ express@2.4.4 u18504:/home/u18504/mongo# mongodb-rest

-bash: mongodb-rest: command not found