根据README文档编译,但是报错:

Building go-filecoin...
git log -n 1 --format=%H
go build -ldflags -X github.com/filecoin-project/go-filecoin/flags.Commit=52ac255c7d6c26a9eb9e5acbf2b4b7e9b3e3d510 -v -o go-filecoin .
exec/exec.go:7:2: cannot find package "gx/ipfs/QmRXf2uUSdGSunRJsM9wXSUNVwLUGCY3So5fAs7h2CBJVf/go-hamt-ipld" in any of:
        /usr/local/go/src/gx/ipfs/QmRXf2uUSdGSunRJsM9wXSUNVwLUGCY3So5fAs7h2CBJVf/go-hamt-ipld (from $GOROOT)
        /home/hugui/go/src/gx/ipfs/QmRXf2uUSdGSunRJsM9wXSUNVwLUGCY3So5fAs7h2CBJVf/go-hamt-ipld (from $GOPATH)
系统消息 若觉得内容不错,请点击左上角的"赞"图标,以优化网站的内容呈现。 另外,请及时验证注册邮箱,否则收不到21QA发出的红包。 官方Q群:250203055

asked 15 Feb, 10:13

%E8%B7%AF%E4%BA%BA%E7%94%B2's gravatar image

路人甲
131576642842


根据README是行不通的 :)

  1. 安装依赖的工具,以ubuntu18.04为例

    curl -sf -L https://static.rust-lang.org/rustup.sh | sh

  2. 别忘了把bin添加到PATH

    To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH environment variable. Next time you log in this will be done automatically.

    To configure your current shell run source $HOME/.cargo/env

  3. 把依赖的代码下载下来

    make deps

  4. 把子模块也下载下来

    git submodule update --init

  5. 安装clang

    apt-get install clang

  6. 编译出proof库

    
        cd proofs/rust-proofs
        cargo build --release --all
        export RELEASE_PATH=".."
        mkdir $RELEASE_PATH/misc
        cp parameters.json $RELEASE_PATH/misc/
        cp target/release/paramcache $RELEASE_PATH/bin/
        cp target/release/paramfetch $RELEASE_PATH/bin/
        cp target/release/libfilecoin_proofs.h $RELEASE_PATH/include/
        cp target/release/libfilecoin_proofs.a $RELEASE_PATH/lib/
        cp target/release/libfilecoin_proofs.pc $RELEASE_PATH/lib/pkgconfig
    

  7. 编译filecoin

    go run ./build/*.go build

  8. 安装

    go run ./build/*.go intall

  9. 跑个测试吧

    go-filecoin

系统消息 若觉得内容不错,请点击左上角的"赞"图标,以优化网站的内容呈现。 另外,请及时验证注册邮箱,否则收不到21QA发出的红包。 官方Q群:250203055
permanent link

answered 15 Feb, 11:11

%E8%B7%AF%E4%BA%BA%E7%94%B2's gravatar image

路人甲
131576642842

编辑于 15 Feb, 12:48

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link: [text](http://url.com/ "title")
  • image: ![alt](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×1

question asked: 15 Feb, 10:13

question was seen: 580 times

last updated: 15 Feb, 12:48

Related questions

powered by O*S*Q*A

粤ICP备14040061号-1