Installing the Haskell Platform in Ubuntu
来源:互联网 发布:tk教主 知乎 编辑:程序博客网 时间:2024/04/27 23:08
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)
1
wget http://haskell.org/ghc/dist/6.10.3/ghc-6.10.3-i386-unknown-linux-n.
tar
.bz2
and untar it.
1
tar
-xvvf http://haskell.org/ghc/dist/6.10.3/ghc-6.10.3-i386-unknown-linux-n.
tar
.bz2
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
02
wget http://hackage.haskell.org/platform/2009.2.0.1/haskell-platform-2009.2.0.1.
tar
.gz
03
04
# untar it
05
tar
-xvvf http://hackage.haskell.org/platform/2009.2.0.1/haskell-platform-2009.2.0.1.
tar
.gz
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!
- Installing the Haskell Platform in Ubuntu
- Installing the Mechanize Gem in ubuntu
- Installing Software in Ubuntu
- Installing maven2 in ubuntu
- Postgresql installing in ubuntu
- Installing bitcoin in ubuntu
- Installing R in Ubuntu
- Installing the Sun Java 6 JDK in Ubuntu 12.04
- while installing the wine in ubuntu,occur "Package configuration "
- how to install the chrome in the Ubuntu platform
- Installing VMware Tools in Ubuntu
- Installing OpenCV 2.1 in Ubuntu
- Installing OpenCV 2.1 in Ubuntu
- Installing eclipse in Ubuntu 10.04
- Installing python-ldap in Ubuntu
- Installing OpenCV 2.1 in Ubuntu
- Generating/Installing Ubuntu packages for the newer 8.24.8 drivers in Breezy Badger
- Haskell Platform安装过程
- 软件开发 命名规则
- 美国四大网络运营商
- pku的题目分类
- 球队公约
- 消息队列IPC---------用途:进程间通信
- Installing the Haskell Platform in Ubuntu
- Oracle索引(B*tree和Bitmap)学习
- oracle 10g win7(可以正常安装)
- 3D斯诺克桌球游戏
- 应该怎么学习
- 进程间通信
- ClickOnce发布时报错:Cannot publish because a project failed to build
- ???
- windows安全小知识(启动安全性日志)