-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release go client for more platforms #2938
Comments
Which distro are you using? I wonder if they could package it. |
Raspbian. Do other big distros like debian or ubuntu package keybase? |
Supporting linux/arm we should probably have both GOARM=5 and GOARM=7 builds, so leaving this to distros could make sense. Btw for cross-compiled things xgo is a very nice solution. |
@taruti Ack on leaving this to distros, meanwhile mine was a quick and dirty solution (and an excercise in Docker) |
I also have this problem. I'm running Arch on a Raspberry Pi3 and get:
|
@PeterTGarner Keybase isn't going to distribute ARM packages directly, but if you want to create tested patches to the https://github.com/keybase/client/tree/master/packaging/linux/arch |
Thanks, I'll look into that! Looks a really interesting project and I don't On Wednesday, 5 October 2016, Chris Ball notifications@github.com wrote:
Peter T Garner MBCS |
The The AUR package that builds Keybase from source is That said, both of those packages are for building the whole CLI+KBFS+GUI world. Our CLI is just one go binary, so if all you want for your Raspberry Pi is the CLI, it's probably easier to run |
for those instereted in the Docker build approach, i've pushed a branch https://github.com/juzam/docker-keybase-build/tree/docker-compose that simplifies the build process especially on ARM (because of the golang version requirement and the lack of an official golang 1.7 arm docker image) Feedback appreciated, this will later be merged with master. |
I'm running Raspbian Jessie and I had no problems just following the build instructions and using I'm running a Raspberry Pi 3. But it would be nice if there were a PPA for it or something. |
@waynew @oconnor663 The build instructions almost worked for me, but I received the following errors running go1.7.4:
I updated to go1.9 with the following (source) and everything worked like a charm:
I used a Raspberry Pi 2 Model B running Raspbian Stretch Lite 2017-09-07. |
Yeah good point, you need 1.8+ to build keybase
…On Sat, Oct 7, 2017 at 2:45 PM John Rosewicz ***@***.***> wrote:
@waynew <https://github.com/waynew> @oconnor663
<https://github.com/oconnor663> The build instructions
<https://github.com/keybase/client/blob/master/go/README.md#building>
*almost* worked for me, but I received the following errors running
go1.7.4:
gopath/src/github.com/keybase/client/go/protocol/keybase1/extras.go:1451: undefined: sort.Slice
gopath/src/github.com/keybase/client/go/protocol/keybase1/extras.go:1452: undefined: sort.Slice
gopath/src/github.com/keybase/client/go/protocol/keybase1/extras.go:1461: undefined: sort.Slice
gopath/src/github.com/keybase/client/go/protocol/keybase1/extras.go:1468: undefined: sort.Slice
I updated to go1.9 with the following (source
<https://gist.github.com/simoncos/49463a8b781d63b5fb8a3b666e566bb5>) and
everything worked like a charm:
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
I used a Raspberry Pi 2 Model B running Raspbian Stretch Lite 2017-09-07.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2938 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA05_ziiwegB5NpmXuriFcszP0wN7vq3ks5sp8a6gaJpZM4IrPkg>
.
|
Woops, thanks for pointing that out @johnnyRose, I'll update the instructions now. |
I tried compiling it natively (not cross-compiling) on Raspberry Pi 2:
Same with building it explicitly:
There is 700MB of RAM available:
And using the currently latest stable version of go:
Is there a way to build it natively? EDIT: I increased the swap size
Then it apparently failed with
but the 52MB |
I successfully build keybase executable using @stefanb workaround, but is it possible to run KBFS on RPI? go get github.com/keybase/client/go/keybase
go build -tags production github.com/keybase/client/go/keybase; and sudo mv keybase /usr/bin/
go build -tags production github.com/keybase/client/go/kbfs/kbfsfuse; and sudo mv kbfsfuse /usr/bin/
go build -tags production github.com/keybase/client/go/kbfs/kbfsgit/git-remote-keybase; and sudo mv git-remote-keybase /usr/bin/
go build -tags production github.com/keybase/client/go/kbfs/redirector; and sudo mv redirector /usr/bin/keybase-redirector
sudo wget https://raw.githubusercontent.com/keybase/client/master/packaging/linux/systemd/keybase.service -P /usr/lib/systemd/user/
sudo wget https://raw.githubusercontent.com/keybase/client/master/packaging/linux/systemd/kbfs.service -P /usr/lib/systemd/user/
sudo wget https://raw.githubusercontent.com/keybase/client/master/packaging/linux/systemd/keybase-redirector.service -P /usr/lib/systemd/user/
sudo mkdir /opt/keybase
sudo wget https://raw.githubusercontent.com/keybase/client/master/packaging/linux/crypto_squirrel.txt -P /opt/keybase/
sudo wget https://raw.githubusercontent.com/keybase/client/master/packaging/linux/post_install.sh -P /opt/keybase/
chmod +x /opt/keybase/post_install.sh
/opt/keybase/post_install.sh
curl https://github.com/keybase/client/blob/master/packaging/linux/run_keybase > run_keybase
./run_keybase -g And the result is
I have no other idea how to make kbfs mount into |
Keybase is working fine for me on Raspberry pi, at least the git repository part that I needed. I didn't set up the Will give it another try, it is due for update anyway ;-) |
Hey.
Yesterday I tried to install keybase on a Raspberry Pi (ARM).
Installing go didn't work, as compiling it on the RPi failed after 17 hours.
After a bit of research I was able to compile it on my Mac with:
And now keybase works beautifully on the Raspberry Pi.
Wouldn't it make sense that keybase cross-compiles and releases the client for more platforms?
Especially considering, that keybase is all about 1
and the Raspberry Pi designed to be easy access as well 2:
As an example of a go OSS project that does this, i found syncthing 3.
Is there anything we could do to help you with broader cross-compiling and releasing of more binaries?
The text was updated successfully, but these errors were encountered: