|
盼望着,盼望着,看到了 linuxsir 重生。高兴呀!
以前常在这里混的,每天不上来看看最新帖子,心里就真不爽。
现在重开了,这个版还是有些冷清,可能各位大侠还没有全部回来吧。我先发个帖子。
没有 linuxsir 的日子,我在 chinaunix 混了,正在学 haskell,觉得这个语言很合我的胃口,很多想法和我想的是一样的。于是就安一个 ghc 的编译解释环境,我的基本系统是 LFS6.2.5 + BLFS 6.2,还安了一些常用的软件,具体见签名。
但是安装 ghc 6.2-bin 版,运行的时候,出现了如下的提示:
/usr/lib/ghc-6.8.2/ghc-6.8.2: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
安 LFS 时,是安了 ncurses 的,
我的 /usr/lib 里有个 libncurses.so
可是我
ln -s libncurses.so libncurses.so.5 之后,就说 file too short 了。
后来经 cu 上的 MMMIX 兄提醒:ghci 需要的是动态库。
重新翻看了下 LFS 的手册,原来:
Note
The instructions above don't create non-wide-character Ncurses libraries since no package installed by
compiling from sources would link against them at runtime. If you must have such libraries because of
some binary-only application, build them with the following commands:
make distclean
./configure --prefix=/usr --with-shared --without-normal \
--without-debug --without-cxx-binding
make sources libs
cp -av lib/lib*.so.5* /usr/lib
当时安 lfs 时想的是所有软件都用源代码安的,现在不得已要用 bin 的了,居然把它给忘了。
如果有用 lfs 的朋友,希望引以为戒。 |
|