明月openwrt ss翻墙安装ss服务端时出现如下错误……不知该怎么办了,

一个openwrt编译错误的解决办法----安装xz工具
在编译openwrt的时候遇到一个问题,如下图所示:
根据上面的描述,在truck/build_dir/host/patch-2.7.1中没有发现Makefile文件,其实进入这个目录可以发现这个目录是空的。这个目录中的文件是应该从trunk/dl/patch-2.7.1.tar.xz,究其原因是因为系统中没有安装解压xz格式的工具(xz的安装就不在这里说明,会在其他文档中具体介绍的)。安装xz工具后可以正常编译,下面介绍xz工具的安装步骤。
XZ Utils的官网:
下载了一个xz-5.0.1.tar.gz 的源码包。解压后如下所示:
[root@localhost setup_file]# cd xz-5.0.1
[root@localhost xz-5.0.1]# ls
aclocal.m4
config.h.in
COPYING.GPLv2
config.log
COPYING.GPLv3
Doxyfile.in
autogen.sh
config.status
COPYING.LGPLv2.1
Makefile.am
configure.ac
INSTALL.generic
Makefile.in
里面有一个README文档,打开后查看里面的内容:
2. Compile XZ Utils with debugging code using configure switches
--enable-debug and, if possible, --disable-shared. If you are
using GCC, use CFLAGS='-O0 -ggdb3'. Don't strip the resulting
  这地方说,如果你需要编译带调试信息的代码,那么就需要在执行 ./configure 的时候带上 --enable-debug 选项。
不过一般不需要。
  然后接着往下看:
4. Try to reproduce the suspected bug. If you get &assertion failed&
message, be sure to include the complete message in your bug
report. If the application leaves a coredump, get a backtrace
using gdb:
$ gdb /path/to/app-binary
# Load the app to the debugger.
(gdb) core core
# Open the coredump.
# Print the backtrace. Copy & paste to bug report.
(gdb) quit
# Quit gdb.
  这个地方说,如果在make 或者 make install 的时候遇到 中断错误,那么就可以执行下面的命令来
检查出错的原因。 一般编译的时候,不会出错,这一步也能省略。
  然后接着往下看:
191 4. Translating the xz tool
192 --------------------------
The messages from the xz tool have been translated into a few
languages. Before starting to translate into a new language, ask
the author that someone else hasn't already started working on it.
Test your translation. Testing includes comparing the translated
output to the original English version by running the same commands
in both your target locale and with LC_ALL=C. Ask someone to
proof-read and test the translation.
Testing can be done e.g. by installing xz into a temporary directory:
./configure --disable-shared --prefix=/tmp/xz-test
# &Edit the .po file in the po directory.&
make -C po update-po
make install
bash debug/translations.bash | less
bash debug/translations.bash | less -S
# For --list outputs
  这个地方到了正题: 编译和安装 xz 工具。
  1、这里提到了一句,与 LC_ALL 区域的相关的问题,一般情况下,这个变量不需要修改,就算
不设置为 LC_ALL=C 也没有关系。一般情况下这个变量的值为空。
  2、编译第一步:执行 &./configure 文件
./configure --disable-shared --prefix=/tmp/xz-test
  这一句用来配置编译过程, &--disable-shared 的意思是禁止共享,
              &--prefix=/tmp/xz-test &表示编译后将xz安装到&/tmp/xz-test 目录下。
  3、更新po文件,
make -C po update-po
  这个命令的意思,没啥好解释的 &-C po 指定Makefile的搜索路径, update-po 表示执行这个目标
  4、编译和安装
make install
  执行这个命令后,就将xz工具编译后,并安装到 &/tmp/xz-test 目录下。&
  我就是这么做的,所以执行 &/test/xz-test/bin/xz & &--help 后显示如下:
[root@localhost linux-2.6.32.61]# /tmp/xz-test/bin/xz
Usage: /tmp/xz-test/bin/xz [OPTION]... [FILE]...
Compress or decompress FILEs in the .xz format.
-z, --compress
force compression
-d, --decompress
force decompression
-t, --test
test compressed file integrity
-l, --list
list information about .xz files
-k, --keep
keep (don't delete) input files
-f, --force
force overwrite of output file and (de)compress links
-c, --stdout
write to standard output and don't delete input files
default is 6; take compressor *and*
decompressor memory usage into account before using 7-9!
-e, --extreme
try to improve compression ratio by using more CPU time;
does not affect decompressor memory requirements
-q, --quiet
specify twice to suppress errors too
-v, --verb specify twice for even more verbose
-h, --help
display this short help and exit
-H, --long-help
display the long help (lists also the advanced options)
-V, --version
display the version number and exit
With no FILE, or when FILE is -, read standard input.
Report bugs to &lasse.collin@tukaani.org& (in English or Finnish).
XZ Utils home page: &http://tukaani.org/xz/&
  如果你觉得麻烦,可以将路径:&/tmp/xz-test/bin &添加到环境变量 PATH 中,或者临时导出一下也行。
  -d: &解压缩
  -z: 压缩文件
  -t: 测试文件的一致性
  -l: 列出文件的信息
命令如下执行:
/tmp/xz-test/bin/xz
linux-2.6.32.2.xz
  就可以解压你的xz文件了。
看过本文的人也看了:
我要留言技术领域:
取消收藏确定要取消收藏吗?
删除图谱提示你保存在该图谱下的知识内容也会被删除,建议你先将内容移到其他图谱中。你确定要删除知识图谱及其内容吗?
删除节点提示无法删除该知识节点,因该节点下仍保存有相关知识内容!
删除节点提示你确定要删除该知识节点吗?Checking&out&files&from&the&git&repository...
Cloning&into&'linux-firmware-f8cbdc'...
fatal:&unable&to&access&'https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/':&Could&not&resolve&host:&git.kernel.org
make[3]:&***&[/home/winux/openwrt/trunk/dl/linux-firmware--f8cbdc.tar.bz2]&Error&128
make[3]:&Leaving&directory&`/home/winux/openwrt/trunk/package/kernel/mac80211'
make[2]:&***&[package/kernel/mac80211/compile]&Error&2
make[2]:&Leaving&directory&`/home/winux/openwrt/trunk'
make[1]:&***&[/home/winux/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile]&Error&2
make[1]:&Leaving&directory&`/home/winux/openwrt/trunk'
make:&***&[world]&Error&2
在安装依赖库的时候加上红色的那两个库或者其他库:
1). 安装 SVN 工具&
sudo apt-get install subversion
2). 安装 git 工具
sudo apt-get install git-core&
3). 依次安装依赖的库文件
sudo apt-get install gcc&
sudo apt-get install g++ &
sudo apt-get install binutils &
sudo apt-get install patch &
sudo apt-get install bzip2 &
sudo apt-get install flex &
sudo apt-get install bison &
sudo apt-get install make &
sudo apt-get install autoconf&
sudo apt-get install gettext&
sudo apt-get install texinfo &
sudo apt-get install unzip &
sudo apt-get install sharutils &
sudo apt-get install ncurses-term &
sudo apt-get install zlib1g-dev &
sudo apt-get install libncurses5-dev&
sudo apt-get install gawk sudo apt-get install subversion &
sudo apt-get install libz-dev&
sudo&apt-get&install&libssl-dev
sudo&apt-get&install&libssl0.9.8
然后update和install一下:
./scripts/feeds update -a
./scripts/feeds install -a&
注明:本文章属于转载,仅供行业人员学习交流使用,文章版权属于原创作者,在此向原创者致敬,感谢原创作者为大家学习交流提供精品内容。
站方声明:IThao123是为广大互联网从业者免费提供学习交流的平台,如果侵犯了原创著作权,请联系站方删除,给你带来不便,深表歉意。查看: 871|回复: 5
小米路由器MINI安装SS时出现问题
Installing luci-i18n-s-s-zh-cn (git-16.354.dc7-1) to root...
Downloading
Collected errors:
* opkg_install_pkg: Package luci-i18n-s-s-zh-cn sha256sum mismatch. Either the opkg or the package index are corrupt. Try 'opkg update'.
* opkg_install_cmd: Cannot install package luci-i18n-s-s-zh-cn.
求大神帮忙解决!!!!
Try 'opkg update'
尝试了没有用,刷的是1月3号的潘多拉&
Try 'opkg update'
尝试了没有用,刷的是1月3号的潘多拉
我也是这样
嗯K2版已经有人给出解决方案了,加参数--force-checksum
Powered byopenwrt更新包安装curl遇到xwrt&telephony&missing错误
偶然机会获得一个2013年ap的源码,于是修改添加一些自己的功能,源码的linux内核是3.10.10版本,首选 make
dstclean,然后 再更新源码包,后来发现少了curl,单独获得curl的包
安装curl包
./scripts/feeds update curl
./scripts/feeds install curl
执行以上命令提示以下错误
Ignoring feed 'xwrt' - index missing
Ignoring feed 'telephony' - index missing
发现是更新是通过svn访问的谷歌服务器上的源码,于是使用vpn翻墙,却还是无法下载安装telephony
解决方法:
1,使用vpn翻墙;
2,在feeds.conf.default或者&feeds.conf&文件中追加下面一行文字(add
the following line to the feeds.conf in the OpenWrt
buildroot);
src-git telephony /openwrt/telephony.git
3,再次依次安装软件包成功。
telephony 添加方法参考:
&/openwrt/telephony
curl各版本源码下载地址:
&http://curl.haxx.se/download/
curl官网 http://curl.haxx.se/download.html
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。查看: 1103|回复: 5
请教一下OPENWRT中的SS设置问题
请教一下OPENWRT中的SS设置问题
4530R刷了OPENWRT,设置SS服务器后,被墙的网站还是上不了。即使设置为全局fan wall后, 用IP138可以查到,IP已经是美国SS的地址了,但就是翻不了,国内网站却能正常上网,手机,电脑,机顶盒都试过了。(OPENWRT的ChinaDNS也开启了)
如果使用PC端或手机端的SS代理程序,则fan wall正常
请问,是哪里出错了??
ss.jpg (88.56 KB, 下载次数: 0)
18:24 上传
chinadns.jpg (90.67 KB, 下载次数: 0)
18:24 上传
用手机连接试试。
注意清理DNS缓存
试一下安全dns设置为8.8.8.8.
把dns修改成fan wall路由器的地址,再清理dns缓存。
关闭Chinadns,恢复dhcp/dns设置为默认,电脑dns改为自动获取。然后使用我帖子的方案试试
本帖最后由 hugelion 于
11:08 编辑
重新刷了一个作者的固件,又把电脑dns设置为路由器地址,问题解决了(猜想问题还是出在原来的固件,因为手机没有任何调整现在也可以了)
谢谢诸位朋友的回复!!!
Powered by

我要回帖

更多关于 openwrt安装ss教程 的文章

 

随机推荐