Skip to content
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

build not found #93

Open
raphael10-collab opened this issue Jun 27, 2021 · 1 comment
Open

build not found #93

raphael10-collab opened this issue Jun 27, 2021 · 1 comment

Comments

@raphael10-collab
Copy link

raphael10-collab commented Jun 27, 2021

(base) raphy@pc:~$ git clone https://github.com/majestrate/XD
Cloning into 'XD'...
remote: Enumerating objects: 7318, done.
remote: Counting objects: 100% (118/118), done.
remote: Compressing objects: 100% (80/80), done.
remote: Total 7318 (delta 62), reused 79 (delta 37), pack-reused 7200
Receiving objects: 100% (7318/7318), 3.86 MiB | 20.91 MiB/s, done.
Resolving deltas: 100% (4177/4177), done.
(base) raphy@pc:~$ cd XD/
(base) raphy@pc:~/XD$ make
cp /home/raphy/XD/contrib/logos/xd_logo.png ./contrib/webui/docroot/favicon.png
make -C ./contrib/webui
make[1]: Entering directory '/home/raphy/XD/contrib/webui'
cat /home/raphy/XD/contrib/webui/css/*.css > /home/raphy/XD/contrib/webui/docroot/xd.css
cat /home/raphy/XD/contrib/webui/lib/*.js > /home/raphy/XD/contrib/webui/docroot/xd.min.js
make[1]: Leaving directory '/home/raphy/XD/contrib/webui'
cp ./contrib/webui/docroot/index.html ./contrib/webui/docroot/xd.min.js ./contrib/webui/docroot/xd.css ./contrib/webui/docroot/favicon.png /home/raphy/XD/lib/rpc/assets/
build -a -ldflags "-X xd/lib/version.Git=06c5fa7" -tags='webui' -o XD
/bin/sh: 1: build: not found
make: *** [Makefile:46: XD] Error 127
(base) raphy@pc:~/XD$ 

OS: Ubuntu 20.04 Desktop
gcc : version 9.3.0

How to solve the problem?

But with go-get it seems working:

(base) raphy@pc:~$ go get -u -v github.com/majestrate/XD
github.com/majestrate/XD (download)
github.com/zeebo/bencode (download)
github.com/pkg/sftp (download)
github.com/kr/fs (download)
github.com/pkg/errors (download)
get "golang.org/x/crypto/ssh": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at //golang.org/x/crypto/ssh?go-get=1
get "golang.org/x/crypto/ssh": verifying non-authoritative meta tag
golang.org/x/crypto (download)
get "golang.org/x/crypto/chacha20": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at //golang.org/x/crypto/chacha20?go-get=1
get "golang.org/x/crypto/chacha20": verifying non-authoritative meta tag
get "golang.org/x/crypto/internal/subtle": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at //golang.org/x/crypto/internal/subtle?go-get=1
get "golang.org/x/crypto/internal/subtle": verifying non-authoritative meta tag
get "golang.org/x/crypto/curve25519": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at //golang.org/x/crypto/curve25519?go-get=1
get "golang.org/x/crypto/curve25519": verifying non-authoritative meta tag
get "golang.org/x/crypto/curve25519/internal/field": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at //golang.org/x/crypto/curve25519/internal/field?go-get=1
get "golang.org/x/crypto/curve25519/internal/field": verifying non-authoritative meta tag
get "golang.org/x/crypto/ed25519": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at //golang.org/x/crypto/ed25519?go-get=1
get "golang.org/x/crypto/ed25519": verifying non-authoritative meta tag
get "golang.org/x/crypto/poly1305": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at //golang.org/x/crypto/poly1305?go-get=1
get "golang.org/x/crypto/poly1305": verifying non-authoritative meta tag
get "golang.org/x/crypto/ssh/internal/bcrypt_pbkdf": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at //golang.org/x/crypto/ssh/internal/bcrypt_pbkdf?go-get=1
get "golang.org/x/crypto/ssh/internal/bcrypt_pbkdf": verifying non-authoritative meta tag
get "golang.org/x/crypto/blowfish": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at //golang.org/x/crypto/blowfish?go-get=1
get "golang.org/x/crypto/blowfish": verifying non-authoritative meta tag
get "gopkg.in/leonelquinteros/gotext.v1": found meta tag get.metaImport{Prefix:"gopkg.in/leonelquinteros/gotext.v1", VCS:"git", RepoRoot:"https://gopkg.in/leonelquinteros/gotext.v1"} at //gopkg.in/leonelquinteros/gotext.v1?go-get=1
gopkg.in/leonelquinteros/gotext.v1 (download)
github.com/leonelquinteros/gotext (download)
get "golang.org/x/text/language": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at //golang.org/x/text/language?go-get=1
get "golang.org/x/text/language": verifying non-authoritative meta tag
golang.org/x/text (download)
get "golang.org/x/text/internal/language": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at //golang.org/x/text/internal/language?go-get=1
get "golang.org/x/text/internal/language": verifying non-authoritative meta tag
get "golang.org/x/text/internal/tag": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at //golang.org/x/text/internal/tag?go-get=1
get "golang.org/x/text/internal/tag": verifying non-authoritative meta tag
get "golang.org/x/text/internal/language/compact": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at //golang.org/x/text/internal/language/compact?go-get=1
get "golang.org/x/text/internal/language/compact": verifying non-authoritative meta tag
github.com/majestrate/XD/lib/constants
golang.org/x/crypto/internal/subtle
github.com/majestrate/XD/lib/sync
golang.org/x/text/internal/tag
golang.org/x/crypto/blowfish
golang.org/x/crypto/chacha20
golang.org/x/crypto/curve25519/internal/field
golang.org/x/crypto/poly1305
github.com/majestrate/XD/lib/network
github.com/majestrate/XD/lib/log
github.com/majestrate/XD/lib/network/i2p
github.com/majestrate/XD/lib/network/inet
github.com/zeebo/bencode
github.com/majestrate/XD/lib/version
github.com/majestrate/XD/lib/gnutella
github.com/kr/fs
github.com/pkg/errors
golang.org/x/crypto/curve25519
golang.org/x/crypto/ed25519
golang.org/x/crypto/ssh/internal/bcrypt_pbkdf
github.com/majestrate/XD/lib/configparser
github.com/leonelquinteros/gotext/plurals
github.com/majestrate/XD/lib/rpc/assets
golang.org/x/text/internal/language
golang.org/x/crypto/ssh
github.com/majestrate/XD/lib/util
github.com/majestrate/XD/lib/stats
github.com/majestrate/XD/lib/common
github.com/majestrate/XD/lib/bittorrent
github.com/majestrate/XD/lib/bittorrent/extensions
github.com/majestrate/XD/lib/metainfo
github.com/majestrate/XD/lib/tracker
github.com/majestrate/XD/lib/dht
golang.org/x/text/internal/language/compact
golang.org/x/text/language
gopkg.in/leonelquinteros/gotext.v1
github.com/majestrate/XD/lib/translate
github.com/pkg/sftp
github.com/majestrate/XD/lib/fs
github.com/majestrate/XD/lib/storage
github.com/majestrate/XD/lib/bittorrent/swarm
github.com/majestrate/XD/lib/rpc/transmission
github.com/majestrate/XD/lib/config
github.com/majestrate/XD/lib/rpc
github.com/majestrate/XD/cmd/rpc
github.com/majestrate/XD/cmd/xd
github.com/majestrate/XD


(base) raphy@pc:~/go/src/github.com/majestrate/XD$ make
cp /home/raphy/go/src/github.com/majestrate/XD/contrib/logos/xd_logo.png ./contrib/webui/docroot/favicon.png
make -C ./contrib/webui
make[1]: Entering directory '/home/raphy/go/src/github.com/majestrate/XD/contrib/webui'
cat /home/raphy/go/src/github.com/majestrate/XD/contrib/webui/css/*.css > /home/raphy/go/src/github.com/majestrate/XD/contrib/webui/docroot/xd.css
cat /home/raphy/go/src/github.com/majestrate/XD/contrib/webui/lib/*.js > /home/raphy/go/src/github.com/majestrate/XD/contrib/webui/docroot/xd.min.js
make[1]: Leaving directory '/home/raphy/go/src/github.com/majestrate/XD/contrib/webui'
cp ./contrib/webui/docroot/index.html ./contrib/webui/docroot/xd.min.js ./contrib/webui/docroot/xd.css ./contrib/webui/docroot/favicon.png /home/raphy/go/src/github.com/majestrate/XD/lib/rpc/assets/
/usr/local/go/bin/go build -a -ldflags "-X xd/lib/version.Git=06c5fa7" -tags='webui' -o XD
go: downloading gopkg.in/leonelquinteros/gotext.v1 v1.3.1
go: downloading github.com/zeebo/bencode v1.0.0
go: downloading github.com/pkg/sftp v1.12.0
go: downloading golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897
go: downloading github.com/mattn/kinako v0.0.0-20170717041458-332c0a7e205a
go: downloading github.com/kr/fs v0.1.0
go: downloading github.com/pkg/errors v0.9.1
rm -f XD-CLI
ln -s XD XD-CLI
chmod  755 XD-CLI
(base) raphy@pc:~/go/src/github.com/majestrate/XD$ ls -lah
total 11M
drwxrwxr-x 10 raphy raphy 4,0K giu 27 19:07 .
drwxrwxr-x  3 raphy raphy 4,0K giu 27 18:40 ..
drwxrwxr-x  4 raphy raphy 4,0K giu 27 18:40 cmd
-rw-rw-r--  1 raphy raphy 1,6K giu 27 18:40 CODE_OF_CONDUCT.md
-rw-rw-r--  1 raphy raphy   40 giu 27 18:40 config.cson
drwxrwxr-x  9 raphy raphy 4,0K giu 27 18:40 contrib
drwxrwxr-x  3 raphy raphy 4,0K giu 27 18:40 debian
-rw-rw-r--  1 raphy raphy  506 giu 27 18:40 .dir-locals.el
drwxrwxr-x  4 raphy raphy 4,0K giu 27 18:40 docs
drwxrwxr-x  8 raphy raphy 4,0K giu 27 18:40 .git
drwxrwxr-x  2 raphy raphy 4,0K giu 27 18:40 .github
-rw-rw-r--  1 raphy raphy   90 giu 27 18:40 .gitignore
-rw-rw-r--  1 raphy raphy  553 giu 27 18:40 go.mod
-rw-rw-r--  1 raphy raphy 3,4K giu 27 18:40 go.sum
drwxrwxr-x 22 raphy raphy 4,0K giu 27 18:40 lib
-rw-rw-r--  1 raphy raphy 1,1K giu 27 18:40 LICENSE
-rw-rw-r--  1 raphy raphy  307 giu 27 18:40 main.go
-rw-rw-r--  1 raphy raphy 1,7K giu 27 18:40 Makefile
-rw-rw-r--  1 raphy raphy 2,2K giu 27 18:40 README.md
-rwxrwxr-x  1 raphy raphy 1,7K giu 27 18:40 release.sh
drwxrwxr-x  2 raphy raphy 4,0K giu 27 18:40 .vscode
-rwxr-xr-x  1 raphy raphy  11M giu 27 19:07 XD
lrwxrwxrwx  1 raphy raphy    2 giu 27 19:07 XD-CLI -> XD


(base) raphy@pc:~/go/src/github.com/majestrate/XD$ ./XD torrents.ini
[NFO] 2021-06-27 19:07:43.238476855 +0200 CEST m=+0.002479895	starting XD-0.4.1
[NFO] 2021-06-27 19:07:43.239285677 +0200 CEST m=+0.003288689	auto-generated new config at torrents.ini
[NFO] 2021-06-27 19:07:43.239491817 +0200 CEST m=+0.003494842	loaded config torrents.ini
[NFO] 2021-06-27 19:07:43.239517553 +0200 CEST m=+0.003520541	Ensure filesystem storage
[NFO] 2021-06-27 19:07:43.239909451 +0200 CEST m=+0.003912483	RPC enabled
[NFO] 2021-06-27 19:07:43.240023876 +0200 CEST m=+0.004026857	Swarm netLoop starting
[NFO] 2021-06-27 19:07:43.240223267 +0200 CEST m=+0.004226228	create new i2p session with 127.0.0.1:7656
[NFO] 2021-06-27 19:07:43.240274751 +0200 CEST m=+0.004277705	opening i2p session
@r4sas
Copy link
Contributor

r4sas commented Dec 19, 2021

How to solve the problem?

According to Makefile, no GOROOT nor go binary is found. Line build -a -ldflags ... must start with go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants