Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ghc 7 on netbsd how to upgrade from 6.8.3?

59 views
Skip to first unread message

gavino

unread,
May 21, 2011, 11:10:20 PM5/21/11
to
anyone done this?

I have 6.83 from pkg_add sofar

How upgrade to ghc 7?

gavino

unread,
Jun 14, 2011, 7:29:57 AM6/14/11
to

anyone?

Jaseem V V

unread,
Aug 11, 2011, 7:34:14 PM8/11/11
to

Goto http://haskell.org/ghc/ and choose the version you want. Then you
can navigate to the binaries section. Choose FreeBSD x86 or x86_64
binary depending on your system.

Example (for a GNU/Linux system):
---------------------------------
1. Say I want GHC 7.0.3

$ wget
http://haskell.org/ghc/dist/7.0.3/ghc-7.0.3-x86_64-unknown-linux.tar.bz2

2. Unpacking

$ tar -xvjf ghc-7.0.3-x86_64-unknown-linux.tar.bz2
$ cd ghc-7.0.3

3. Configure (giving the path to the prefix variable) and do a make install.

$ ./configure --prefix=/usr/local/ghc/7.0.3
sudo make install

4. Then export the path (there are many ways to do this).
I put the path in a file under /etc/profile.d/

$ sudo vim /etc/profile.d/ghc-7.0.3.sh

Then add the path to the file as:

PATH=${PATH}:/usr/local/ghc/7.0.3/bin

Save and exit the vim. Log out and log in. Open Terminal (Ctrl + Alt +
T) and type 'ghc' or 'ghci' to verify.

0 new messages