我如何在eeePc 701 / Ubuntu Netbook Remix 1.6(Lucid)上构建cabal-install? [英] how can I build cabal-install on eeePc 701 / Ubuntu Netbook Remix 1.6 (Lucid)

查看:132
本文介绍了我如何在eeePc 701 / Ubuntu Netbook Remix 1.6(Lucid)上构建cabal-install?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不是编程问题,但是我第一次看到类似的东西。

UNR 1.6(基于Ubuntu 10.04)安装GHC的6.12.1版本。

So ,为了构建cabal-install-0.8.2,我必须安装

parsec,mtl,network和zlib的libghc6-包。

然后,在启动'sh ./bootstrap.sh',我得到:

检查已安装的ghc-6.12.1软件包...

parsec已经安装,版本是可以的。

网络已经安装并且版本正常。

Cabal已经安装并且版本正常。

mtl已经安装并且版本可以。

HTTP已经安装并且版本正常。

zlib已经安装且版本正常。

[1 of 1 ]编译Main(Setup.hs,Setup.o)

链接设置...

配置cabal-install-0.8.2 ...

预处理可执行文件cabal-install-0.8.2 ...

建立cabal-instal l-0.8.2 ...

[1 of 40]编译Distribution.Client.BuildReports.Types(Distribution / Client / BuildReports / Types.hs,dist / build / cabal / cabal-tmp / Distribution /Client/BuildReports/Types.o)

编译Distribution.Client.Utils(Distribution / Client / Utils.hs,dist / build / cabal / cabal-tmp / Distribution / Client / Utils.o)



...关于未使用addPackageExcludeConstraint和响应的两个警告...



[39 40]编译Distribution.Client.Install(Distribution / Client / Install.hs,dist / build / cabal / cabal-tmp / Distribution / Client / Install.o)

编译Main (Main.hs,dist / build / cabal / cabal-tmp / Main.o)

链接dist / build / cabal / cabal ...

collect2:ld以信号终止9 [Processusarrêté]



cabal-install bootstrap出错:

构建cabal-install软件包失败



在链接和collect2(一分钟左右)之间,我硬的LED驱动闪烁
好​​像很多文件被写入或读取一样。

我不知道它是否相关,但这里是依赖关系的版本

Cabal-1.8.0.2

HTTP-4000.0.6

mtl-1.1.0.2

network-2.2.1.7

parsec-2.1.0.1

zlib- 0.5.2.0

解决方案

我有同样的问题。我随时在ghc- .ebuild中添加splitobjs = NO。然后我重建ghc,但cabal-install仍然不能通过ld。因为我的gentoo框没有交换分区。所以我使用我的2G USB磁盘创建一个临时交换分区。那么我可以建立cabal-install成功。
我发现它会使用额外的100M交换空间,我的eeepc有512M内存。所以我认为你可以使用一个超过100M空间的USB磁盘。
只是:
mkswap / dev / sd * swapon / dev / sd *


Not a programming question, but the first time I see something like this.
UNR 1.6 (based on Ubuntu 10.04) installs the 6.12.1 version of GHC.
So, in order to build cabal-install-0.8.2, I have to install
the libghc6- packages of parsec, mtl, network and zlib.
Then, after launching 'sh ./bootstrap.sh', I get:

Checking installed packages for ghc-6.12.1...
parsec is already installed and the version is ok.
network is already installed and the version is ok.
Cabal is already installed and the version is ok.
mtl is already installed and the version is ok.
HTTP is already installed and the version is ok.
zlib is already installed and the version is ok.
[1 of 1] Compiling Main ( Setup.hs, Setup.o )
Linking Setup ...
Configuring cabal-install-0.8.2...
Preprocessing executables for cabal-install-0.8.2...
Building cabal-install-0.8.2...
[ 1 of 40] Compiling Distribution.Client.BuildReports.Types ( Distribution/Client/BuildReports/Types.hs, dist/build/cabal/cabal-tmp/Distribution/Client/BuildReports/Types.o )
[ 2 of 40] Compiling Distribution.Client.Utils ( Distribution/Client/Utils.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Utils.o )

... two warnings about not used addPackageExcludeConstraint and response ...

[39 of 40] Compiling Distribution.Client.Install ( Distribution/Client/Install.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Install.o )
[40 of 40] Compiling Main ( Main.hs, dist/build/cabal/cabal-tmp/Main.o )
Linking dist/build/cabal/cabal ...
collect2: ld terminated with signal 9 [Processus arrêté]

Error during cabal-install bootstrap:
Building the cabal-install package failed

Between linking and collect2 (a minute or so), the LED of my hard drive twinkles
as if a lot of files are written or read.

I don't know if it's relevant but here are the versions of the dependencies
Cabal-1.8.0.2
HTTP-4000.0.6
mtl-1.1.0.2
network-2.2.1.7
parsec-2.1.0.1
zlib-0.5.2.0

解决方案

I have the same issue. I add splitobjs=NO at anytime in ghc-..ebuild. then I rebuild ghc, but cabal-install still can't pass ld. because my gentoo box has no swap partition. So I use my 2G usb disk to create one temporary swap partition. then I can build cabal-install success. I found it will use extra 100M swap space and my eeepc has 512M memory. So I think you can use one usb disk that has more than 100M space. just: mkswap /dev/sd* swapon /dev/sd*

这篇关于我如何在eeePc 701 / Ubuntu Netbook Remix 1.6(Lucid)上构建cabal-install?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆