First of all install update and upgrade your system:
$ sudo apt update
$ sudo apt upgrade
Then, install required libraries:
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
export PATH=$PATH:/usr/local/go/bin # put into ~/.profile
If already installed old golang with apt-get:
# Dummy HTTPS server | |
# Taken from : https://gist.github.com/dragermrb/108158f5a284b5fba806 and other repos | |
import http.server | |
import cgi | |
import base64 | |
import json | |
from urllib.parse import urlparse, parse_qs | |
import ssl | |
import os | |
import socketserver |
#!/bin/bash | |
# | |
# Build gstreamer for Raspberry Pi | |
# Edit the SRC and DEST environment variables at the top and then | |
# run this script. You'll need to add the following two envronment | |
# variables to your .profile | |
# | |
# LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${PREFIX}/lib" | |
# PATH="${PATH}:${PREFIX}/bin" | |
# |