Closed jifenkuaile closed 1 year ago
after run
$ go get github.com/filecoin-project/filecoin-ffi
$ git submodule add https://github.com/filecoin-project/filecoin-ffi.git extern/filecoin-ffi
$ make -C extern/filecoin-ffi
$ go mod edit -replace=github.com/filecoin-project/filecoin-ffi=./extern/filecoin-ffi
i got this new error
/usr/local/go/pkg/tool/darwin_arm64/link: running clang failed: exit status 1
ld: library not found for -lhwloc
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: library not found for -lhwloc
You need to have libhwloc-dev installed.
i'm useing m1 mac to run this code , and there is some error when i build
main.go
go.mod (generated by
go mod init && go mod tidy
)build command:
go build main.go
build error: