Comments (15)
&& cd /tmp/repo
&& wget --no-check-certificate https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.31-r0/glibc-2.31-r0.apk
&& apk add --repositories-file=/dev/null --allow-untrusted --no-network --no-cache /tmp/repo/glibc-2.31-r0.apk \
问题解决
from trojan-go.
动作真快,我正准备发,哈哈,确实是这样的。
from trojan-go.
386版本可以运行吗
from trojan-go.
386版本可以运行吗
/trojan-go-linux-386 -version
./trojan-go-linux-386: line 1: ELF?=: not found
./trojan-go-linux-386: line 2: syntax error: unexpected "("
不能
from trojan-go.
原因已经确定,openwrt自带的Libc库缺少__fprintf_chk和__vfprintf_chk导致ELF加载失败
from trojan-go.
目前除了注释掉输入输出相关模块之外似乎没有找到更好的解决方法
from trojan-go.
目前除了注释掉输入输出相关模块之外似乎没有找到更好的解决方法
能否静态编译,将libc库打包进二进制文件。
from trojan-go.
似乎可以通过设定extflag的方式静态链接,但是这可能导致兼容性方面的问题
from trojan-go.
docker 底包中 amd64/alpine:latest 运行 trojan-go-linux-amd64 同样 not found
trojan-go-linux-32 没有问题
from trojan-go.
&& cd /tmp/repo
&& wget --no-check-certificate https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.31-r0/glibc-2.31-r0.apk
&& apk add --repositories-file=/dev/null --allow-untrusted --no-network --no-cache /tmp/repo/glibc-2.31-r0.apk
问题解决
LEDE不支持APK命令,怎么添加APK支持
from trojan-go.
最新的Trojan-Go 0.5.1,在openwer上还是无法运行,大神们怎么办呢?
from trojan-go.
v0.5.1 版本不支持 openwrt x86 为什么关闭这个issues呢?
from trojan-go.
@herozzm 不是trojan-go不支持openwrt x86。。是openwrt x86不支持trojan-go,它的libc库太老了。。我也没办法
from trojan-go.
@herozzm 不是trojan-go不支持openwrt x86。。是openwrt x86不支持trojan-go,它的libc库太老了。。我也没办法
openwrt x86现在是翻墙网关标配,希望大神们想想有没有解决办法。
from trojan-go.
好像加上 CGO_ENABLED=0
就可以编译出 openwrt-x86 可以运行的可执行文件了
这是我用来编译 v2ray 的命令, 没加 CGO_ENABLED=0
之前也是出现 -ash: ./v2ray: not found
的错误, 加上就好了
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o v2ray ./main
参考自该文的第一句话: https://xiazemin.github.io/MyBlog/golang/2019/11/24/libc.html
go build编译时,CGO_ENABLED=1的,自动添加了一些动态库链接,所以编译时吧CGO_ENABLED=0就OK了
from trojan-go.
Related Issues (20)
- [BUG]无法通过ipv6建立连接 HOT 9
- [BUG] exe file HOT 1
- how to rejoin the telegram group HOT 4
- [BUG] HOT 1
- how to using WARP proxy for outbound like xray core? HOT 3
- 可以内置一个简单的http server吗? HOT 1
- 华为手机没法用,只能装别的了
- [BUG] 新出了个检测:https://github.com/XTLS/Trojan-killer,会被识别否? HOT 2
- [BUG]使用自签名证书启动服务端失败 HOT 2
- [BUG] 我使用了clash链接trojan-go,全局模式,无法链接到google HOT 7
- [BUG] tls handshake failed | EOF
- [BUG]windows exe闪退 HOT 3
- [BUG]tls handshake failed | EOF
- 翻墙用户到查20年, 影响三代! HOT 6
- [Feature] 是否可以考虑API 可以直接通过Http协议restful能够直接进行操作访问?
- 电报可以拉我一下么 HOT 1
- 无法在国内链接ChatGPT,会被识别来源的ip HOT 5
- 构建失败 unknown revision 476fab902fbe HOT 13
- [BUG] Trojan-go Use IPv6 for DNS on a Server with IPv6 Disabled
- 服务器已经有 nginx 了,可以不配置 https 部署吗 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 trojan-go.