Skip to content

Instantly share code, notes, and snippets.

@dysinger
Last active August 29, 2015 13:56
Show Gist options
  • Save dysinger/9338765 to your computer and use it in GitHub Desktop.
Save dysinger/9338765 to your computer and use it in GitHub Desktop.
Install Idris (latest) on Ubuntu 12.04

Install GHC & Cabal-Install

apt-get update
apt-get install -y zlib1g-dev libncurses5-dev ghc cabal-install happy alex

Update Cabal-Install

cabal update
cabal install cabal-install
export PATH=$HOME/.cabal/bin:./.cabal-sandbox/bin:$PATH

Install Idris in a Sandbox

sudo mkdir -p /usr/local/cabal/idris
cd /usr/local/cabal/idris
~/.cabal/bin/cabal sandbox init
~/.cabal/bin/cabal install idris
cd /usr/local/bin
ln -sf ../cabal/idris/.cabal-sandbox/bin/* ./
which idris

Try it out on some source

pushd $(mktemp -d)
echo 'main : IO () ; main = print "hello"' >hello.idr
idris -o hello hello.idr
./hello
popd
@sri-prasanna
Copy link

I note that actually libffi-0.1 failed to install, which caused llvm-general-3.3.8.2 to fail as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment