Giter VIP home page Giter VIP logo

Comments (5)

mingderwang avatar mingderwang commented on May 17, 2024 1

// for ubuntu
sudo apt-get install libgmp3-dev

from go-ethereum.

obscuren avatar obscuren commented on May 17, 2024

Should be fixed. Please confirm

from go-ethereum.

obscuren avatar obscuren commented on May 17, 2024

If this is still an issue, re-open.

from go-ethereum.

adrianduke avatar adrianduke commented on May 17, 2024

I've just come across this issue on Mac 10.9.5.

$ go get github.com/ethereum/go-ethereum/cmd/mist
# github.com/obscuren/secp256k1-go
In file included from /Volumes/CaseSensitive/go/src/github.com/obscuren/secp256k1-go/secp256.go:11:
In file included from ././secp256k1/src/secp256k1.c:5:
In file included from ././secp256k1/src/impl/num.h:8:
In file included from ././secp256k1/src/impl/../num.h:9:
././secp256k1/src/num_gmp.h:8:10: fatal error: 'gmp.h' file not found
#include <gmp.h>

To resolve I used brew to install GMP:

$ brew install gmp

from go-ethereum.

carver avatar carver commented on May 17, 2024

I just reproduced this on Red Hat. gmp is already installed.

[go-ethereum]$ sudo yum install gmp
...
Package gmp-4.3.1-7.el6_2.2.x86_64 already installed and latest version
...
[go-ethereum]$ git log --oneline -1
commit 4bb9a61049882f427e2742773c69b969849da1c2
Merge: e2c2d8e 22080e1
Author: Jeffrey Wilcke <[email protected]>
Date:   Thu Jun 11 12:01:07 2015 -0700

    Merge pull request #1245 from bas-vk/ipcdatadirfix

    ipc socket always uses default path
[go-ethereum]$ godep go install -v ./cmd/geth
github.com/ethereum/go-ethereum/common
github.com/ethereum/go-ethereum/crypto/ecies
github.com/ethereum/go-ethereum/crypto/sha3
# github.com/ethereum/go-ethereum/crypto/ecies
crypto/ecies/asn1.go:67: undefined: elliptic.P224
crypto/ecies/asn1.go:95: undefined: elliptic.P224
crypto/ecies/asn1.go:108: undefined: elliptic.P224
crypto/ecies/asn1.go:222: undefined: elliptic.P224
github.com/ethereum/go-ethereum/crypto/randentropy
github.com/ethereum/go-ethereum/crypto/secp256k1
# github.com/ethereum/go-ethereum/crypto/secp256k1
In file included from ./secp256k1/src/num.h:17,
                 from ./secp256k1/src/num_impl.h:14,
                 from ./secp256k1/src/secp256k1.c:12,
                 from crypto/secp256k1/secp256.go:18:
./secp256k1/src/num_gmp.h:10:17: error: gmp.h: No such file or directory
github.com/ethereum/go-ethereum/logger
github.com/ethereum/go-ethereum/jsre
github.com/ethereum/go-ethereum/p2p/nat
github.com/ethereum/go-ethereum/rpc/shared
github.com/ethereum/go-ethereum/rpc/codec
godep: go exit status 2

from go-ethereum.

Related Issues (20)

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.