nebulasio / wiki

This repository is out of date, please check the new wiki:
http://wiki.nebulas.io/en/latest/
GNU General Public License v3.0
421 stars 154 forks source link

mac 星云链编译报错 #207

Open wuzhitian opened 6 years ago

wuzhitian commented 6 years ago

编译星云链的时候报错,下面是 log,环境 Mac OS 10.13.5

cd cmd/neb; go build -ldflags "-X main.version=1.0.1 -X main.commit=7470724e2ed1f2f1e54af19e3ead477d324d542e -X main.branch=master -X main.compileAt=`date +%s`" -o ../../neb-7470724e2ed1f2f1e54af19e3ead477d324d542e
# github.com/nebulasio/go-nebulas/vendor/github.com/tecbot/gorocksdb
../../vendor/github.com/tecbot/gorocksdb/dbpath.go:18:25: could not determine kind of name for C.rocksdb_dbpath_create
../../vendor/github.com/tecbot/gorocksdb/dbpath.go:28:2: could not determine kind of name for C.rocksdb_dbpath_destroy
../../vendor/github.com/tecbot/gorocksdb/dbpath.go:10:5: could not determine kind of name for C.rocksdb_dbpath_t
make: *** [build] Error 2
yupnano commented 6 years ago

类似issue,暂时在此汇总一下。 https://github.com/nebulasio/wiki/issues/197# https://github.com/nebulasio/wiki/issues/150# https://github.com/nebulasio/go-nebulas/issues/157

Gemrails commented 5 years ago

请问有结论了吗?也遇到了这个问题 @yupnano rocksdb 5.14.2 golang 1.10.3

bibibong commented 5 years ago

看了下5.14.2是最新的版本 可能有些改动导致兼容问题,可以尝试更新下gorocksdb,或者安装低版本的rocksdb

weiht12 commented 5 years ago

你好,此版本为星云旧版wiki(后期逐步停止维护),欢迎将您的问题提交星云新版wiki,以便于获得及时解答。同时,参与wiki的编辑维护工作还会有奖励哦。新版wiki链接:https://wiki.nebulas.io/en/latest/ (英文);https://wiki.nebulas.io/zh_CN/latest/ (中文) Hello, this version is the nebulas old wiki (later stop maintenance), welcome to submit your question to the new nebulas wiki, in order to get timely answers. At the same time, there will be rewards for editing and maintaining the wiki. New wiki link: https://wiki.nebulas.io/en/latest/ (English); https://wiki.nebulas.io/zh_CN/latest/ (Chinese)