evcc-io / evcc

Sonne tanken ☀️🚘
https://evcc.io
MIT License
3.29k stars 604 forks source link

Installation error #3474

Closed ano302 closed 2 years ago

ano302 commented 2 years ago

Hi, I had to reinstalled my raspbian because of a buggy SD card. I had evcc 0.88 already instlalled and that worked without problems. Now I got a problem during installation on a Raspberry Pi Zero 2 W


sudo apt-get install -y nodejs
sudo apt-get install -y golang
git clone https://github.com/evcc-io/evcc.git

Next step was a make where I got the following error.


go: downloading cloud.google.com/go/compute v1.6.1
main.go:4:2: package embed is not in GOROOT (/usr/lib/go-1.15/src/embed)
tools.go:6:2: import "github.com/alvaroloes/enumer" is a program, not an importable package
tools.go:7:2: import "github.com/golang/mock/mockgen" is a program, not an importable package
../../go/pkg/mod/github.com/evcc-io/eebus@v0.0.0-20220403153356-c4f2bab5546f/cert/cert.go:16:2: package io/fs is not in GOROOT (/usr/lib/go-1.15/src/io/fs)
make: *** [Makefile:67: build] Error 1

Any idea what is going on?

thierolm commented 2 years ago

Why are U not simply using the pi tarball installation? See https://docs.evcc.io/docs/installation/manual#erstinstallation

Latest stable release tarball can be found here: https://github.com/evcc-io/evcc/releases/latest

By doing this, there is no need to clone the repo, install go, node etc ... no make necessary ...

andig commented 2 years ago

Your go version is outdated.

ano302 commented 2 years ago

@andig That was the case, thank you. Updated Go and it went through. @thierolm The main reason is, that I read the github page and that was the installation mode described there. Also I have some experience with git and I find it convenient.

PeterPablo commented 1 year ago

On a raspbian bullseye sudo apt install golang nodejs yields installation of these packages

Get:1 http://deb.debian.org/debian bullseye/main arm64 golang-1.15-src arm64 1.15.15-1~deb11u4 [13.9 MB]
Get:2 http://security.debian.org/debian-security bullseye-security/main arm64 libnode72 arm64 12.22.12~dfsg-1~deb11u1 [7,693 kB]
Get:3 http://security.debian.org/debian-security bullseye-security/main arm64 nodejs arm64 12.22.12~dfsg-1~deb11u1 [147 kB]
Get:4 http://security.debian.org/debian-security bullseye-security/main arm64 nodejs-doc all 12.22.12~dfsg-1~deb11u1 [2,547 kB]
Get:5 http://deb.debian.org/debian bullseye/main arm64 golang-1.15-go arm64 1.15.15-1~deb11u4 [43.0 MB]
Get:6 http://deb.debian.org/debian bullseye/main arm64 golang-1.15-doc all 1.15.15-1~deb11u4 [2,455 kB]
Get:7 http://deb.debian.org/debian bullseye/main arm64 golang-1.15 all 1.15.15-1~deb11u4 [27.9 kB]
Get:8 http://deb.debian.org/debian bullseye/main arm64 golang-src arm64 2:1.15~1 [4,856 B]
Get:9 http://deb.debian.org/debian bullseye/main arm64 golang-go arm64 2:1.15~1 [23.9 kB]
Get:10 http://deb.debian.org/debian bullseye/main arm64 golang-doc all 2:1.15~1 [4,888 B]
Get:11 http://deb.debian.org/debian bullseye/main arm64 golang arm64 2:1.15~1 [4,844 B]
Get:12 http://deb.debian.org/debian bullseye/main arm64 libc-ares2 arm64 1.17.1-1+deb11u1 [99.9 kB]
Get:13 http://deb.debian.org/debian bullseye/main arm64 libjs-highlight.js all 9.18.5+dfsg1-1 [397 kB]

and invoking make

pi@raspberrypi:~/bin/evcc $ make
Version: 0.111.1 f38353bf 2023-01-20_07:41:26
CGO_ENABLED=0 go build -v -tags=release -ldflags='-X github.com/evcc-io/evcc/server.Version=0.111.1 -X github.com/evcc-io/evcc/server.Commit=f38353bf -s -w'
go: downloading github.com/golang/mock v1.6.0
go: downloading github.com/dmarkham/enumer v1.5.7
go: downloading github.com/Masterminds/sprig/v3 v3.2.3
go: downloading github.com/joho/godotenv v1.4.0
go: downloading github.com/eclipse/paho.mqtt.golang v1.4.2
go: downloading github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
go: downloading github.com/andig/gosunspec v0.0.0-20211108155140-af2e73b86e71
go: downloading github.com/olekukonko/tablewriter v0.0.5
go: downloading github.com/prometheus/client_golang v1.14.0
go: downloading github.com/libp2p/zeroconf/v2 v2.2.0
go: downloading gitlab.com/bboehmke/sunny v0.15.1-0.20211022160056-2fba1c86ade6
go: downloading golang.org/x/exp v0.0.0-20230116083435-1de6713980de
go: downloading github.com/jinzhu/copier v0.3.5
go: downloading github.com/dylanmei/iso8601 v0.1.0
go: downloading github.com/grid-x/modbus v0.0.0-20230105075906-8b31e0d1647e
go: downloading golang.org/x/crypto v0.5.0
go: downloading golang.org/x/tools v0.5.0
go: downloading github.com/nicksnyder/go-i18n/v2 v2.2.1
go: downloading github.com/nirasan/go-oauth-pkce-code-verifier v0.0.0-20220510032225-4f9f17eaec4c
go: downloading github.com/avast/retry-go/v3 v3.1.1
go: downloading github.com/jpfielding/go-http-digest v0.0.0-20211006141426-fbc93758452e
go: downloading github.com/imdario/mergo v0.3.13
go: downloading github.com/cenkalti/backoff v2.2.1+incompatible
go: downloading github.com/bogosj/tesla v1.1.0
go: downloading github.com/volkszaehler/mbmd v0.0.0-20221223133217-870b3b92b81e
go: downloading github.com/spf13/cobra v1.6.1
go: downloading github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.5.1
go: downloading github.com/pascaldekloe/name v1.0.1
go: downloading golang.org/x/net v0.5.0
go: downloading github.com/google/go-github v17.0.0+incompatible
go: downloading github.com/joeshaw/carwings v0.0.0-20220711204617-d90801cf2848
go: downloading github.com/miekg/dns v1.1.50
go: downloading github.com/google/uuid v1.3.0
go: downloading google.golang.org/protobuf v1.28.1
go: downloading golang.org/x/text v0.6.0
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
go: downloading github.com/grid-x/serial v0.0.0-20211107191517-583c7356b3aa
go: downloading github.com/korylprince/ipnetgen v1.0.1
go: downloading github.com/google/go-github/v32 v32.1.0
go: downloading golang.org/x/sync v0.1.0
go: downloading github.com/enbility/cemd v0.1.5
go: downloading github.com/prometheus/common v0.39.0
go: downloading github.com/BurntSushi/toml v1.2.1
go: downloading github.com/fatih/structs v1.1.0
go: downloading github.com/Masterminds/goutils v1.1.1
go: downloading github.com/manifoldco/promptui v0.9.0
go: downloading github.com/spf13/cast v1.5.0
go: downloading github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c
go: downloading github.com/itchyny/gojq v0.12.11
go: downloading github.com/golang/protobuf v1.5.2
go: downloading github.com/PuerkitoBio/goquery v1.8.0
go: downloading github.com/enbility/eebus-go v0.1.5
go: downloading github.com/samber/lo v1.37.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/hashicorp/go-version v1.6.0
go: downloading gorm.io/gorm v1.24.3
go: downloading github.com/json-iterator/go v1.1.12
go: downloading google.golang.org/grpc v1.52.0
go: downloading github.com/gokrazy/updater v0.0.0-20211121155532-30ae8cd650ea
go: downloading golang.org/x/oauth2 v0.4.0
go: downloading github.com/robertkrimen/otto v0.2.1
go: downloading github.com/cloudfoundry/jibber_jabber v0.0.0-20151120183258-bcc4c8345a21
go: downloading github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
go: downloading github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef
go: downloading github.com/basvdlei/gotsmart v0.0.3
go: downloading github.com/prometheus/client_model v0.3.0
go: downloading github.com/benbjohnson/clock v1.3.0
go: downloading github.com/gorilla/mux v1.8.0
go: downloading github.com/go-http-utils/etag v0.0.0-20161124023236-513ea8f21eb1
go: downloading github.com/mabunixda/wattpilot v1.1.1
go: downloading github.com/AlecAivazis/survey/v2 v2.3.6
go: downloading github.com/philippseith/signalr v0.6.1-0.20220829124759-bd5ffb679356
go: downloading github.com/influxdata/influxdb-client-go v1.4.0
go: downloading github.com/shopspring/decimal v1.3.1
go: downloading github.com/aws/aws-sdk-go v1.44.181
go: downloading github.com/modern-go/reflect2 v1.0.2
go: downloading github.com/hasura/go-graphql-client v0.8.2-0.20230118111322-12655772463c
go: downloading github.com/teivah/onecontext v1.3.0
go: downloading github.com/influxdata/influxdb-client-go/v2 v2.12.1
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading gopkg.in/sourcemap.v1 v1.0.5
go: downloading golang.org/x/sys v0.4.0
go: downloading github.com/muka/go-bluetooth v0.0.0-20220219050759-674a63b8741a
go: downloading github.com/gorilla/websocket v1.5.0
go: downloading github.com/godbus/dbus/v5 v5.1.0
go: downloading github.com/gorilla/handlers v1.5.1
go: downloading github.com/prometheus/procfs v0.9.0
go: downloading github.com/glebarez/sqlite v1.6.0
go: downloading github.com/go-kit/log v0.2.1
go: downloading github.com/influxdata/line-protocol v0.0.0-20210922203350-b1ad95c89adf
go: downloading github.com/chzyer/readline v1.5.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading nhooyr.io/websocket v1.8.7
go: downloading github.com/go-ping/ping v1.1.0
go: downloading github.com/vmihailenco/msgpack/v5 v5.3.5
go: downloading github.com/felixge/httpsnoop v1.0.3
go: downloading github.com/cenkalti/backoff/v4 v4.2.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/andig/rct v0.0.0-20221101081802-96d01efdc68c
go: downloading github.com/jinzhu/inflection v1.0.0
go: downloading github.com/containrrr/shoutrrr v0.6.1
go: downloading github.com/jinzhu/now v1.1.5
go: downloading github.com/andybalholm/cascadia v1.3.1
go: downloading github.com/Masterminds/semver/v3 v3.2.0
go: downloading golang.org/x/mod v0.7.0
go: downloading github.com/ahmetb/go-linq/v3 v3.2.0
go: downloading github.com/sirupsen/logrus v1.9.0
go: downloading github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d
go: downloading github.com/golang-module/carbon/v2 v2.2.3
go: downloading github.com/go-http-utils/headers v0.0.0-20181008091004-fed159eddc2a
go: downloading github.com/rickb777/date v1.20.1
go: downloading github.com/glebarez/go-sqlite v1.20.0
go: downloading github.com/google/go-querystring v1.1.0
go: downloading github.com/shurcooL/graphql v0.0.0-20220606043923-3cf50f8a0a29
go: downloading github.com/andig/mbserver v0.0.0-20221101171752-364e71b0089c
go: downloading github.com/denisbrodbeck/machineid v1.0.1
go: downloading google.golang.org/api v0.107.0
go: downloading github.com/spf13/viper v1.14.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading modernc.org/sqlite v1.20.2
go: downloading github.com/cjrd/allocate v0.0.0-20220510215731-986f24f0fb18
go: downloading modernc.org/libc v1.22.2
go: downloading google.golang.org/genproto v0.0.0-20230117162540-28d6b9783ac4
go: downloading github.com/vmihailenco/tagparser/v2 v2.0.0
go: downloading github.com/huandu/xstrings v1.4.0
go: downloading github.com/lorenzodonini/ocpp-go v0.16.1-0.20220927200117-d4afed542168
go: downloading github.com/deepmap/oapi-codegen v1.12.4
go: downloading github.com/spf13/jwalterweatherman v1.1.0
go: downloading github.com/cespare/xxhash v1.1.0
go: downloading github.com/cespare/xxhash/v2 v2.2.0
go: downloading github.com/lunixbochs/struc v0.0.0-20200707160740-784aaebc1d40
go: downloading github.com/fsnotify/fsnotify v1.6.0
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading github.com/koron/go-ssdp v0.0.3
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/basgys/goxml2json v1.1.0
go: downloading github.com/gregdel/pushover v1.1.0
go: downloading github.com/writeas/go-strip-markdown v2.0.1+incompatible
go: downloading github.com/holoplot/go-avahi v1.0.1
go: downloading github.com/magiconair/properties v1.8.7
go: downloading github.com/apapsch/go-jsonmerge/v2 v2.0.0
go: downloading gitlab.com/c0b/go-ordered-json v0.0.0-20201030195603-febf46534d5a
go: downloading github.com/go-logfmt/logfmt v0.5.1
go: downloading github.com/klauspost/compress v1.15.14
go: downloading github.com/mattn/go-runewidth v0.0.14
go: downloading github.com/rivo/uniseg v0.4.3
go: downloading github.com/andig/go-powerwall v0.2.1-0.20230102102528-4d59ac6910c6
go: downloading github.com/spf13/afero v1.9.3
go: downloading github.com/go-http-utils/fresh v0.0.0-20161124030543-7231e26a4b27
go: downloading github.com/mitchellh/copystructure v1.2.0
go: downloading github.com/fatih/color v1.13.0
go: downloading gopkg.in/go-playground/validator.v9 v9.31.0
go: downloading github.com/coreos/go-oidc/v3 v3.5.0
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.4
go: downloading github.com/rickb777/plural v1.4.1
go: downloading github.com/mitchellh/reflectwalk v1.0.2
go: downloading github.com/subosito/gotenv v1.4.2
go: downloading github.com/go-jose/go-jose/v3 v3.0.0
go: downloading github.com/pelletier/go-toml v1.9.5
go: downloading github.com/go-playground/universal-translator v0.18.0
go: downloading github.com/leodido/go-urn v1.2.1
go: downloading golang.org/x/term v0.4.0
go: downloading modernc.org/mathutil v1.5.0
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/pelletier/go-toml/v2 v2.0.6
go: downloading github.com/go-playground/locales v0.14.1
go: downloading github.com/itchyny/timefmt-go v0.1.5
go: downloading github.com/mattn/go-isatty v0.0.17
go: downloading github.com/mergermarket/go-pkcs7 v0.0.0-20170926155232-153b18ea13c9
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20220927061507-ef77025ab5aa
go: downloading modernc.org/memory v1.5.0
go: downloading github.com/jmespath/go-jmespath v0.4.0
go: downloading github.com/jeremywohl/flatten v1.0.1
go: downloading gopkg.in/ini.v1 v1.67.0
go: downloading go.opencensus.io v0.24.0
go: downloading github.com/googleapis/gax-go/v2 v2.7.0
go: downloading github.com/googleapis/enterprise-certificate-proxy v0.2.1
go: downloading cloud.google.com/go v0.107.0
go: downloading cloud.google.com/go/compute v1.15.1
go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
go: downloading cloud.google.com/go/compute/metadata v0.2.3
main.go:4:2: package embed is not in GOROOT (/usr/lib/go-1.15/src/embed)
tools.go:6:2: import "github.com/dmarkham/enumer" is a program, not an importable package
tools.go:7:2: import "github.com/golang/mock/mockgen" is a program, not an importable package
../../go/pkg/mod/github.com/mattn/go-runewidth@v0.0.14/runewidth.go:7:2: found packages uniseg (doc.go) and main (gen_breaktest.go) in /home/pi/go/pkg/mod/github.com/rivo/uniseg@v0.4.3
provider/javascript/registry.go:11:2: import "github.com/robertkrimen/otto/underscore" is a program, not an importable package
server/assets/assets.go:3:8: package io/fs is not in GOROOT (/usr/lib/go-1.15/src/io/fs)
make: *** [Makefile:72: build] Error 1

Anyhow, I'm now trying to find Go 1.18 and Nodejs 18 for Raspbian to replace the apt versions golang 1.15 and nodejs 12.22...

@ano302, how did you obtain a more recent version of Go?