Golang 1.8 running on Raspberry Pi 3 B

blov · · 585 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>1) untar image from 2017-03-02-raspbian-jessie-lite.zip 2) Use Etcher-1.0.0-beta.19-linux-x64.zip to flash the image onto an sdcard 3) Mount the sdcard, and in the boot directory, add ssh by executing &#34;touch ssh&#34; and unmount sdcard 4) Place the sdcard in the Raspberry Pi and power up 5) On the host machine execute arp -a to find the new ip address of the Raspberry Pi 6) ssh to it: ssh <a href="mailto:pi@192.168.1.x" rel="nofollow">pi@192.168.1.x</a>, password is raspberry 7) sudo apt-get update 8) sudo apt-get install aptitude 9) sudo aptitude purge golang (if it&#39;s installed) 10) Follow Dave Cheney&#39;s steps to install go 1.5 on the Raspberry pi 11) Download the source for go 1.8 12) export GOROOT_BOOTSTRAP=location of go1.5 from step 10 13) ulimit -s 1024 (as Dave suggested) 14) sudo tar -C /usr/local -xf go1.8.src.tar.gz 15) sudo chown -R pi /usr/local/go 16) cd /usr/local/go/src 17) ./all.bash 18) go 1.8 can now be used as usual</p> <hr/>**评论:**<br/><br/>new_frame: <pre><p>Or just download the binaries from <a href="https://golang.org/dl/" rel="nofollow">https://golang.org/dl/</a></p> <p><a href="https://storage.googleapis.com/golang/go1.8.linux-armv6l.tar.gz" rel="nofollow">https://storage.googleapis.com/golang/go1.8.linux-armv6l.tar.gz</a></p></pre>pwn4d: <pre><p>1) Install <a href="https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3" rel="nofollow">Arch Linux ARM</a></p> <p>2) sudo pacman -Syu go</p></pre>wishinghand: <pre><p>1) untar image from 2017-03-02-raspbian-jessie-lite.zip </p> <p>2) Use Etcher-1.0.0-beta.19-linux-x64.zip to flash the image onto an sdcard </p> <p>3) Mount the sdcard, and in the boot directory, add ssh by executing &#34;touch ssh&#34; and unmount sdcard </p> <p>4) Place the sdcard in the Raspberry Pi and power up </p> <p>5) On the host machine execute arp -a to find the new ip address of the Raspberry Pi </p> <p>6) ssh to it: ssh <a href="mailto:pi@192.168.1.x" rel="nofollow">pi@192.168.1.x</a>, password is raspberry </p> <p>7) sudo apt-get update </p> <p>8) sudo apt-get install aptitude </p> <p>9) sudo aptitude purge golang (if it&#39;s installed) </p> <p>10) Follow Dave Cheney&#39;s steps to install go 1.5 on the Raspberry pi </p> <p>11) Download the source for go 1.8 </p> <p>12) export GOROOT_BOOTSTRAP=location of go1.5 from step 10 </p> <p>13) ulimit -s 1024 (as Dave suggested) </p> <p>14) sudo tar -C /usr/local -xf go1.8.src.tar.gz </p> <p>15) sudo chown -R pi /usr/local/go </p> <p>16) cd /usr/local/go/src </p> <p>17) ./all.bash 18) go 1.8 can now be used as usual</p></pre>sin2pifx: <pre><p>In cauda venenum.</p></pre>FUZxxl: <pre><p>Use <code>1.</code> instead of <code>1)</code> so reddit applies list formatting.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

585 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传