blfs ghc 安装
时间:2008-09-26
来源:互联网
盼望着,盼望着,看到了 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 的朋友,希望引以为戒。
以前常在这里混的,每天不上来看看最新帖子,心里就真不爽。
现在重开了,这个版还是有些冷清,可能各位大侠还没有全部回来吧。我先发个帖子。
没有 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 的朋友,希望引以为戒。
作者: whitelilis 发布时间: 2008-09-26
谢谢 whitelilis 分享,想问这个 ghc 是干什麽用的?
作者: d00m3d 发布时间: 2008-09-26
引用:
作者: d00m3d
谢谢 whitelilis 分享,想问这个 ghc 是干什麽用的?
|
作者: whitelilis 发布时间: 2008-09-26
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28