I skimmed some tutorials about installing Haskell on Ubuntu. They basically told about Ubuntu 11 and mentioned that it took a lot of effort. I found nothing about installing Haskell on Ubuntu 12.
Is there any tutorial or something about how to do it? Is there an installer for Ubuntu 12 x64?
I think
sudo aptitude install haskell-platform
should do the trick.
On second thoughts, if you do not have aptitude installed, you can do the same with
sudo apt-get install haskell-platform
From there, you can access the REPL by invoking ghci from the command line.
On Ubuntu 13.04, I had to do the following and I wanted to install herbalizer haml -> erb converter.
sudo apt-get install ghc6 ghc6-prof ghc6-doc cabal-install
cabal update
cabal install herbalizer
sudo ln ~/.cabal/bin/herbalizer /usr/bin/herbalizer
Well all you need to run Haskell is to install GHCI by typing these commands:
sudo apt-get install ghc-ghci
Now you can run it by writing ghci in your terminal. You can compile your files by the following command once in the ghci prompt:
:load File
Hope this will help
Related
Running lsb_release -s -d on the Jetson TK1 gives me Ubuntu 14.04 LTS
So I tried sudo apt-get install haskell-platform and sudo apt-get install ghc and with both I get an error that it is unable to locate the package. So I enabled the universe repository as I saw on a stackoverflow post for installing the haskell-platform for ubuntu 14.04. I still get the same result.
I see some people mentioning the got the haskell-platform to install on raspberry pis easily and that GHC now has good support for ARM but I don't see a way to get the install running on the Jetson TK1. My next option is to build from source, I don't see source for ARM architecture on the GHC or Haskell platform website.
I know there is also cross compiling, I will start messing with that when I see there is no easier way.
I managed to compile GHC7.8.3 on the Jetson K1 and Adapteva Parallella.
I wrote a blog post about it here which is more verbose, but here's a summarized rundown of what I did:
You will need GHC7.6.3 or earlier to bootstrap the compilation. I ran
sudo apt-get install ghc automake build-essential cabal-install groff
You’ll also need Alex and Happy, sudo apt-get install alex happy.
I also installed them in Cabal, cabal update && cabal install alex happy
I decided to compile with llvm, clang and gold linker, because gcc wouldn’t compile all the way.
sudo apt-get install llvm clang binutils
Edit mk/build.mk. I uncommented the line about quick-llvm compilation
BuildFlavour = quick-llvm.
You'll also need to replace appearances of -H64m with -H32m
perl boot and sudo ./configure --with-clang=/usr/bin/clang --with-ar=/usr/bin/ar
Because there is a linker issue, obtain the following script that will switch between standard ld and gold: https://gist.githubusercontent.com/bgamari/9399430/raw/build-ghc-arm.sh
chmod ugo+rx build-ghc-arm.sh
sudo /build-ghc-arm.sh -j6
sudo make install
I try to perfom
$ cabal --version
but it says cabal is not installed. You can install it by typing sudo apt-get install cabal-install. But when I do so, it says: cabal-install is already the newest version.
However, I cannot use it. Why?
It seems that your package isn't properly installed. So remove it cleanly using this command:
sudo apt-get purge cabal-install
And once this is over, re-install it again using the familiar command:
sudo apt-get install cabal-install
I tried installing libtiff 4.0.3 through using the commands:
./configure
make
make install
It installed fine. However, I recently found out that I got the versions wrong and so I need to install a new one with a different version. I'd like to how know to remove libtiff from my Ubuntu setup. Would it be the same as sudo apt-get remove [x]? And how do I know what to put on x if I didn't install it through sudo apt-get install [x] command? Would appreciate some help. Thanks. :)
You can't use apt-get to remove something that wasn't installed as a package. Try running make uninstall. – Blender
I downloaded the Haskell-platform source from here: http://www.haskell.org/platform/linux.html, installed ghc, and did /.configure. However when I do sudo make, I get the following error:
Preprocessing library HUnit-1.2.4.2...
Test/HUnit/Base.hs:1:1:
Could not find module `Prelude'
Perhaps you haven't installed the profiling libraries for package `base'?
Use -v to see a list of the files searched for.
Error:
Building the HUnit-1.2.4.2 package failed
make: *** [build.stamp] Error 2
Does anyone knows how to fix this?
I'm trying to install on Ubuntu 12.04.1 LTS
Instead of trying to install from the sources, simply install the Ubuntu packages, which will be much simpler, with:
$ sudo apt-get install haskell-platform
If you need a local version of the documentation and the profiling libraries, install the additional packages with:
$ sudo apt-get install haskell-platform-doc haskell-platform-prof
Daniel Fisher's comment led me to the solution. You have to install all the profiling libraries for each of the ghc packages you have installed.
Just write
sudo apt-get install ghc*-prof
That's how it worked for me
I want to install Go. I prepared system for support language. But sadly, I can't find Bison and libc6-dev following this command.
sudo apt-get install bison ed gawk gcc libc6-dev make
Then I still can't find the suitable Mercurial for Ubuntu 8.10, which is followed this command.
apt-get install python-setuptools python-dev build-essential
Therefore everyone please guide what I should do in order to install Go completely. My OS is Ubuntu version 8.10. Notice you can post the direct link for me to get packets/files.
Mercurial can typically be installed with
sudo apt-get install mercurial
The package is in universe, which you may not have enabled. The full guide, if you need it, is available here:
https://help.ubuntu.com/community/Mercurial
After installing setuptools et al., the go installation instructions say that you should install mercurial with easy-install, i.e. sudo easy_install mercurial. Are you having trouble with easy_install?
In order to install go with Homebrew run the following command on the terminal:
$ brew install golang
To check the version of go run the following command:
$ go version
To see the location run:
$ which go
To uninstall go :
$ sudo apt-get remove golang-go