Я устанавливаю код haskell следующим образом
git clone git://github.com/ghc/ghc.git && cd ghc && ./sync-all get
cd ghc && ./sync-all get cd ghc && ./boot && ./configure && make && make install
, когда я пытаюсь использовать ./sync-all get, я получаю следующую ошибку:
Cloning into 'ghc'...
/bin/sh: 1: ./sync-all: not found
, когда я пытаюсь без ./ синхронизировать все в коде я получаю следующую ошибку
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://github.com/ghc/packages-".insteadOf git://github.com/ghc/packages/
git config --global url."http://github.com/ghc/packages-".insteadOf http://github.com/ghc/packages/
git config --global url."https://github.com/ghc/packages-".insteadOf https://github.com/ghc/packages/
git config --global url."ssh://git@github.com/ghc/packages-".insteadOf ssh://git@github.com/ghc/packages/
git config --global url."git@github.com:/ghc/packages-".insteadOf git@github.com:/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://git.haskell.org/ghc.git
For more information, see:
* https://ghc.haskell.org/trac/ghc/wiki/Newcomers or
* https://ghc.haskell.org/trac/ghc/wiki/Building/GettingTheSources#CloningfromGitHub
, пожалуйста, предоставьте мне решение
Платформа Haskell доступна через репозиторий Ubuntu.
Платформа Haskell
Для установки через repo просто любите так:
sudo apt-get install haskell-platform
Установка через веб-сайт:
wget https://haskell.org/platform/download/7.10.2/haskell-platform-7.10.2-a-unknown-linux-deb7.tar.gz
tar xf haskell-platform-7.10.2-a-unknown-linux-deb7.tar.gz
sudo ./install-haskell-platform.sh
Компилятор Haskell
Для установки Компилятора Haskell выполните шаги один за другим.
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
Как описано в README, клонируйте репозиторий через
git clone --recursive git://git.haskell.org/ghc.git
После этого
cd ghc
./boot
./configure
make
sudo make install
проблема
$ ./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.
Поэтому для (amd64
и i386
)
sudo apt-add-repository ppa:hvr/ghc
sudo apt-get update
sudo apt-get install ghc-7.10.3
, Но эта часть... установлена в /opt
поэтому, необходимо создать некоторые символьные ссылки, или необходимо скорректировать несколько путей.