How can i install the newest GHC ?

The port GHC version is too old:
Code:
$uname -a
FreeBSD mybsd.zsoft.com 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Fri Jul  6 11:09:08 C
ST 2012     sw2wolf@mybsd.zsoft.com:/usr/obj/usr/src/sys/MYKERNEL  i386 

$sudo portsnap fetch update
$pkg_version -vIL=|grep -i ghc
ghc-7.0.3_1                         <   needs updating (index has 7.0.4)

thanks!
 
Please, update ports tree to obtain lang/ghc version 7.4.1

Latest version of GHC-7.6.1 can be installed from tarballs for FreeBSD (x86/x64), link here.
 
where can i find the newest package ?

Code:
$echo $PACKAGESITE
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-stable/Latest/

Are the packages in above URL is newest for FreeBSD 9 ?


Regards!
 
Is better you see for yourself the difference between install from source or install a package.

From FreshPorts FAQ:
You should be familiar with the Ports section of The FreeBSD Handbook. Pay careful attention to the difference between a port and a package.

Definitions for the hopelessly lazy

What is a port?

If you install the port, the source will be downloaded, patched if necessary, compiled and installed. You will have a chance to set any optional configuration items particular to that port. If the port is dependent upon another port, that port will also be installed. After installing, ports are identical to packages.

It is because of these compile time options that I prefer ports over packages.

What is a package?

A package is a compiled port. It is a binary. When you install the package, you will download a binary and it will be installed.

Packages often lag behind ports. That is usually because it takes time to compile the packages, etc. If you want the latest version, and the package is not available, then you should install the port.

Not all ports can have packages, often because of license restrictions that prevent binary distribution.


More about your question http://en.wikipedia.org/wiki/FreeBSD_Ports.
 
Back
Top