Error while installing haskell

i am installing haskell code is as follow

git clone git:// && cd ghc && ./sync-all get cd ghc && ./sync-all get cd ghc && ./boot && ./configure && make && make install 

when i try with ./sync-all get i get following error:

Cloning into 'ghc'... /bin/sh: 1: ./sync-all: not found 

when i try without ./sync-all in code i get following error

 It seems you cloned this repository from GitHub. But your git config files don't contain the url rewrites that are needed to make this work (GitHub doesn't support '/' in repository names, so we use a different naming scheme for the submodule repositories there). Please run the following commands first: git config --global url."git://".insteadOf git:// git config --global url."".insteadOf git config --global url."".insteadOf git config --global url."ssh://git@".insteadOf ssh://git@ git config --global url.":/ghc/packages-".insteadOf :/ghc/packages/ And then: git submodule update --init ./boot Or start over, and clone the GHC repository from the haskell server: git clone --recursive git:// For more information, see: * or * 

please provide me the solution

8

2 Answers

The Haskell Platform is available via the Ubuntu repository's.

Haskell Platform

To install via repo, just do like so:

  • sudo apt-get install haskell-platform

Install via website:

  • wget

  • tar xf haskell-platform-7.10.2-a-unknown-linux-deb7.tar.gz

  • sudo ./install-haskell-platform.sh

Haskell Compiler

To install the Haskell Compiler, follow the steps one by one.

  • sudo apt-get update
  • sudo apt-get install -y software-properties-common
  • sudo add-apt-repository -y ppa:hvr/ghc
  • sudo apt-get update
  • sudo apt-get install -y cabal-install-1.20 ghc-7.8.4
cat >> ~/.bashrc <<EOF export PATH="\$HOME/.cabal/bin:/opt/cabal/1.20/bin:/opt/ghc/7.8.4/bin:\$PATH" EOF export PATH=~/.cabal/bin:/opt/cabal/1.20/bin:/opt/ghc/7.8.4/bin:$PATH 
  • cabal update

  • cabal install alex happy

5

As described in the README, clone the repository via

git clone --recursive git:// 

After that

cd ghc ./boot ./configure make sudo make install 

The Problem

 $ ./configure checking for gfind... no checking for find... /usr/bin/find checking for sort... /usr/bin/sort checking for GHC version date... inferred 7.11.20150924 checking for GHC Git commit id... inferred 1395185f56cda4774d27ae419b10f570276b674d checking for ghc... /usr/bin/ghc checking version of ghc... 7.6.3 configure: error: GHC version 7.8 or later is required to compile GHC. 

Therefore for (amd64 and i386)

sudo apt-add-repository ppa:hvr/ghc sudo apt-get update sudo apt-get install ghc-7.10.3 

But this piece of ... is installed in /opt therefore you have to create some symbolic links or you have to adjust a few paths.

6

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like