Skip to content

Instantly share code, notes, and snippets.

@d4z3x
Forked from simoncos/golang_on_rpi.md
Created March 28, 2019 00:05
Show Gist options
  • Save d4z3x/050fe05f6d8154fcaec2d280c28fd38c to your computer and use it in GitHub Desktop.
Save d4z3x/050fe05f6d8154fcaec2d280c28fd38c to your computer and use it in GitHub Desktop.

Revisions

  1. @simoncos simoncos revised this gist Sep 21, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions golang_on_rpi.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    Install Golang 1.9:

    ```
    wget https://storage.googleapis.com/golang/go1.9.linux-armv6l.tar.gz
    sudo tar -C /usr/local -xzf go1.9.linux-armv6l.tar.gz
  2. @simoncos simoncos revised this gist Sep 21, 2017. 1 changed file with 18 additions and 4 deletions.
    22 changes: 18 additions & 4 deletions golang_on_rpi.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,19 @@
    ```
    wget https://storage.googleapis.com/golang/go1.7.linux-armv6l.tar.gz
    tar -C /usr/local -xzf go1.7.linux-armv6l.tar.gz
    export PATH=$PATH:/usr/local/go/bin
    ````
    wget https://storage.googleapis.com/golang/go1.9.linux-armv6l.tar.gz
    sudo tar -C /usr/local -xzf go1.9.linux-armv6l.tar.gz
    export PATH=$PATH:/usr/local/go/bin # put into ~/.profile
    ```

    If already installed old golang with apt-get:

    ```
    sudo apt remove golang
    sudo apt-get autoremove
    source .profile
    ```

    Test:

    ```
    go version
    ```
  3. @konradko konradko revised this gist Sep 6, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion golang_on_rpi.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    ```
    wget https://storage.googleapis.com/golang/go1.7.linux-armv6l.tar.gz
    tar -C /usr/local -xzf
    tar -C /usr/local -xzf go1.7.linux-armv6l.tar.gz
    export PATH=$PATH:/usr/local/go/bin
    ````
  4. @konradko konradko created this gist Sep 6, 2016.
    5 changes: 5 additions & 0 deletions golang_on_rpi.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    ```
    wget https://storage.googleapis.com/golang/go1.7.linux-armv6l.tar.gz
    tar -C /usr/local -xzf
    export PATH=$PATH:/usr/local/go/bin
    ````