zz:安装nload出错解决

本文介绍了一种在尝试编译nload项目时遇到ncurses库缺失的问题及其解决方案。通过使用rpm命令安装必要的gcc和ncurses相关包,再利用yum工具进行安装的方法,成功解决了编译过程中的依赖错误。

首先依赖软件如下:

rpm -ivh gcc-4.1.2-42.el5.i386.rpm

rpm -ivh cpp-4.1.2-42.el5.i386.rpm

rpm -ivh libstdc++-devel-4.1.2-42.el5.i386.rpm

rpm -ivh gcc-c++-4.1.2-42.el5.i386.rpm

rpm -ivh ncurses-devel-5.5-24.20060715.i386.rpm

 

 

 

 

 

configure: error: ncurses library or development files not found. ncurses is required for nload.


首先需要安装gcc要不然会报错内容没有记录,大致就是gcc.... no
有这样的错误意思就是没安装gcc安装即可  用yum很方便,若yum用不了请重新配置yum源即可实现


错误如下
[root@linuxzgf nload-0.7.2]# ./configure 
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc needs -traditional... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for memset... yes
checking for initscr in -lncurses... no
checking for new_form in -lform... no
checking for ANSI C header files... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking stdlib.h usability... yes
checking stdlib.h presence... yes
checking for stdlib.h... yes
checking string.h usability... yes
checking string.h presence... yes
checking for string.h... yes
checking unistd.h usability... yes
checking unistd.h presence... yes
checking for unistd.h... yes
checking curses.h usability... no
checking curses.h presence... no
checking for curses.h... no
checking form.h usability... no
checking form.h presence... no
checking for form.h... no
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
configure: error: ncurses library or development files not found. ncurses is required for nload.

处理办法
安装
[root@linuxzgf nload-0.7.2]# yum -y install ncurses*

 

评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值