GithubHelp home page GithubHelp logo

Comments (15)

bigbighill avatar bigbighill commented on May 29, 2024 3

&& 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.

t66y100 avatar t66y100 commented on May 29, 2024

动作真快,我正准备发,哈哈,确实是这样的。

from trojan-go.

p4gefau1t avatar p4gefau1t commented on May 29, 2024

386版本可以运行吗

from trojan-go.

thinker007 avatar thinker007 commented on May 29, 2024

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.

p4gefau1t avatar p4gefau1t commented on May 29, 2024

原因已经确定,openwrt自带的Libc库缺少__fprintf_chk和__vfprintf_chk导致ELF加载失败

from trojan-go.

p4gefau1t avatar p4gefau1t commented on May 29, 2024

目前除了注释掉输入输出相关模块之外似乎没有找到更好的解决方法

from trojan-go.

thinker007 avatar thinker007 commented on May 29, 2024

目前除了注释掉输入输出相关模块之外似乎没有找到更好的解决方法

能否静态编译,将libc库打包进二进制文件。

from trojan-go.

p4gefau1t avatar p4gefau1t commented on May 29, 2024

似乎可以通过设定extflag的方式静态链接,但是这可能导致兼容性方面的问题

from trojan-go.

bigbighill avatar bigbighill commented on May 29, 2024

docker 底包中 amd64/alpine:latest 运行 trojan-go-linux-amd64 同样 not found
trojan-go-linux-32 没有问题

from trojan-go.

ccssyybb avatar ccssyybb commented on May 29, 2024

&& 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.

tomxiang1 avatar tomxiang1 commented on May 29, 2024

最新的Trojan-Go 0.5.1,在openwer上还是无法运行,大神们怎么办呢?

from trojan-go.

herozzm avatar herozzm commented on May 29, 2024

v0.5.1 版本不支持 openwrt x86 为什么关闭这个issues呢?

from trojan-go.

p4gefau1t avatar p4gefau1t commented on May 29, 2024

@herozzm 不是trojan-go不支持openwrt x86。。是openwrt x86不支持trojan-go,它的libc库太老了。。我也没办法

from trojan-go.

tomxiang1 avatar tomxiang1 commented on May 29, 2024

@herozzm 不是trojan-go不支持openwrt x86。。是openwrt x86不支持trojan-go,它的libc库太老了。。我也没办法

openwrt x86现在是翻墙网关标配,希望大神们想想有没有解决办法。

from trojan-go.

shynome avatar shynome commented on May 29, 2024

好像加上 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.