- Install 
libgmp-dev libgmp3c2or equivalent using the system package manager. - Add 
export PATH="$HOME/.ghc/bin:$HOME/.cabal/bin:$PATH"to your.<shell>rc. - Also run the command above now.
 - Get the [GHC binary tarball][ghc] and extract it.
 ./configure --prefix="$HOME/.ghc" && make install- Get the [cabal-install source tarball][cabal] and extract it.
 EXTRA_CONFIGURE_OPTS=-p sh bootstrap.shcabal update
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | brew install snappy | |
| CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ant compile-native | |
| chmod 644 build/native/Mac_OS_X-x86_64-64/lib/* | |
| ls -l /usr/local/lib/libsnappy.dylib | |
| ls -l build/native/Mac_OS_X-x86_64-64/lib/libhadoop.dylib | 
see Wikipedia
Markdown is a lightweight markup language, originally created by John Gruber and Aaron Swartz allowing people "to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML)".
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ;; Programming Clojure "2. Exploring Clojure" p71 | |
| ;; | |
| ; NOTE: The ``indexed`` function already exists as part of | |
| ; clojure-contrib (coljure.contrib.seq/indexed). | |
| (defn indexed | |
| "Returns a lazy sequence of [index, item] pairs, where items | |
| come from 'coll' and indexes count up from zero." | |
| [coll] | |
| (map vector (iterate inc 0) coll)) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ;; SICP 1.1.7 "Squre Roots by Newton's Method" | |
| ;; | |
| ;; user=> (load-file "sicp/square-roots-by-newtons-method.clj") | |
| ;; #'user/sqrt | |
| ;; user=> sqrt | |
| ;; #<user$sqrt user$sqrt@1b0c6cfc> | |
| ;; user=> (sqrt 9) | |
| ;; 3.00009155413138 | |
| ;; user=> (sqrt (+ 100 37)) | |
| ;; 11.704699917758145 |