keybase / client

Keybase Go Library, Client, Service, OS X, iOS, Android, Electron
BSD 3-Clause "New" or "Revised" License
8.92k stars 1.23k forks source link

Need some help installing keybase on Raspberry PI 4: cannot find module providing package #24470

Open corelanc0d3r opened 3 years ago

corelanc0d3r commented 3 years ago

Raspberry PI:

root@rasp01# uname -a
Linux rasp01 5.4.83-v7l+ #1379 SMP Mon Dec 14 13:11:54 GMT 2020 armv7l GNU/Linux

I am trying to install the keybase client on my Raspberry PI4

First, I removed the existing (outdated) version of go

apt remove golang

Next, I downloaded and installed a more recent version from golang.org

wget https://golang.org/dl/go1.16.linux-armv6l.tar.gz
tar -C /usr/local -xzf go1.16.linux-armv6l.tar.gz
rm go1.16.linux-armv6l.tar.gz

I did some unlinking/relinking:

root@rasp01:/# cd /usr/bin
root@rasp01:/usr/bin # unlink go
root@rasp01:/usr/bin # unlink gofmt

root@rasp01:/usr/bin # ln -s /usr/local/go/bin/go go
root@rasp01:/usr/bin # ln -s /usr/local/go/bin/gofmt gofmt

Created a folder

mkdir ~/gopath
export GOPATH="$HOME/gopath"
export PATH=$PATH:/usr/local/go/bin
export PATH="$PATH:$GOPATH/bin" 

(added the exports in ~/.bashrcas well)

Logout/login, verify that go is working:

root@rasp01: # go version
go version go1.16 linux/arm

Installing keybase (fails at the end with "cannot find module providing package")

go get github.com/keybase/client/go/keybase

go: downloading github.com/keybase/client v1.0.48
go: downloading github.com/keybase/client v5.6.1+incompatible
go: downloading github.com/araddon/dateparse v0.0.0-20210207001429-0eec95c9db7e
go: downloading camlistore.org v0.0.0-20171230002226-a5a65f0d8b22
go: downloading github.com/PuerkitoBio/goquery v1.6.1
go: downloading bazil.org/fuse v0.0.0-20200524192727-fb710f7dfd05
go: downloading github.com/blang/semver v1.1.0
go: downloading github.com/buger/jsonparser v1.1.1
go: downloading github.com/btcsuite/btcutil v1.0.2
go: downloading github.com/blang/semver v3.5.1+incompatible
go: downloading github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/deckarep/golang-set v1.7.1
go: downloading github.com/dustin/go-humanize v1.0.0
go: downloading github.com/go-errors/errors v1.1.1
go: downloading github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e
go: downloading github.com/golang/mock v1.5.0
go: downloading github.com/hashicorp/golang-lru v0.5.4
go: downloading github.com/keybase/backoff v1.0.0
go: downloading github.com/keybase/clockwork v0.1.0
go: downloading github.com/keybase/go-codec v0.0.0-20180928230036-164397562123
go: downloading github.com/keybase/cli v1.2.0
go: downloading github.com/keybase/go-crypto v0.0.0-20200123153347-de78d2cb44f4
go: downloading github.com/keybase/colly v1.1.0
go: downloading github.com/keybase/go-framed-msgpack-rpc v0.0.0-20200311211234-26e5d1ace9c8
go: downloading github.com/keybase/go-jsonw v0.0.0-20200325173637-df90f282c233
go: downloading github.com/keybase/go-keychain v0.0.0-20201121013009-976c83ec27a6
go: downloading github.com/keybase/go-kext v0.0.0-20200218013902-e4a86908886a
go: downloading github.com/keybase/go-logging v0.0.0-20200423195923-7a5ab2ef7dec
go: downloading github.com/keybase/go-ps v0.0.0-20190827175125-91aafc93ba19
go: downloading github.com/keybase/go-porterstemmer v1.0.1
go: downloading github.com/keybase/go-triplesec v0.0.0-20200218020411-6687d79e9f55
go: downloading github.com/keybase/go-updater v0.0.0-20200504171627-3b2b615613e2
go: downloading github.com/keybase/go.dbus v0.0.0-20200324223359-a94be52c0b03
go: downloading github.com/keybase/go-winio v0.4.11
go: downloading github.com/keybase/saltpack v0.0.0-20200430135328-e19b1910c0c5
go: downloading github.com/keybase/pipeliner v0.0.0-20200218014537-8399f4d89dd3
go: downloading github.com/kr/text v0.2.0
go: downloading github.com/kyokomi/emoji v1.5.1
go: downloading github.com/kyokomi/emoji v2.2.4+incompatible
go: downloading github.com/mattn/go-isatty v0.0.12
go: downloading github.com/miekg/dns v1.1.40
go: downloading github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/keybase/xurls v1.1.0
go: downloading github.com/pkg/xattr v0.4.3
go: downloading github.com/stellar/go v0.0.0-20210302194627-39409ffc7239
go: downloading github.com/keybase/golang-ico v0.0.0-20181117022008-819cbeb217c9
go: downloading github.com/keybase/stellarnet v0.0.0-20200318171650-0b120a59a787
go: downloading github.com/stretchr/testify v1.7.0
go: downloading github.com/syndtr/goleveldb v1.0.0
go: downloading golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83
go: downloading golang.org/x/image v0.0.0-20210220032944-ac19c3e999fb
go: downloading golang.org/x/net v0.0.0-20210226172049-e18ecbb05110
go: downloading golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
go: downloading golang.org/x/sys v0.0.0-20210303074136-134d130e1a04
go: downloading golang.org/x/text v0.3.5
go: downloading golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba
go: downloading rsc.io/qr v0.2.0
go: downloading stathat.com/c/ramcache v1.0.0
go: downloading github.com/BurntSushi/toml v0.3.1
go: downloading github.com/andybalholm/cascadia v1.1.0
go: downloading google.golang.org/appengine v1.6.1
go: downloading github.com/asaskevich/govalidator v0.0.0-20180319081651-7d2e70ef918f
go: downloading github.com/lib/pq v1.2.0
go: downloading github.com/stellar/go-xdr v0.0.0-20201028102745-f80a23dac78a
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
go: downloading github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db
go: downloading github.com/manucorporat/sse v0.0.0-20160126180136-ee05b128a739
go: downloading github.com/stretchr/objx v0.1.1
go: downloading github.com/go-chi/chi v4.0.3+incompatible
go: downloading github.com/gorilla/schema v1.1.0
go: downloading github.com/segmentio/go-loggly v0.5.1-0.20171222203950-eb91657e62b2
go: downloading github.com/sirupsen/logrus v1.4.1
go: downloading github.com/golang/protobuf v1.3.1
go: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.1
go: downloading github.com/gobwas/glob v0.2.3
go: downloading github.com/gocolly/colly v1.2.0
go: downloading github.com/antchfx/htmlquery v1.2.3
go: downloading github.com/antchfx/xmlquery v1.3.5
go: downloading github.com/keybase/msgpackzip v0.0.0-20200218014524-5ef7f4879d9d
go: downloading github.com/kennygrant/sanitize v1.2.4
go: downloading github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd
go: downloading github.com/shopspring/decimal v1.2.0
go: downloading github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca
go: downloading github.com/temoto/robotstxt v1.1.1
go: downloading go4.org v0.0.0-20201209231011-d4a079459e60
go: downloading github.com/nf/cr2 v0.0.0-20180623103828-4699471a17ed
go: downloading google.golang.org/appengine v1.6.5
go: downloading github.com/antchfx/xpath v1.1.10
go: downloading github.com/golang/protobuf v1.3.3
github.com/keybase/client/go/keybase imports
    github.com/keybase/client/go/service imports
    github.com/stellar/go/build: cannot find module providing package github.com/stellar/go/build
github.com/keybase/client/go/keybase imports
    github.com/keybase/client/go/service imports
    github.com/stellar/go/clients/horizon: cannot find module providing package github.com/stellar/go/clients/horizon
go: downloading github.com/go-chi/chi v1.5.4

How can I fix this?

3nprob commented 2 years ago

@corelanc0d3r looks related to gomodules. some hints in #24479