Skip to content

Commit f7ca9ed

Browse files
authored
Update 2.3-Linux开发环境搭建.md
1 parent 9741fca commit f7ca9ed

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

第2章-开发环境搭建/2.3-Linux开发环境搭建.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,27 @@ Starting HTTP server on 0.0.0.0:8181 with document root ./webroot
7070

7171
Linux的开发环境到此也就完成了。
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

0 commit comments

Comments
 (0)