beanseye怎么make编译过不去?

50 views
Skip to first unread message

kenneth

unread,
Jan 6, 2015, 4:20:28 AM1/6/15
to bea...@googlegroups.com
make
src/github.com/douban/goyaml/decode.go:36:17: error: type name requires a specifier or qualifier
src/github.com/douban/goyaml/decode.go:36:17: error: expected member name or ';' after declaration specifiers
src/github.com/douban/goyaml/decode.go:36:17: error: expected ';' at end of declaration list

换go get gopkg.in/yaml.v2也不行

can't load package: package gopkg.in/yaml.v2: no buildable Go source files in /Users/kenneth/beanseye/src/gopkg.in/yaml.v2
make: *** [dep] Error 1

是不是github上的版本太老了?
还是我升级了Go版本的原因
go version
go version go1.4 darwin/amd64

大家帮忙看下。

Davies Liu

unread,
Jan 6, 2015, 4:37:25 AM1/6/15
to bea...@googlegroups.com
试试我的fork: https://github.com/davies/beanseye, 改成 gopkg.in/yaml.v2 刚测试过是可以的

-- 
Davies Liu
Sent with Sparrow

--
You received this message because you are subscribed to the Google Groups "BeanDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beandb+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

kenneth

unread,
Jan 6, 2015, 4:48:58 AM1/6/15
to bea...@googlegroups.com
非常感谢Davies如此快速的秒回,编译过去了,我又fork了保存一下。


在 2015年1月6日星期二UTC+8下午5时37分25秒,Davies写道:

kenneth

unread,
Jan 6, 2015, 5:05:07 AM1/6/15
to bea...@googlegroups.com
报了一个运行时错误,是不是go版本还不支持1.4?

panic: runtime error: index out of range
goroutine 18 [running]:
memcache.(*ManualScheduler).try_reward(0xc208084d00)
/Users/kenneth/beanseye/src/memcache/schedule.go:244 +0x905
memcache.func·009()
/Users/kenneth/beanseye/src/memcache/schedule.go:208 +0x34
created by memcache.NewManualScheduler
/Users/kenneth/beanseye/src/memcache/schedule.go:211 +0x9b3

goroutine 1 [runnable]:
main.main()
/Users/kenneth/beanseye/src/proxy/proxy.go:540 +0x1538

goroutine 6 [syscall]:
os/signal.loop()
/usr/local/Cellar/go/1.4/libexec/src/os/signal/signal_unix.go:21 +0x1f
created by os/signal.init·1
/usr/local/Cellar/go/1.4/libexec/src/os/signal/signal_unix.go:27 +0x35

goroutine 7 [chan receive]:
cmem.func·001()
/Users/kenneth/beanseye/src/cmem/cmem.go:15 +0x4a
created by cmem.init·1
/Users/kenneth/beanseye/src/cmem/cmem.go:18 +0x5c

goroutine 14 [runnable]:
main.update_stats(0xc20801f940, 0x2, 0x2, 0x0, 0x0, 0x0, 0xc2080c6390, 0x2, 0x2, 0x1)
/Users/kenneth/beanseye/src/proxy/proxy.go:166 +0x97
created by main.main
/Users/kenneth/beanseye/src/proxy/proxy.go:458 +0x1ee3

goroutine 15 [runnable]:
main.update_stats(0xc20802b160, 0x1, 0x1, 0x0, 0x0, 0x0, 0xc208056330, 0x1, 0x1, 0x0)
/Users/kenneth/beanseye/src/proxy/proxy.go:166
created by main.main
/Users/kenneth/beanseye/src/proxy/proxy.go:462 +0x1fc8

goroutine 16 [runnable]:
main.func·005()
/Users/kenneth/beanseye/src/proxy/proxy.go:471 +0xb7
created by main.main
/Users/kenneth/beanseye/src/proxy/proxy.go:478 +0x21c0

goroutine 17 [runnable]:
memcache.(*ManualScheduler).procFeedback(0xc208084d00)
/Users/kenneth/beanseye/src/memcache/schedule.go:276
created by memcache.NewManualScheduler
/Users/kenneth/beanseye/src/memcache/schedule.go:205 +0x95e

Davies Liu

unread,
Jan 6, 2015, 5:54:43 AM1/6/15
to bea...@googlegroups.com
是 bug,因为你只有一个节点吧,去github 上报一下?

-- 
Davies Liu
Sent with Sparrow

--

kenneth

unread,
Jan 6, 2015, 7:02:29 AM1/6/15
to bea...@googlegroups.com
嗯,好的,我还以为go版本的问题呢
Reply all
Reply to author
Forward
0 new messages