找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 10688|回复: 17

编译openwrt出错,make defconfig这一步

[复制链接]
在centos6.5 编译openwrt 执行make defconfig,出错:
Build dependency: Please install a static zlib. (Missing libz.a or zlib.h)

Prerequisite check failed. Use FORCE=1 to override.
make: *** [staging_dir/host/.prereq-build] 错误 1

请教大家,需要添加什么软件?
另外为什么我的非要sudo make defconfig 才行呢?
 楼主| | 显示全部楼层
sudo yum install  libncurses5-dev  zlib1g-dev  gawk
提示:
No package libncurses5-dev available.
No package zlib1g-dev available.
回复

使用道具 举报

sudo是Ubuntu里面调用最高权限用的,如果权限不够可能无法执行。
回复

使用道具 举报

不是提示了么,缺少文件啊

Build dependency: Please install a static zlib. (Missing libz.a or zlib.h)
回复

使用道具 举报

evanzing 发表于 2015-10-12 22:16
sudo yum install  libncurses5-dev  zlib1g-dev  gawk
提示:
No package libncurses5-dev available.
...

没有可用的包。
先使用update更新源,再升级。
回复

使用道具 举报

 楼主| | 显示全部楼层
xjingiii 发表于 2015-10-13 14:25
没有可用的包。
先使用update更新源,再升级。

不知道大家的CENTOS有这个没有,我的设置了国内yum源,yum update,然后再安装,还是提示nopackage
回复

使用道具 举报

 楼主| | 显示全部楼层
w0798 发表于 2015-10-13 08:08
不是提示了么,缺少文件啊

Build dependency: Please install a static zlib. (Missing libz.a or zlib. ...

就算提示这个,不知到该安装啥,网上说的要libncurse5-dev,但是装不了
回复

使用道具 举报

https://www.right.com.cn/forum/thread-176017-1-1.html

编译环境都没安装完,你自己看教程吧
回复

使用道具 举报

 楼主| | 显示全部楼层
haxc 发表于 2015-10-13 16:39
https://www.right.com.cn/forum/thread-176017-1-1.html

编译环境都没安装完,你自己看教程吧

不知道我的centos差了啥,设置的国内源,yum update
然后按您给的地址  install libc6:i386 libgcc1:i386 libstdc++5:i386 libstdc++6:i386
又出现
Loading mirror speeds from cached hostfile
No package libc6:i386 available.
No package libgcc1:i386 available.
No package libstdc++5:i386 available.
No package libstdc++6:i386 available.
要崩溃了啊
回复

使用道具 举报

 楼主| | 显示全部楼层
Checking 'zlib'... failed.
Checking 'libssl'... ok.
Checking 'perl-thread-queue'... ok.
Checking 'tar'... ok.
Checking 'find'... ok.
Checking 'bash'... ok.


sudo yum install zlib
已加载插件:fastestmirror, refresh-packagekit, security
设置安装进程
Loading mirror speeds from cached hostfile
包 zlib-1.2.3-29.el6.x86_64 已安装并且是最新版本

回复

使用道具 举报

 楼主| | 显示全部楼层
haxc 发表于 2015-10-13 16:39
https://www.right.com.cn/forum/thread-176017-1-1.html

编译环境都没安装完,你自己看教程吧

感谢您,给我指了思路,搞了3天了,终于完美解决
回复

使用道具 举报

 楼主| | 显示全部楼层
haxc 发表于 2015-10-13 16:39
https://www.right.com.cn/forum/thread-176017-1-1.html

编译环境都没安装完,你自己看教程吧

不过编译又中招了
Checking 'rsync'... ok.
tmp/.config-package.in:11329:warning: ignoring type redefinition of 'PACKAGE_luci' from 'boolean' to 'tristate'
tmp/.config-package.in:11382:warning: ignoring type redefinition of 'PACKAGE_luci-base' from 'boolean' to 'tristate'
tmp/.config-package.in:11483:warning: ignoring type redefinition of 'PACKAGE_luci-mod-admin-full' from 'boolean' to 'tristate'
tmp/.config-package.in:11796:warning: ignoring type redefinition of 'PACKAGE_luci-app-firewall' from 'boolean' to 'tristate'
tmp/.config-package.in:12495:warning: ignoring type redefinition of 'PACKAGE_luci-theme-bootstrap' from 'boolean' to 'tristate'
tmp/.config-package.in:12558:warning: ignoring type redefinition of 'PACKAGE_luci-proto-ipv6' from 'boolean' to 'tristate'
tmp/.config-package.in:12583:warning: ignoring type redefinition of 'PACKAGE_luci-proto-ppp' from 'boolean' to 'tristate'
tmp/.config-package.in:12624:warning: ignoring type redefinition of 'PACKAGE_luci-lib-ip' from 'boolean' to 'tristate'
tmp/.config-package.in:12677:warning: ignoring type redefinition of 'PACKAGE_luci-lib-nixio' from 'boolean' to 'tristate'
#
# configuration written to .config
#
make[1] world
make[2] package/compile
make[3] -C feeds/luci/contrib/package/freifunk-common compile
make[3] -C feeds/luci/contrib/package/community-profiles compile
make[3] -C feeds/luci/contrib/package/freifunk-firewall compile
make[3] -C feeds/routing/olsrd compile
make -r world: build failed. Please re-run make with -j1 V=s to see what's going on
make: *** [world] 错误 1
回复

使用道具 举报

evanzing 发表于 2015-10-14 17:32
不过编译又中招了
Checking 'rsync'... ok.
tmp/.config-package.in:11329:warning: ignoring type red ...

V=99 看详细输出
回复

使用道具 举报

 楼主| | 显示全部楼层

v=99 提示Build dependency: Please install a static zlib. (Missing libz.a or zlib.h)
回复

使用道具 举报

 楼主| | 显示全部楼层

已经搞定了,谢谢
回复

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2024-5-12 18:44

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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