LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1256|回复: 2

debian 下的 make menuconfig 问题

[复制链接]
发表于 2006-4-8 10:42:28 | 显示全部楼层 |阅读模式
小弟 在libminigui-1.3.3下
在fedora core2 下make menuconfig是好用的

但在新装的debian下 :

debianwq:/home/sun/origion/libminigui-1.3.3# make menuconfig
make -C scripts/lxdialog -f makefile.lx all
make[1]: Entering directory `/home/sun/origion/libminigui-1.3.3/scripts/lxdialog'
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status

>> Unable to find the Ncurses libraries.
>>
>> You must have Ncurses installed in order
>> to use 'make menuconfig'

make[1]: *** [ncurses] Error 1
make[1]: Leaving directory `/home/sun/origion/libminigui-1.3.3/scripts/lxdialog'
make: *** [menuconfig] Error 2

怀疑缺库:

debianwq:/home/sun/origion/libminigui-1.3.3# apt-get install ncurses
Reading Package Lists... Done
Building Dependency Tree... Done
Package ncurses is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ncurses has no installation candidate


debianwq:/home/sun/origion/libminigui-1.3.3# aptitude install ncurses
Reading Package Lists... Done
Building Dependency Tree      
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done  
No candidate version found for ncurses
The following packages have been kept back:
  adduser base-config base-files base-passwd bsdmainutils bsdutils
  console-common console-data console-tools cpio cron dhcp-client diff
  e2fsprogs ed exim fdutils fileutils findutils gzip hostname ifupdown info
  iptables klogd libcap1 libdb2 libgdbmg1 libident liblockfile1
  libpam-modules libstdc++2.10-glibc2.2 libwrap0 lilo login logrotate mailx
  man-db manpages mawk mbr mount nano ncurses-base ncurses-bin net-tools
  netbase netkit-inetd netkit-ping nvi pcmcia-cs ppp pppconfig pppoe
  pppoeconf procps psmisc setserial shellutils sysklogd syslinux sysvinit
  tar tasksel tcpd telnet textutils util-linux
0 packages upgraded, 0 newly installed, 0 to remove and 68 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading Package Lists... Done            
Building Dependency Tree      
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done  


debianwq:/home/sun/origion/libminigui-1.3.3# aptitude install libncurses4
Reading Package Lists... Done
Building Dependency Tree      
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done  
The following packages have been kept back:
  adduser base-config base-files base-passwd bsdmainutils bsdutils
  console-common console-data console-tools cpio cron dhcp-client diff
  e2fsprogs ed exim fdutils fileutils findutils gzip hostname ifupdown info
  iptables klogd libcap1 libdb2 libgdbmg1 libident liblockfile1
  libpam-modules libstdc++2.10-glibc2.2 libwrap0 lilo login logrotate mailx
  man-db manpages mawk mbr mount nano ncurses-base ncurses-bin net-tools
  netbase netkit-inetd netkit-ping nvi pcmcia-cs ppp pppconfig pppoe
  pppoeconf procps psmisc setserial shellutils sysklogd syslinux sysvinit
  tar tasksel tcpd telnet textutils util-linux
The following NEW packages will be installed:
  libncurses4
0 packages upgraded, 1 newly installed, 0 to remove and 68 not upgraded.
Need to get 181kB of archives. After unpacking 414kB will be used.
Writing extended state information... Done
Get:1 http://mirrors.kernel.org stable/main libncurses4 4.2-10 [181kB]
Fetched 181kB in 12s (14.0kB/s)                                                
Selecting previously deselected package libncurses4.
(Reading database ... 116365 files and directories currently installed.)
Unpacking libncurses4 (from .../libncurses4_4.2-10_i386.deb) ...
Setting up libncurses4 (4.2-10) ...

Reading Package Lists... Done            
Building Dependency Tree      
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done  
debianwq:/home/sun/origion/libminigui-1.3.3# make menuconfig
make -C scripts/lxdialog -f makefile.lx all
make[1]: Entering directory `/home/sun/origion/libminigui-1.3.3/scripts/lxdialog'
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status

>> Unable to find the Ncurses libraries.
>>
>> You must have Ncurses installed in order
>> to use 'make menuconfig'

make[1]: *** [ncurses] Error 1
make[1]: Leaving directory `/home/sun/origion/libminigui-1.3.3/scripts/lxdialog'
make: *** [menuconfig] Error 2

请各位debia大侠指教,我怎样才能解决这个错误?
 楼主| 发表于 2006-4-8 10:56:24 | 显示全部楼层
debianwq:/home/sun/origion/libminigui-1.3.3# aptitude install libncurses-dev
Reading Package Lists... Done
Building Dependency Tree      
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done  
Note: selecting "libncurses5-dev" instead of the
      virtual package "libncurses-dev"
The following packages have been kept back:
  adduser base-config base-files base-passwd bsdmainutils bsdutils
  console-common console-data console-tools cpio cron dhcp-client diff
  e2fsprogs ed exim fdutils fileutils findutils gzip hostname ifupdown info
  iptables klogd libcap1 libdb2 libgdbmg1 libident liblockfile1
  libpam-modules libstdc++2.10-glibc2.2 libwrap0 lilo login logrotate mailx
  man-db manpages mawk mbr mount nano ncurses-base ncurses-bin net-tools
  netbase netkit-inetd netkit-ping nvi pcmcia-cs ppp pppconfig pppoe
  pppoeconf procps psmisc setserial shellutils sysklogd syslinux sysvinit
  tar tasksel tcpd telnet textutils util-linux
The following NEW packages will be installed:
  libncurses5-dev
0 packages upgraded, 1 newly installed, 0 to remove and 68 not upgraded.
Need to get 1038kB of archives. After unpacking 5296kB will be used.
Writing extended state information... Done
Get:1 http://mirrors.kernel.org stable/main libncurses5-dev 5.4-4 [1038kB]
Fetched 1038kB in 55s (18.7kB/s)                                                                  
Selecting previously deselected package libncurses5-dev.
(Reading database ... 116377 files and directories currently installed.)
Unpacking libncurses5-dev (from .../libncurses5-dev_5.4-4_i386.deb) ...
Setting up libncurses5-dev (5.4-4) ...
Reading Package Lists... Done            
Building Dependency Tree      
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done  
debianwq:/home/sun/origion/libminigui-1.3.3# make menuconfig
make -C scripts/lxdialog -f makefile.lx all
make[1]: Entering directory `/home/sun/origion/libminigui-1.3.3/scripts/lxdialog'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -DCURSES_LOC="<ncurses.h>" -c -o checklist.o checklist.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -DCURSES_LOC="<ncurses.h>" -c -o menubox.o menubox.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -DCURSES_LOC="<ncurses.h>" -c -o textbox.o textbox.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -DCURSES_LOC="<ncurses.h>" -c -o yesno.o yesno.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -DCURSES_LOC="<ncurses.h>" -c -o inputbox.o inputbox.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -DCURSES_LOC="<ncurses.h>" -c -o util.o util.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -DCURSES_LOC="<ncurses.h>" -c -o lxdialog.o lxdialog.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -DCURSES_LOC="<ncurses.h>" -c -o msgbox.o msgbox.c
gcc -o lxdialog checklist.o menubox.o textbox.o yesno.o inputbox.o util.o lxdialog.o msgbox.o -lncurses
make[1]: Leaving directory `/home/sun/origion/libminigui-1.3.3/scripts/lxdialog'
/bin/sh scripts/Menuconfig configs/config.in
Using defaults found in configs/defconfig
Preparing scripts: functions, parsing..............done.
MiniGUI v1.3.3 Configuration

能起来menuconfig了

  这样就解决了
回复 支持 反对

使用道具 举报

发表于 2006-4-8 11:03:11 | 显示全部楼层
请高手帮忙给我解决一个实际问题:我在安装stardict中出现困难,图标已经正常运行,但提示没有安装字典,我已下载了牛津字典,但解压后不能正常运行,请问如何???
回复 支持 反对

使用道具 举报

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

本版积分规则

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