Installing the Haskell Platform in Ubuntu

http://sporkcode.wordpress.com/2009/07/11/installing-the-haskell-platform-in-ubuntu/

Code. Randomness. Sporks.

 


Installing the Haskell Platform in Ubuntu

with 11 comments

After my previous article about installing Haskell’s Cabal package in Ubuntu , I decided to do a bit more research on using Haskell in Ubuntu. It turns out that the debian packages in the Ubuntu repositories for Haskell and GHC are hopelessly out of date, excluding not only the added functionality of new releases, but also the Haskell Platform, which is effectively an extended set of standard libraries surrounding Haskell. Funnily enough, the Haskell platform actually includes Cabal, which effectively makes my previous post useless. In its stead, I present to you a guide on installing GHC and the Haskell platform on your Ubuntu system (though these steps should work equally well on any Linux system with apt-get as a package manager).

First things first, lets get the dependencies out of the way.

1 sudo apt-get install libedit2 libedit-dev freeglut3-dev libglu1-mesa-dev

Now let’s remove any haskell packages we may have installed, as these will cause conflicts.

1 sudo apt-get autoremove ghc6

Note that if you installed cabal as per my previous post, you can remove the executable from your $PATH by executing the following:

1 sudo rm /usr/ local /sbin/cabal

This will not delete the executable, which is stored in $HOME/.cabal/bin/. This just removes the sym-link that was in your $PATH .

Next, lets grab the source for GHC 6.10.3 (which is required to build the Haskell Platform)

and untar it.

next, lets configure it and build it:

1 cd ghc-6.10.3/
2 ./configure
3 sudo make install

After this, installing the Haskell Platform is just more of the same:

01 #grab the tarball
03  
04 # untar it
06  

07

# ... and install it.
08 cd haskell-platform-2009.2.0.1/
09 ./configure
10 make
11 sudo make install

 

install sudo apt-get install build-essential

 

Along the way, the install scripts for the Haskell Platform will give you prompts for the next step to take.

Enjoy your Haskell Platform, and happy developing!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值