deroproject / derosuite

DERO: Secure, Anonymous Blockchain with Smart Contracts. Subscribe to Dero announcements by sending mail to lists@dero.io with subject: subscribe announcements
http://wiki.dero.io
Other
279 stars 96 forks source link

cannot compile from the source #28

Closed Marlinski closed 3 years ago

Marlinski commented 3 years ago

hi,

I have tried compiling the project from its source by following the doc, but it failed:

When trying to install the derosuite with go get -u I have the following error:

go get -u github.com/deroproject/derosuite/...                                                                                                                                                          

go: downloading github.com/deroproject/derosuite v2.1.5+incompatible
go: downloading github.com/blang/semver v1.1.0
go: downloading github.com/dgraph-io/badger v1.6.2
go: downloading github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e
go: downloading github.com/coreos/bbolt v1.3.5
go: downloading github.com/dchest/blake256 v1.1.0
go: downloading github.com/ebfe/keccak v0.0.0-20150115210727-5cc570678d1b
go: downloading github.com/beevik/ntp v0.3.0
go: downloading github.com/aead/skein v0.0.0-20160722084837-9365ae6e95d2
go: downloading github.com/dustin/go-humanize v1.0.0
go: downloading github.com/armon/go-radix v1.0.0
go: downloading github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815
go: downloading github.com/blang/semver v3.5.1+incompatible
go: downloading github.com/intel-go/fastjson v0.0.0-20170329170629-f846ae58a1ab
go: downloading github.com/intel-go/cpuid v0.0.0-20200819041909-2aa72927c3e2
go: downloading github.com/paulbellamy/ratecounter v0.2.0
go: downloading github.com/satori/go.uuid v1.2.0
go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
go: downloading github.com/hashicorp/golang-lru v0.5.4
go: downloading github.com/osamingo/jsonrpc v0.0.0-20200219081550-352acaa9f2b2
go: downloading github.com/prometheus/client_golang v1.10.0
go: downloading github.com/romana/rlog v0.0.0-20171115192701-f018bc92e7d7
go: downloading github.com/miekg/dns v1.1.42
go: downloading github.com/ybbus/jsonrpc v1.1.1
go: downloading gitlab.com/nitya-sattva/go-x11 v0.0.0-20161218191547-fe7663eb78fd
go: downloading github.com/vmihailenco/msgpack v4.0.4+incompatible
go: downloading github.com/sirupsen/logrus v1.8.1
go: downloading golang.org/x/net v0.0.0-20210505214959-0714010a04ed
go: downloading golang.org/x/crypto v0.0.0-20210506145944-38f3c27a63bf
go: downloading golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba
go: downloading github.com/ybbus/jsonrpc v2.1.2+incompatible
go get: github.com/coreos/bbolt@none updating to
    github.com/coreos/bbolt@v1.3.5: parsing go.mod:
    module declares its path as: go.etcd.io/bbolt
            but was required as: github.com/coreos/bbolt

Thus I downloaded the source with git clone and I tried running sh build_all.sh but this fails with the following error:

go.mod file not found in current directory or any parent directory; see 'go help modules'

I then tried creating a go mod myself but this also fails:

$ go mod init derosuite

go: finding module for package github.com/deroproject/derosuite/config
go: finding module for package github.com/deroproject/derosuite/blockchain/inputmaturity
go: finding module for package golang.org/x/crypto/sha3
go: finding module for package github.com/romana/rlog
go: finding module for package github.com/deroproject/derosuite/cryptonight
go: finding module for package github.com/deroproject/derosuite/address
go: finding module for package golang.org/x/crypto/salsa20/salsa
go: finding module for package github.com/deroproject/derosuite/block
go: finding module for package github.com/deroproject/derosuite/transaction
go: finding module for package github.com/deroproject/derosuite/astrobwt
go: finding module for package github.com/deroproject/derosuite/crypto
go: finding module for package github.com/ebfe/keccak
go: finding module for package github.com/deroproject/derosuite/blockchain/mempool
go: finding module for package github.com/deroproject/derosuite/checkpoints
go: finding module for package github.com/deroproject/derosuite/crypto/ringct
go: finding module for package github.com/deroproject/derosuite/emission
go: finding module for package github.com/deroproject/derosuite/errormsg
go: finding module for package github.com/deroproject/derosuite/globals
go: finding module for package github.com/deroproject/derosuite/metrics
go: finding module for package github.com/deroproject/derosuite/storage
go: finding module for package github.com/deroproject/derosuite/structures
go: finding module for package github.com/golang/groupcache/lru
go: finding module for package github.com/hashicorp/golang-lru
go: finding module for package github.com/prometheus/client_golang/prometheus
go: finding module for package github.com/sirupsen/logrus
go: finding module for package github.com/vmihailenco/msgpack
go: finding module for package golang.org/x/time/rate
go: finding module for package github.com/deroproject/derosuite/blockchain
go: finding module for package github.com/intel-go/fastjson
go: finding module for package github.com/osamingo/jsonrpc
go: finding module for package github.com/prometheus/client_golang/prometheus/promhttp
go: finding module for package github.com/armon/go-radix
go: finding module for package github.com/chzyer/readline
go: finding module for package github.com/docopt/docopt-go
go: finding module for package github.com/ybbus/jsonrpc
go: finding module for package golang.org/x/sys/unix
go: finding module for package github.com/deroproject/derosuite/walletapi
go: finding module for package github.com/deroproject/derosuite/walletapi/mnemonics
go: finding module for package github.com/beevik/ntp
go: finding module for package github.com/blang/semver
go: finding module for package github.com/deroproject/derosuite/blockchain/rpcserver
go: finding module for package github.com/deroproject/derosuite/p2p
go: downloading golang.org/x/sys v0.0.0-20210507014357-30e306a8bba5
go: finding module for package github.com/miekg/dns
go: finding module for package github.com/deroproject/derosuite/proof
go: finding module for package github.com/satori/go.uuid
go: finding module for package golang.org/x/crypto/scrypt
go: finding module for package github.com/aead/skein
go: finding module for package github.com/dchest/blake256
go: finding module for package github.com/intel-go/cpuid
go: finding module for package gitlab.com/nitya-sattva/go-x11/hash
go: finding module for package golang.org/x/net/proxy
go: finding module for package github.com/dustin/go-humanize
go: finding module for package github.com/paulbellamy/ratecounter
go: finding module for package github.com/coreos/bbolt
go: finding module for package github.com/dgraph-io/badger
go: finding module for package github.com/dgraph-io/badger/options
go: finding module for package golang.org/x/crypto/chacha20poly1305
go: finding module for package golang.org/x/crypto/pbkdf2
go: found github.com/deroproject/derosuite/config in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/deroproject/derosuite/crypto in github.com/deroproject/derosuite v2.1.5+incompatible
go: found golang.org/x/crypto/salsa20/salsa in golang.org/x/crypto v0.0.0-20210506145944-38f3c27a63bf
go: found golang.org/x/crypto/sha3 in golang.org/x/crypto v0.0.0-20210506145944-38f3c27a63bf
go: found github.com/deroproject/derosuite/cryptonight in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/deroproject/derosuite/transaction in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/ebfe/keccak in github.com/ebfe/keccak v0.0.0-20150115210727-5cc570678d1b
go: found github.com/romana/rlog in github.com/romana/rlog v0.0.0-20171115192701-f018bc92e7d7
go: found github.com/deroproject/derosuite/address in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/deroproject/derosuite/block in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/deroproject/derosuite/blockchain/inputmaturity in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/deroproject/derosuite/blockchain/mempool in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/deroproject/derosuite/checkpoints in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/deroproject/derosuite/crypto/ringct in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/deroproject/derosuite/emission in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/deroproject/derosuite/errormsg in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/deroproject/derosuite/globals in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/deroproject/derosuite/metrics in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/deroproject/derosuite/storage in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/deroproject/derosuite/structures in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/golang/groupcache/lru in github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
go: found github.com/hashicorp/golang-lru in github.com/hashicorp/golang-lru v0.5.4
go: found github.com/prometheus/client_golang/prometheus in github.com/prometheus/client_golang v1.10.0
go: found github.com/sirupsen/logrus in github.com/sirupsen/logrus v1.8.1
go: found github.com/vmihailenco/msgpack in github.com/vmihailenco/msgpack v4.0.4+incompatible
go: found golang.org/x/time/rate in golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba
go: found github.com/deroproject/derosuite/blockchain in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/intel-go/fastjson in github.com/intel-go/fastjson v0.0.0-20170329170629-f846ae58a1ab
go: found github.com/osamingo/jsonrpc in github.com/osamingo/jsonrpc v0.0.0-20200219081550-352acaa9f2b2
go: found github.com/prometheus/client_golang/prometheus/promhttp in github.com/prometheus/client_golang v1.10.0
go: found github.com/armon/go-radix in github.com/armon/go-radix v1.0.0
go: found github.com/chzyer/readline in github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e
go: found github.com/docopt/docopt-go in github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815
go: found github.com/ybbus/jsonrpc in github.com/ybbus/jsonrpc v2.1.2+incompatible
go: found golang.org/x/sys/unix in golang.org/x/sys v0.0.0-20210507014357-30e306a8bba5
go: found github.com/deroproject/derosuite/walletapi in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/deroproject/derosuite/walletapi/mnemonics in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/beevik/ntp in github.com/beevik/ntp v0.3.0
go: found github.com/blang/semver in github.com/blang/semver v3.5.1+incompatible
go: found github.com/deroproject/derosuite/blockchain/rpcserver in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/deroproject/derosuite/p2p in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/miekg/dns in github.com/miekg/dns v1.1.42
go: found github.com/deroproject/derosuite/proof in github.com/deroproject/derosuite v2.1.5+incompatible
go: found github.com/satori/go.uuid in github.com/satori/go.uuid v1.2.0
go: found golang.org/x/crypto/scrypt in golang.org/x/crypto v0.0.0-20210506145944-38f3c27a63bf
go: found github.com/aead/skein in github.com/aead/skein v0.0.0-20160722084837-9365ae6e95d2
go: found github.com/dchest/blake256 in github.com/dchest/blake256 v1.1.0
go: found github.com/intel-go/cpuid in github.com/intel-go/cpuid v0.0.0-20200819041909-2aa72927c3e2
go: found gitlab.com/nitya-sattva/go-x11/hash in gitlab.com/nitya-sattva/go-x11 v0.0.0-20161218191547-fe7663eb78fd
go: found golang.org/x/net/proxy in golang.org/x/net v0.0.0-20210505214959-0714010a04ed
go: found github.com/dustin/go-humanize in github.com/dustin/go-humanize v1.0.0
go: found github.com/paulbellamy/ratecounter in github.com/paulbellamy/ratecounter v0.2.0
go: found github.com/coreos/bbolt in github.com/coreos/bbolt v1.3.5
go: found github.com/dgraph-io/badger in github.com/dgraph-io/badger v1.6.2
go: found github.com/dgraph-io/badger/options in github.com/dgraph-io/badger v1.6.2
go: found golang.org/x/crypto/chacha20poly1305 in golang.org/x/crypto v0.0.0-20210506145944-38f3c27a63bf
go: found golang.org/x/crypto/pbkdf2 in golang.org/x/crypto v0.0.0-20210506145944-38f3c27a63bf
go: derosuite/storage imports
    github.com/coreos/bbolt: github.com/coreos/bbolt@v1.3.5: parsing go.mod:
    module declares its path as: go.etcd.io/bbolt
            but was required as: github.com/coreos/bbolt

Any help appreciated.

Nelbert442 commented 3 years ago

Go mod isn't used.

export GO111MODULE=off
Marlinski commented 3 years ago

ah! silly mistake thanks it works now.