The current stable version available at Golang official website is v1.12.6, and there is a distribution packaged for ArmV6 CPU available that is suitable for Raspberry Pi 3 (and some earlier models). Golang-1.8-doc - Go programming language - documentation Golang-1.8 - Go programming language compiler - metapackage Golang-1.7-src - Go programming language - source files Golang-1.7-go - Go programming language compiler, linker, compiled stdlib Golang-1.7-doc - Go programming language - documentation Golang-1.7 - Go programming language compiler - metapackage Golang-1.6-src - Go programming language - source files Golang-1.6-go - Go programming language compiler, linker, compiled stdlib Golang-1.6-doc - Go programming language - documentation Golang-1.6 - Go programming language compiler - metapackage However, a quick look at Raspbian Stretch package (as at the writing of this article, my installation is based on -raspbian-stretch-lite.img image), the current Golang version that is packaged with the Raspbian is v1.8, and this can be confirmed by running command sudo apt-cache search golang|grep $ sudo apt-cache search golang|grep golang-1.* Golang is included in Debian (and therefore Raspbian) linux distribution, so the easy way to install Golang is using the simple and familiar linux command: If you search “Golang Raspberry Pi”, you are likely come across this link “Install Golang the easy way” on Raspberry Pi Stack Exchange. When I search on internet, I always looks at the date of the instruction/article, and if it is a few years old or without the date of when the instruction is published, I will generally ignore the instruction and look for more recent information. If you search the internet you are likely see some of the old tutorials for installing some very old version of Golang from some third-party repo or cross-compiling it by yourself, some of it dated back to the early release of Rasperry Pi, that’s very long ago in software evolution, don’t follow those instructions. I recently want to install Golang(Go) on my Raspberry Pi, and realised that the easy way to install Golang may not be the better way to install Golang on Rasperry Pi.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |