找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 7236|回复: 9

shado wsocks-libev 3.0.8 编译记录

[复制链接]
本帖最后由 haxc 于 2017-9-9 22:49 编辑

shado wsocks-libev 更新3.0.x版本后编译需要更多的依赖库,因此困扰我多时,特发贴留念

建议使用hackpasacl的修改 multicall 启动方式版本,更省空间

https://github.com/hackpascal/packages/tree/master/net/shado  wsocks-libev去掉空格


开始
1:
安装依赖
sudo apt-get install --no-install-recommends gettext build-essential autoconf libtool libpcre3-dev asciidoc xmlto libev-dev libudns-dev libc-ares-dev automake libmbedtls-dev libsodium-dev



2:如果libmbedtls-dev和 libsodium-dev 安装不了请更换linux的软件源,或者手动安装:

安装 Libsodium

wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.12.tar.gz
tar xvf libsodium-1.0.12.tar.gz
cd libsodium-1.0.12
./configure --prefix=/usr && make
sudo make install

安装 MbedTLS

wget https://tls.mbed.org/download/mbedtls-2.4.2-gpl.tgz
tar xvf mbedtls-2.4.2-gpl.tgz
cd mbedtls-2.4.2
make SHARED=1 CFLAGS=-fPIC
sudo make install

3:编译报错:
checking whether the C compiler works... no
configure: error: C compiler cannot create executables

安装 sudo apt-get install ccache


4:libudns依赖问题
下载https://github.com/shado  wsocks/openwrt-feeds/blob/master/base/libudns到package
修改makefile里面PKG_NAME:=udns为PKG_NAME:=libudns

5:Package s-s-libev is missing dependencies for the following libraries:libcares.so.2

makefile文件里面依赖后面添加
        DEPENDS:=+libev +libudns +libpcre +libpthread +libsodium +libmbedtls +zlib +ipset +iptables-mod-tproxy +libcares


6:修改shado wsocks-libev的makefile 中 DEPENDS:=+libev +libmbedtls +libpthread +libsodium +libudns \ 为 DEPENDS:=+libev +libudns +libmbedtls +libpthread +libsodium \
不懂为什么这么改就可以正常编译,不然都是报找不到libudns,即使你安装有libudns

替换patches中的补丁文件,不然新版$$打不上补丁
3.07 &3.08 版的补丁


好了,这样就可以正常编译$$了,有什么问题可以回帖讨论。。。。。







本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

评分

参与人数 2恩山币 +6 收起 理由
zsh*** + 5 很给力。已经成功。
zi*** + 1 给力

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
本帖最后由 zshwq5 于 2017-7-2 19:29 编辑

收藏学习,感谢分享。


已经成功。

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

收藏了……
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
本帖最后由 cheapjr 于 2017-7-9 10:25 编辑

n年前遇到过这个问题。添加feeds解决了,现在又出现了?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

暂时用不上,先收藏了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

我编译的时候遇到libudns时,遇到下面问题
lede/scripts/download.pl "/home/xuefliang/Downloads/lede/dl" "libudns-0.4.tar.gz" "51e141b044b078d71ebb71f823959c1b" "" "http://www.corpit.ru/mjt/udns"    '
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found

下载不了,怎么办?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

请问H大神还会更新固件吗?还是觉得你的好用。
我到现在还在用你的 Powered by LuCI 0.12 Branch (0.12+git-16.038.38474-0d510b2) OpenWrt Barrier Breaker 14.07 r48549 by Haxc .Built on 2016-05-18
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

这个玩意很好。插入
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

好帖 ss 3.0.7用过挺好使 现在用S-S R
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

3。1。0把libudns依赖合并了?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-29 18:19

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表