Cannot use Cabal in Ubuntu - linux

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

Related

How to install specific version of libhwloc5

I'm using Ubuntu 16.04 with an already installed libhwloc5 package of version 1.11.2. I want to install it with version 1.11.5 or above. I've tried to remove it and run
sudo apt-get update
then I run
sudo apt-get install libhwloc5
but it installs the same old version, how can I specify the version of installation?
You could specify the version of your package like this:
sudo apt-get install libhwloc5=<version-number-here>
Example: apt-get install virtualbox=5.0.18-dfsg-2build1

Regarding to installation of Gsreamer 1.8.0 in ubuntu

Can any one give me the proper guidelines for gstreamer(1.8.0) installation in Ubuntu version 16.04??
Through command line
For installing gstreamer1.0 you can use:
sudo apt-get install libgstreamer1.0-* gstreamer1.0-tools gstreamer1.0-libav*
Depending on what are your needs, you probably are going to need other modules that are not installed in the previous command. I would consider adding:
gst-plugins-base
gst-plugins-good
gst-plugins-bad
gst-plugins-ugly
Using next command:
sudo apt-get install gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly
After you have installed all the plugins you can verify the installation using:
gst-inspect-1.0

mapr: Install mapr-zookeeper-5.0.0 manually

I want to install mapr-zookeeper-5.0.0.32987 through commandline manually, but when i provide version to yum install mapr-zookeeper-5.0.0.32987, it's giving me No package available error.
How to install mapr-zookeeper-5.0.0 since i can't use "yum install mapr-zookeeper" since it will install mapr-zookeeper-5.1.0
Just download
http://archive.mapr.com/releases/v5.0.0/redhat/mapr-zk-internal-5.0.0.32987.GA.v3.4.5-1.x86_64.rpm
and
http://archive.mapr.com/releases/v5.0.0/redhat/mapr-zk-internal-5.0.0.32987.GA.v3.4.5-1.x86_64.rpm
and install using rpm
rpm -i mapr-zk-internal-5.0.0.32987.GA.v3.4.5-1.x86_64.rpm mapr-zk-internal-5.0.0.32987.GA.v3.4.5-1.x86_64.rpm

Installing Haskell on Ubuntu 12

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

How to install Go

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

Resources