LinuxSir.cn,穿越时空的Linuxsir!

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

(LFS5.0)安装procinfo-18时遇到问题:

[复制链接]
发表于 2004-3-3 19:32:04 | 显示全部楼层 |阅读模式
root:/sources/procinfo-18# make LDLIBS=-lncurses
gcc -Wall -Wstrict-prototypes -O2   -c -o procinfo.o procinfo.c
procinfo.c:28:21: termcap.h: No such file or directory
procinfo.c: In function `main':
procinfo.c:815: warning: implicit declaration of function `tgetnum'
procinfo.c:872: warning: `%c' yields only last 2 digits of year in some locales
procinfo.c: At top level:
procinfo.c:19: warning: `rcsid' defined but not used
make: *** [procinfo.o] Error 1
root:/sources/procinfo-18#
发表于 2004-3-3 22:51:01 | 显示全部楼层
procinfo.c:28:21: termcap.h: No such file or directory
ncurses没装好。
 楼主| 发表于 2004-3-4 13:05:28 | 显示全部楼层
重装了一遍ncurses,只有说明页的最后一行有问题:
ln -sf libncurses.so /usr/lib/libcurses.so
我的源码目录下没有libncurses.so,我只得将上句改为了
ln -sf lib/libncurses.so /usr/lib/libcurses.so

再次make procinfo,问题依旧.

ncurses到底是哪里出了问题了呢?谢谢!
发表于 2004-3-4 13:29:43 | 显示全部楼层
你没明白那个命令的意思,它的意思是,
ln -sf /usr/lib/ncurses.so /usr/lib/libcurses.so
上面那种写法,能保证chroot环境内外都能看到这个库。
其实文件不是在你的源码根目录下,而是在/usr/lib下。你改的那个命令就出错了。
 楼主| 发表于 2004-3-5 06:33:09 | 显示全部楼层
重新正确安装了ncurses,但装procinfo时还是不行,错误提示完全一样.

我想问是否有必要在重装完ncurses后再把它与procinfo之间的东西再按顺序装一遍?这样会解决问题吗?还是会产生问题?
 楼主| 发表于 2004-3-5 06:58:57 | 显示全部楼层
On Fri, Aug 23, 2002 at 01:38:00AM -0500, Jack Brown wrote:
> I'm just wondering,
>
>         why are we instaling procinfo as part of the book?  Is there any reason
> we would need this package as part of a base linux system. personally I
> don't think I've ever had any reason to use any of the commands it
> installs and off hand I dont know of any packages that require it.
>
>         I can sort of understand why wwe include psmisc and procps, even though
> they're not needed for recompiling anything or required by any other LFS
> packages (psmisc provides ps, free and top, and procps provides killall
> all of which could be considered base utilities I guess)
>
>         For some reason procinfo just seems unnessary...  Am I missing something?

I've often wondered the same thing, but not enough to worry about it
I just put it down to a case of it being a personal preference of
Gerard's. It's his book afterall!

Using your methodology, one could ask, why include autoconf, automake and
libtool? Those packages are not required to install stuff from tarballs.
(before anyone jumps in here and says package XYZ needs blah - well, that
package is broken!). These packages are basically "package building" tools
or put another way, "maintainer" tools. But of course they are generally
needed when building stuff out of CVS.

I can remember when I first started out on Linux and didn't have a clue, I
was horrified when compiling my first package that the autoconf output
read like so:-

checking for working aclocal... no
checking for working autoconf... no
checking for working automake... no
checking for working autoheader... no

I just naturally assumed I needed those pacakages and went and installed
them. Little did I know..

Greg
--
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message
 楼主| 发表于 2004-3-5 07:00:11 | 显示全部楼层
On August 23, 2002 02:38 am, Jack Brown wrote:
>         why are we instaling procinfo as part of the book?  Is there any reason

I've always considered it part of a basic unix/linux admin tool set. Not
strictly required to compile other software and not strictly part of a basic
Linux system either. So, yes it's a bit in violation of what we try to
accomplish with LFS. There's no real reason it's still in the book, other
than that nobody mentioned it before. One of these days I'll go through the
book's packages and do some reorganizing. But for now I can't be bothered.
It's more work than I have time for.

--
Gerard Beekmans
www.linuxfromscratch.org

-*- If Linux doesn't have the solution, you have the wrong problem -*-
--
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message
 楼主| 发表于 2004-3-5 07:01:07 | 显示全部楼层
所以我决定不装proc了: )

别怪我偷懒啊
 楼主| 发表于 2004-3-5 07:28:24 | 显示全部楼层
但实践证明我是错误的,我没有装好ncurses,后面的许多安装都倚赖于ncurses; 然而我重新安装ncurses时确实没有任何错误提示啊!我该怎么办呢?
发表于 2004-3-5 07:46:16 | 显示全部楼层
删掉你的错误链接,删掉库,再重新安装。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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