Questions tagged [golang]

Aka: go, "a compiled, statically typed language in the tradition of Algol and C" (wikipedia) created by Google.

14 questions
8
votes
4 answers

Install golang the easy way

I'd like to use the Pis with Raspbian to run Go code. For this, I like to write an easy and fast setup guide from the point you erase the SD card. During the development, I installed Go on the Pis with this guide. It has some deficiencies but works…
fodma1
  • 183
  • 1
  • 1
  • 7
6
votes
1 answer

How can I install keybase (and dependencies) without running out of memory?

I have a Raspberry Pi 3 running the most recent Raspbian distro. I've installed the most recent go, from the prebuilt package and have it on my path: $ go version go version go1.9 linux/arm However, when I try to install keybase: $ go get…
Wayne Werner
  • 461
  • 2
  • 14
5
votes
1 answer

How to run a golang program in the background?

I made a program in Go. That program compiles and runs very well on the raspi, when I start it via ssh. To start the program correct, I need to set some flags. myservice -port :1234 The program is a microservice, which is a simple http server. Now…
apxp
  • 153
  • 1
  • 5
5
votes
2 answers

Running ARM64 binaries on RP4

I'm trying to run an ARM64 binary on my RP4 with arm_64bit enabled in /boot/config.txt. I get an error: No such file or directory. Running file cloudflared-linux-arm64 I get: cloudflared-linux-arm64: ELF 64-bit LSB executable, ARM aarch64, version 1…
bertday
  • 161
  • 1
  • 6
4
votes
1 answer

Are binaries generated by Golang portable between Pi versions?

I installed golang via (on RPi3, Raspbian Stretch) sudo apt install golang Currently go version reports go version go1.7.4 linux/arm I successfully compiled and ran some go program that toggles GPIO using "go-rpio" library. The question is can I…
Zhe Hu
  • 141
  • 3
3
votes
2 answers

Docker run "someImage" returns: standard_init_linux.go190: exec user process caused "no such file or directory"

As the title said, I cannot reproduce this kind of error in any Dockerfiles of mine, after trying to run the Docker Container with docker run registryName:tag I'm trying to cross compile from amd64 -> arm6 via gitLab CI 1. Dockerfile: FROM…
Phong
  • 113
  • 1
  • 10
1
vote
1 answer

spi/mcp3008 trouble with getting a reading from chip, all channels read 0 (zero)

Pi model: Pi 3 A+ Os: Raspbian GNU/Linux 9 (stretch) <- it's stretch lite SPI: On Loop back test: spi mode: 0x0 bits per word: 8 max speed: 500000 Hz (500 KHz) TX | FF FF FF FF FF FF 40 00 00 00 00 95 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF…
user3017869
  • 121
  • 2
1
vote
0 answers

Running cockroachdb on a Raspberry pi 2 model b (32-bit) as a docker container

I'm trying to run cockcroachdb on a Raspberry Pi within a docker container, but they only provide 64-bit versions of cockroach as they explained it here . But I do see references of running cockroach on probably a 32-bit pi as in an official blog…
1
vote
1 answer

Rpi 4 Pin 29 default to High pull?

I am fairly new to Raspberry PI GPIO pins. I have some simple code which sets Pin 29 (BCM 5 in this picture) as an IN (READ) Pin and then reads from it after boot and on raspberry pi 3 it has always been Low however on the raspberry pi 4 it seems to…
ByteFlinger
  • 153
  • 1
  • 4
1
vote
1 answer

OpenGL 2 slowness

The Raspberry Pi 3b+ runs my OpenGL 2.1 program very slowly, with a frame rate of around 2 fps. How is this possible, when Python/Pyglet can render (using OpenGL, I suppose) much faster than this? And how may I fix it? The OpenGL 2.1 program I speak…
user96931
  • 739
  • 2
  • 9
  • 22
1
vote
1 answer

What is the frequency and cycle length of the pigpio library?

I've got a raspi 3b with an esc and a brushless motor attached. I can run the motor using pigpio the following commands: # First start the pigpio daemon sudo pigpiod # calibrate the esc pigs s 12 2000 pigs s 12 1000 # Run the motor really…
kramer65
  • 299
  • 1
  • 3
  • 10
0
votes
1 answer

Permissions for tar extraction

I just got a raspberry pi 3 and I am trying to install golang 1.8.5. However, when I tried to extract the tar.gz file to the usr/local/ directory, I got an error message saying that I did not have the permissions to extract the file to the…
0
votes
1 answer

Debugging with the Raspberry Pi

I am currently working on https://yfirbord.com I've just started playing around with the GrovePi and I wonder: what's the fastest way to write code on my mac, compile it for the RaspberryPi, ship it there, and run it? That would be for debugging,…
user68408
0
votes
2 answers

How can I install a Compiler for Golang?

I'm having a Raspberry pi4 4GB model, with the raspbian (TWISTER OS) installed. I have installed GOlang from google using the pip install golang command. But I am having problem with installing compilers. previously I tried to install 'Eclipse' but…