Skip to content

Instantly share code, notes, and snippets.

@postspectacular
Forked from darach/instructions.md
Last active December 2, 2015 22:44
Show Gist options
  • Save postspectacular/b8eb8da8fb4af229600d to your computer and use it in GitHub Desktop.
Save postspectacular/b8eb8da8fb4af229600d to your computer and use it in GitHub Desktop.

Revisions

  1. Karsten Schmidt revised this gist Dec 2, 2015. 2 changed files with 17 additions and 3 deletions.
    12 changes: 10 additions & 2 deletions instructions.md
    Original file line number Diff line number Diff line change
    @@ -29,9 +29,10 @@ $ sudo make install
    ```bash
    $ wget http://llvm.org/releases/3.6.2/clang+llvm-3.6.2-armv7a-linux-gnueabihf.tar.xz
    $ unxz clang+llvm-3.6.2-armv7a-linux-gnueabihf.tar.xz
    $ tar tvf clang+llvm-3.6.2-armv7a-linux-gnueabihf.tar
    $ tar xvf clang+llvm-3.6.2-armv7a-linux-gnueabihf.tar
    $ cd clang+llvm-3.6.2-armv7a-linux-gnueabihf
    $ export LD_LIBRARY_PATH=/path/to/clang+llvm-3.6.2-armv7a-linux-gnueabihf/lib
    $ export PATH=/path/to/clang+llvm-3.6.2-armv7a-linux-gnueabihf/bin:$PATH
    ```

    ### 2. Build and install pony
    @@ -41,8 +42,15 @@ $ cd
    $ git clone http://github.com/CausalityLtd/ponyc
    $ cd ponyc
    $ make
    # tests might hang on regex/Regex.groups
    $ make test
    $ sudo make install

    # clang/llvm not on PATH for sudo, so need to build small install script
    $ cat <<'EOF' > install.sh
    export PATH=/path/to/clang+llvm-3.6.2-armv7a-linux-gnueabihf/bin:$PATH
    make install
    EOF
    $ sudo ./install.sh
    ```

    ### 3. Test installation
    8 changes: 7 additions & 1 deletion raspberry_pony.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,10 @@
    pi@horse ~/ponyc $ uname -a
    Linux horse 4.1.6-v7+ #810 SMP PREEMPT Tue Aug 18 15:32:12 BST 2015 armv7l GNU/Linux
    pi@horse ~/ponyc $ build/debug/ponyc -version
    0.2.1-177-g6a9a13f
    0.2.1-177-g6a9a13f

    # on Odroid C1
    $ uname -a
    Linux odroid 3.10.80-125 #1 SMP PREEMPT Wed Sep 2 04:22:11 BRT 2015 armv7l armv7l armv7l GNU/Linux
    $ ponyc -version
    0.2.1-181-g191cb0c
  2. @darach darach revised this gist Dec 2, 2015. 1 changed file with 56 additions and 0 deletions.
    56 changes: 56 additions & 0 deletions instructions.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,56 @@
    ## Instructions

    The following instructions assume a debian jessie based distribution

    ### 0. Prerequisites

    Install dependent tools and libraries

    ```bash
    $ sudo apt-get update
    $ sudo apt-get install libssl-dev automake autotools-dev
    ```

    ### 2. Install PCRE 2.8

    ```bash
    $ cd
    $ git clone git clone https://github.com/luvit/pcre2
    $ cd pcre2
    $ touch NEWS AUTHORS
    $ autoreconf -i
    $ ./configure
    $ make
    $ sudo make install
    ```

    ### 1. Install LLVM 3.6

    ```bash
    $ wget http://llvm.org/releases/3.6.2/clang+llvm-3.6.2-armv7a-linux-gnueabihf.tar.xz
    $ unxz clang+llvm-3.6.2-armv7a-linux-gnueabihf.tar.xz
    $ tar tvf clang+llvm-3.6.2-armv7a-linux-gnueabihf.tar
    $ cd clang+llvm-3.6.2-armv7a-linux-gnueabihf
    $ export LD_LIBRARY_PATH=/path/to/clang+llvm-3.6.2-armv7a-linux-gnueabihf/lib
    ```

    ### 2. Build and install pony

    ```bash
    $ cd
    $ git clone http://github.com/CausalityLtd/ponyc
    $ cd ponyc
    $ make
    $ make test
    $ sudo make install
    ```

    ### 3. Test installation

    Try running one of the examples

    ```bash
    $ cd examples/httpget
    $ ponyc
    $ ./httpget http://www.google.com/
    ```
  3. @darach darach created this gist Dec 2, 2015.
    4 changes: 4 additions & 0 deletions raspberry_pony.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    pi@horse ~/ponyc $ uname -a
    Linux horse 4.1.6-v7+ #810 SMP PREEMPT Tue Aug 18 15:32:12 BST 2015 armv7l GNU/Linux
    pi@horse ~/ponyc $ build/debug/ponyc -version
    0.2.1-177-g6a9a13f