Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 下的编译问题。。。 #3

Open
jzp820927 opened this issue Oct 29, 2014 · 3 comments
Open

Ubuntu 下的编译问题。。。 #3

jzp820927 opened this issue Oct 29, 2014 · 3 comments

Comments

@jzp820927
Copy link

作者你好,上次在 Freedom 的博客上我提的问题看到了你的回复,问题是这样:
按照作者的说明,我在ubuntu下运行命令下载编译gscan:
go get -u github.com/yinqiwen/gscan

中途提示出错,出错信息如下:
root@ubuntu:~# go get -u github.com/yinqiwen/gscan

github.com/yinqiwen/gscan

gocode/src/github.com/yinqiwen/gscan/scan.go:220:19: error: reference to undefined identifier ‘tls.DialWithDialer’
conn, err := tls.DialWithDialer(dialer, “tcp”, addr, &config)

你的回答是:
go的版本太低吧, 最新的1.3

@jzp820927
Copy link
Author

然后我查看了下go的版本:
root@ubuntu:~# go version
go version xgcc (Ubuntu 4.9.1-0ubuntu1) 4.9.1 linux/386

好像和你说的 1.3 对不上,我在GO的官网看了下,最新版是 1.3.3,我是用 "apt-get install gccgo-go" 安装的go,系统是 ubuntu server 14.04,是不是ubuntu 上的go和官网的go版本号不统一?难道我要去go的官网下载最新版go的源码重新编译?

@yinqiwen
Copy link
Owner

不用源码编译,有编译好的二进制包

@Mygod
Copy link

Mygod commented Dec 13, 2014

go version xgcc (Ubuntu 4.9.1-16ubuntu6) 4.9.1 linux/amd64
The same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants