yinqiwen / gsnova

Private proxy solution & network troubleshooting tool.
BSD 3-Clause "New" or "Revised" License
560 stars 190 forks source link

编译问题 #24

Open gadmyth opened 10 years ago

gadmyth commented 10 years ago

archlinux最新版, go1.1.2, 说是yinqiwen/src/github.com源码找不到

linux出的feature版里没有32位真是相当地奇怪. 一般而言都是32位的bin能在64位的机器上跑, 反过来却不行. 所以这样出的release相当欠妥.

binyuj commented 10 years ago

你需要自己在对应目录下git clone一下,反正我是这么解决的 估计作者是64位系统,所以没有编译32位的,如果你愿意的话,可以下载我编译的这个 https://github.com/binyuj/mVTM/raw/master/gsnova/gsnova_i386

gadmyth commented 10 years ago

Thank you! 不过我的是i686, 试了下, 段错误了

在 2013年11月9日上午11:33,binyu_J notifications@github.com写道:

你需要自己在对应目录下git clone一下,反正我是这么解决的 估计作者是64位系统,所以没有编译32位的,如果你愿意的话,可以下载我编译的这个 https://github.com/binyuj/mVTM/raw/master/gsnova/gsnova_i386

— Reply to this email directly or view it on GitHubhttps://github.com/yinqiwen/gsnova/issues/24#issuecomment-28125119 .

binyuj commented 10 years ago

那你自己编译吧,也很简单

binyuj commented 10 years ago

可能是我之前那个弄错了,我上传了一个新的,这个我在ubunut13.10 32位上试了可以了 如果你还需要的话可以试试

gadmyth commented 10 years ago

Thank you! 可以了!可惜trello还是不能访问, facebook ok了

2013/11/10 binyu_J notifications@github.com

可能是我之前那个弄错了,我做了一个新的,这个我在ubunut12.10 32位上试了可以了

— Reply to this email directly or view it on GitHubhttps://github.com/yinqiwen/gsnova/issues/24#issuecomment-28145585 .

ghost commented 10 years ago

解决方法:

配置环境

sudo pacman -Syu go # Archlinux 安装 go 包

编译

git clone https://github.com/yinqiwen/gsnova.git # 下载 gsnova rm gsnova/src/main/icon.syso # 解决编译出错问题 nano gsnova/src/common/logger.go # 把 func Write 里面的内容除了最后一行 ‘return len(p), nil’ 其它全部在前面加“//”注释掉,解决编译出错问题 git clone https://github.com/yinqiwen/godns.git gsnova/src/github.com/yinqiwen # 下载 godns,解决编译出错问题 chmod +x build.sh # 让编译程序变成可运行 ./build.sh dist gsnova # 进行32位系统的编译,注意后面两个参数

运行

tar -xf gsnova_0.22.1_linux_386.tar.gz cd gsnova-0.22.1 nano gsnova.conf # 添加 WorkerNode[0]= 你部署的 appid,删掉最后一行"#AutoOpenWebUI=false"前面的"#" ./gsnova