Skip to content

Problem installing #2

@rikgale

Description

@rikgale

Hello
I am trying to install this so I can cache OpenAIP tiles for my Virtual Radar Server set up.
Firstly I would like to make it clear that I have 0 knowledge about Go - other than what I have tried to pick up in the last couple of hours before throwing my arms up and asking for help.

I have installed the latest version of Golang 1.20.3 and my GoPath and envars are set as

GO111MODULE="auto"
GOARCH="arm64"
GOBIN=""
GOCACHE="/home/pi/.cache/go-build"
GOENV="/home/pi/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/pi/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/pi/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_arm64"
GOVCS=""
GOVERSION="go1.20.3"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3601150535=/tmp/go-build -gno-r

I downloaded the repo and placed in /home/pi/go-maptilecache

I created a file called cache.go in /home/pi and added the config as suggested in the front page

ran go run cache.go

got

cache.go:7:5: cannot find package "github.com/Christian1984/go-maptilecache" in any of:
        /usr/local/go/src/github.com/Christian1984/go-maptilecache (from $GOROOT)
        /home/pi/go/src/github.com/Christian1984/go-maptilecache (from $GOPATH)

I am probably doing something very wrong, but I have no idea what.

Any help/guidance greatly apprecaited. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions