Comments (3)
You need an installed mongo-c-driver
package in your system in order to build lua-mongo
. It appears your libbson
(which is just one of two parts of Mongo C Driver) is not installed into the default prefix. Try to find its header with:
find / -name 'bson.h'
and go from there.
from lua-mongo.
i try command line.
find / -name 'bson.h'
answer:
/home/tom/Downloads/libbson-1.9.3/src/bson/bson.h
/home/tom/Downloads/mongo-c-driver-1.9.3/src/libbson/src/bson/bson.h
/usr/local/include/libbson-1.0/bson.h
/usr/include/libbson-1.0/bson/bson.h
/usr/include/libbson-1.0/bson.h
find: ‘/run/user/1000/doc’: Permission denied
find: ‘/run/user/1000/gvfs’: Permission denied
thank you . I try from Sergeydi.
$ git clone https://github.com/mongodb/mongo-c-driver.git
$ cd mongo-c-driver
$ python build/calc_release_version.py > VERSION_CURRENT
$ mkdir cmake-build
$ cd cmake-build
$ cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF ..
$ make
$ sudo make install
It's works thank you verymuch guy.
from lua-mongo.
I have problem with luarocks install lua-mongo.
I install luarocks install lua-mongo. Have problem. help me please. thank you.
I've already installed bson lib.
Installing https://luarocks.org/lua-mongo-1.2.1-1.src.rockError: Could not find header file for LIBBSON
No file libbson-1.0/bson/bson.h in /usr/local/include
No file libbson-1.0/bson/bson.h in /usr/include
You may have to install LIBBSON in your system and/or pass LIBBSON_DIR or LIBBSON_INCDIR to the luarocks command.
Example: luarocks install lua-mongo LIBBSON_DIR=/usr/local
you can build mongo.so with luarocks???
from lua-mongo.
Related Issues (20)
- Requiring the library from Lua results in error ("undefined symbol: lua_tointeger") HOT 12
- Find method how to select the specified column? HOT 1
- have a question HOT 1
- Install error HOT 5
- undefined symbol: mongoc_collection_replace_one HOT 4
- i have problem guy.how to find or aggregation ISODate. HOT 1
- Compile error HOT 2
- nginx content_by_lua_block gives an error if ssl is used HOT 3
- Process aborts due to a zero server_id HOT 1
- Session support HOT 4
- Unable to install lua-mongo with luarocks HOT 2
- insertOne question HOT 1
- cant get build via luarocks in windows HOT 1
- How to install on Windows? HOT 3
- When mongo has username and password, how can I do? HOT 2
- How to create a TTL index? HOT 4
- Lua-mongo can't be used with mongo-c-driver_v1.19 HOT 2
- Cannot create bson document with array indexed by numbers HOT 3
- building with luarocks mingw64 HOT 7
- The specified module could not be found? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lua-mongo.