当前位置: 技术问答>linux和unix
运行make menuconfig 命令出错!!!请指教阿!!!
来源: 互联网 发布时间:2015-07-12
本文导语: 运行make menuconfig命令是出现以下错误,不知道为什么,请高手指点,本人初学linux: rm -f include/asm ( cd include ; ln -sf asm-i386 asm) make -C scripts/lxdialog all make[1]: Entering directory `/home/projects/minicom/arch/i386/src/kernel/linux-2.4....
运行make menuconfig命令是出现以下错误,不知道为什么,请高手指点,本人初学linux:
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts/lxdialog all
make[1]: Entering directory `/home/projects/minicom/arch/i386/src/kernel/linux-2.4.0/scripts/lxdialog'
/bin/sh: line 1: gcc: command not found
>> 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/projects/minicom/arch/i386/src/kernel/linux-2.4.0/scripts/lxdialog'
make: *** [menuconfig] Error 2
谢谢!!!
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts/lxdialog all
make[1]: Entering directory `/home/projects/minicom/arch/i386/src/kernel/linux-2.4.0/scripts/lxdialog'
/bin/sh: line 1: gcc: command not found
>> 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/projects/minicom/arch/i386/src/kernel/linux-2.4.0/scripts/lxdialog'
make: *** [menuconfig] Error 2
谢谢!!!
|
>> Unable to find the Ncurses libraries.
写得很清楚了,自己装一个8:
http://freshmeat.net/projects/ncurses/
安装就不用说了8
写得很清楚了,自己装一个8:
http://freshmeat.net/projects/ncurses/
安装就不用说了8
|
Installation of Ncurses
Prepare Ncurses for compilation:
./configure --prefix=/usr --with-shared --without-debug
Compile the package:
make
Install the package:
make install
Give the Ncurses libraries execute permissions:
chmod 755 /usr/lib/*.5.4
Now fix a library that shouldn't be executable:
chmod 644 /usr/lib/libncurses++.a
Move the libraries to the /lib directory, where they're expected to reside:
mv /usr/lib/libncurses.so.5* /lib
Because the libraries have been moved, a few symlinks are pointing to non-existent files. Recreate those symlinks:
ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so
ln -sf libncurses.so /usr/lib/libcurses.so
Prepare Ncurses for compilation:
./configure --prefix=/usr --with-shared --without-debug
Compile the package:
make
Install the package:
make install
Give the Ncurses libraries execute permissions:
chmod 755 /usr/lib/*.5.4
Now fix a library that shouldn't be executable:
chmod 644 /usr/lib/libncurses++.a
Move the libraries to the /lib directory, where they're expected to reside:
mv /usr/lib/libncurses.so.5* /lib
Because the libraries have been moved, a few symlinks are pointing to non-existent files. Recreate those symlinks:
ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so
ln -sf libncurses.so /usr/lib/libcurses.so