github / github/gh-ost

that i can‘t build gh-ost successfullly

Offen
#522 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Go
Sterne
13.6k
Forks
1.4k
Ø Merge
2 Std. 31 Min.
Gemergte PRs (30 T.)
4

Beschreibung

hi,
when i firstly build the gh-ost by "/build.sh" then comes the error :

```
Building macOS binary
go/logic/server.go:9:2: cannot find package "bufio" in any of:
/usr/local/go/src/github.com/github/gh-ost/vendor/bufio (vendor tree)
/usr/local/go/src/bufio (from $GOROOT)
/usr/local/go/src/github.com/github/gh-ost/src/bufio (from $GOPATH)
vendor/golang.org/x/text/transform/transform.go:12:2: cannot find package "bytes" in any of:
/usr/local/go/src/github.com/github/gh-ost/vendor/bytes (vendor tree)
/usr/local/go/src/bytes (from $GOROOT)
/usr/local/go/src/github.com/github/gh-ost/src/bytes (from $GOPATH)
vendor/github.com/satori/go.uuid/uuid.go:29:2: cannot find package "crypto/md5" in any of:
/usr/local/go/src/github.com/github/gh-ost/vendor/crypto/md5 (vendor tree)
/usr/local/go/src/crypto/md5 (from $GOROOT)
......
Build failed for macOS
Then it‘s stopped
my go env :

- [root@localhost gh-ost]# go env
- GOARCH="amd64"
- GOBIN=""
- GOEXE=""
- GOHOSTARCH="amd64"
- GOHOSTOS="linux"
- GOOS="linux"
- GOPATH="/usr/local/go/src/github.com/github/gh-ost"
- GORACE=""
- GOROOT="/usr/local/go"
- GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
- CC="gcc"
- GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build686716363=/tmp/go-build"
- CXX="g++"
- CGO_ENABLED="1"
```

so pretty wanner know the reason of my issues .Thank you !


Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, den Fehler mit /build.sh zu reproduzieren, und vergleiche die gemeldeten go env-Werte mit den Build-Erwartungen des Repositorys. Verfolge, warum nach Standard-Go-Paketen wie bufio und bytes im Vendor-Verzeichnis des Projekts gesucht wird, und bestätige anschließend, dass /build.sh für die angeforderten Build-Ziele erfolgreich abgeschlossen wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
go
Bereich
build-system
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.