File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,27 @@ Starting HTTP server on 0.0.0.0:8181 with document root ./webroot
7070
7171Linux的开发环境到此也就完成了。
7272
73+ 如果在ubuntu系统中编译安装遇到如下错误
74+
75+ ``` ruby
76+ Compile Swift Module ' MongoDB' (7 sources)
77+ < module - includes> :1 :10 : note: in file included from < module - includes> :1 :
78+ # include "/usr/local/include/libmongoc-1.0/mongoc.h"
79+ ^
80+ / usr/ local/ include / libmongoc- 1.0 / mongoc.h: 22 :10 : error: ' bson.h' file not found
81+ # include <bson.h>
82+ ^
83+ / root/ mobile- backend/ Packages / MongoDB - 2.0 .8 / Sources / MongoDB / MongoGridFS .swift: 20 :8 : error: could not build Objective - C module ' libmongoc'
84+ import libmongoc
85+ ^
86+ < unknown> :0 : error: build had 1 command failures
87+ ```
88+
89+ 请执行如下命令解决
90+
91+ ``` ruby
92+ sudo apt- get install clang pkg- config libicu- dev libpython2.7 libxml2- dev wget git libssl- dev uuid- dev libsqlite3- dev libpq- dev libmysqlclient- dev libbson- dev libmongoc- dev libcurl4- openssl- dev
93+ ```
7394
7495
7596
You can’t perform that action at this time.
0 commit comments