Comments (9)
golang版本号多少?
go env的输出发下
from shadowsocks-go.
go get 卡住时执行以下以下两条命令,GOWORK 请自行替换为自己的目录,
git clone https://github.com/go-redis/redis.git /root/gowork/src/gopkg.in/redis.v3
git clone https://github.com/bsm/ratelimit.git /root/gowork/src/gopkg.in/bsm/ratelimit.v1
同时附上已经编译好了的可执行文件,x86 和 x86_64 都有。
from shadowsocks-go.
@glzjin 这个不行,我昨天提交issue之前就已经尝试过了。反而出现编译错误了。
# gopkg.in/redis.v3
src/gopkg.in/redis.v3/pool.go:144:10: error: reference to undefined identifier ‘atomic.Value’
lastErr atomic.Value
^
src/gopkg.in/redis.v3/pool.go:159:2: error: return with value in function with no return type
return p
^
src/gopkg.in/redis.v3/pool.go:175:3: error: expected channel
case cn := <-p.freeConns:
^
src/gopkg.in/redis.v3/pool.go:197:3: error: expected channel
case cn := <-p.freeConns:
^
src/gopkg.in/redis.v3/pool.go:175:17: error: expected channel
case cn := <-p.freeConns:
^
src/gopkg.in/redis.v3/pool.go:197:17: error: expected channel
case cn := <-p.freeConns:
^
不过不管怎样谢谢你的回答。
@orvice 我的env:
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/shadowsocks-go/mu"
GORACE=""
GOROOT="/usr"
GOTOOLDIR="/usr/lib/gccgo/tool"
TERM="dumb"
CC="gcc"
GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread"
CXX="g++"
CGO_ENABLED="1"
from shadowsocks-go.
不会吧。。。我编译成功了。。。。好吧。。。。。
from shadowsocks-go.
https://www.zhaojin97.cn/read-3189.html
这是我的升级和编译过程的随手记
from shadowsocks-go.
cd /root
mkdir
export GOPATH=/root/go
go get github.com/orvice/shadowsocks-go
cd /root/go/src/github.com/orvice/shadowsocks-go/mu
go get
go build
./mu -debug
from shadowsocks-go.
@orvice 出错,问题几乎一样
root@develop:~# go get github.com/orvice/shadowsocks-go
package github.com/orvice/shadowsocks-go
imports github.com/orvice/shadowsocks-go
imports github.com/orvice/shadowsocks-go: no buildable Go source files i n /root/go/src/github.com/orvice/shadowsocks-go
root@develop:~# cd /root/go/src/github.com/orvice/shadowsocks-go/mu
root@develop:~/go/src/github.com/orvice/shadowsocks-go/mu# go get
# gopkg.in/redis.v3
../../../../gopkg.in/redis.v3/pool.go:144:10: error: reference to undefined identifier ‘atomic.Value’
lastErr atomic.Value
^
../../../../gopkg.in/redis.v3/pool.go:159:2: error: return with value in function with no return type
return p
^
../../../../gopkg.in/redis.v3/pool.go:175:3: error: expected channel
case cn := <-p.freeConns:
^
../../../../gopkg.in/redis.v3/pool.go:197:3: error: expected channel
case cn := <-p.freeConns:
^
../../../../gopkg.in/redis.v3/pool.go:175:17: error: expected channel
case cn := <-p.freeConns:
^
../../../../gopkg.in/redis.v3/pool.go:197:17: error: expected channel
case cn := <-p.freeConns:
^
root@develop:~/go/src/github.com/orvice/shadowsocks-go/mu# go build
# gopkg.in/redis.v3
../../../../gopkg.in/redis.v3/pool.go:144:10: error: reference to undefined identifier ‘atomic.Value’
lastErr atomic.Value
^
../../../../gopkg.in/redis.v3/pool.go:159:2: error: return with value in function with no return type
return p
^
../../../../gopkg.in/redis.v3/pool.go:175:3: error: expected channel
case cn := <-p.freeConns:
^
../../../../gopkg.in/redis.v3/pool.go:197:3: error: expected channel
case cn := <-p.freeConns:
^
../../../../gopkg.in/redis.v3/pool.go:175:17: error: expected channel
case cn := <-p.freeConns:
^
../../../../gopkg.in/redis.v3/pool.go:197:17: error: expected channel
case cn := <-p.freeConns:
^
btw,我把expert改为了export,应该是你的拼写错误吧。
还有我的go是直接apt-get install gccgo-go
来安装的,会不会是这个的问题,这是另外一台机子了,在完全不同的网络环境下。系统都是Ubuntu 14.04 LTS。
from shadowsocks-go.
用go1.5.3?
from shadowsocks-go.
确认是go版本的问题,用go 1.6的执行文件包就没问题了
感谢帮助。
from shadowsocks-go.
Related Issues (20)
- 可否公开下代码的设计文档,或者写一个类似这样的代码分析https://0x01.io/2016/02/28/shadowsocks-%E6%BA%90%E7%A0%81%E9%98%85%E8%AF%BB/
- Releases v2.1 go get时遇到如下错误 cannot use v (type *User) as type HOT 1
- unrecognized import path "shadowsocks/shadowsocks-go/mu/config" (import path does not begin with hostname) HOT 2
- unrecognized import path "shadowsocks/shadowsocks-go/mu/config" (import path does not begin with hostname) HOT 1
- 编译时go提示包循环 HOT 2
- ./mu debug 时,只有在 ss-panel 新增的用户才能生效,而数据库中原有的用户不生效 HOT 2
- 刷朋友圈时后端提示错误
- shadowsocks manyuser切换过来平滑吗?
- 在新服务器,新编译出来的mu用不了;把老服务器编译好的mu复制过来就可以用 HOT 3
- mu版无法初始化用户端口问题(已屏蔽) HOT 4
- supervisorctl 管理mu运行问题 HOT 2
- go版本支持udp吗 HOT 1
- mu有个用户报这个错误【error getting request[来路ip] [本地ip] addr type * not supported】 HOT 1
- 关于UDP和FASTOPEN HOT 1
- 安装 shadowsocks-go mu 一直卡住了 HOT 2
- 是否考虑支持混淆?
- 端口突然出现问题 HOT 5
- shadowsocks go mu can't starting, Get User Error%!(EXTRA *json.Unmarshal was reported HOT 1
- 这些也要删除了吧。昨晚才知道。。很郁闷 HOT 1
- 邀请码
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 shadowsocks-go.