Giter Club home page Giter Club logo

Comments (3)

hectorchu avatar hectorchu commented on May 26, 2024 1

block.Balance.FillBytes undefined

Seems it needs at least go 1.15.
https://golang.org/pkg/math/big/#Int.FillBytes

cannot find -lOpenCL

sudo apt install ocl-icd-opencl-dev

from gonano.

ArthoPacini avatar ArthoPacini commented on May 26, 2024

i got this when i clone the repository:

arthopacini@arthopacini:~/Desktop$ git clone https://github.com/hectorchu/gonano.git
Cloning into 'gonano'...
remote: Enumerating objects: 131, done.
remote: Counting objects: 100% (131/131), done.
remote: Compressing objects: 100% (98/98), done.
remote: Total 507 (delta 67), reused 87 (delta 33), pack-reused 376
Receiving objects: 100% (507/507), 182.15 KiB | 703.00 KiB/s, done.
Resolving deltas: 100% (294/294), done.
arthopacini@arthopacini:~/Desktop$ cd gonano/
arthopacini@arthopacini:~/Desktop/gonano$ go tool compile main.go 
main.go:3:8: can't find import: "github.com/hectorchu/gonano/cmd"
arthopacini@arthopacini:~/Desktop/gonano$ go run main.go 
go: downloading golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad
go: downloading github.com/spf13/viper v1.7.1
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading github.com/tyler-smith/go-bip39 v1.1.0
go: downloading github.com/spf13/cobra v1.1.1
go: downloading github.com/karalabe/hid v1.0.0
go: downloading github.com/FactomProject/btcutilecc v0.0.0-20130527213604-d3a63a5752ec
go: downloading github.com/robvanmieghem/go-opencl v0.0.0-20160201165807-5ca28f1a8220
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/FactomProject/basen v0.0.0-20150613233007-fe3947df716e
go: downloading github.com/fsnotify/fsnotify v1.4.9
go: downloading github.com/subosito/gotenv v1.2.0
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading gopkg.in/ini.v1 v1.62.0
go: downloading github.com/mitchellh/mapstructure v1.4.0
go: downloading github.com/magiconair/properties v1.8.4
go: downloading github.com/spf13/jwalterweatherman v1.1.0
go: downloading github.com/spf13/cast v1.3.1
go: downloading golang.org/x/sys v0.0.0-20201223074533-0d417f636930
go: downloading github.com/spf13/afero v1.5.1
go: downloading github.com/pelletier/go-toml v1.8.1
go: downloading golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf
go: downloading golang.org/x/text v0.3.4
# github.com/robvanmieghem/go-opencl/cl
/usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status
# github.com/hectorchu/gonano/ledger
ledger/message.go:56:41: block.Balance.FillBytes undefined (type *rpc.RawAmount has no field or method FillBytes)
note: module requires Go 1.15
arthopacini@arthopacini:~/Desktop/gonano$

from gonano.

ArthoPacini avatar ArthoPacini commented on May 26, 2024

Got it, installed 1.15 directly from the official website, for some reason apt get install go installed 1.14..
and run sudo apt install ocl-icd-opencl-dev to get opencl, it's working, thanks!

from gonano.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.