7

I'd like to setup go-ethereum on centos6.5. However,this reference doesn't show how to install go-ethereum on centos.

I tried [vagrant@vagrant-centos65 ~]$ bash <(curl -L https://install-geth.ethereum.org), but it returned the following error. Could you tell me how to solve it?

==> Looking for geth
 ✘  Geth is missing

==> Checking dependencies
 ✘  apt-get is missing

==> Installation failed
==> OS not supported: geth one-liner currently support OS X, Ubuntu and Debian.
For instructions on installing ethereum on other platforms please visit http://ethereum.org/
1

2 Answers 2

7

I think they chose .deb packages (Ubuntu/Debian) because they are the most common. You could always check out the latest stable version and compile it yourself though.

An easier way might be to use alien to convert the debs into rpms.

The below is completely untested.

yum install golang
wget http://ppa.launchpad.net/ethereum/ethereum/ubuntu/pool/main/e/ethereum/geth_1.3.3+5wily-0ubuntu1_amd64.deb
sudo alien -r geth_1.3.3+5wily-0ubuntu1_amd64.deb
rpm -i geth_1.3.3+5wily-0ubuntu1_amd64.rpm

If you want to try to compile it, it would be more like: (also untested)

yum install golang
yum install gmp-devel
git clone https://github.com/ethereum/go-ethereum
cd go-ethereum
make geth
build/bin/geth
5

Geth is a single binary executable. No other files are needed for it, so using a package manager will only get you potential updates, but you could just grab the Linux binary itself and run it straight on your machine.

We always upload Linux x64 binaries to our GitHub releases if you would like to use the stable branch and we also provide cross builds to all platforms for our develop branch. These cross builds are done nightly and announced every morning by the build bot on out gitter channel (e.g. the last announcement).

Feel free to grab the plain Linux binary. It should run just fine. The stable branch still has a dependency for libgmp, but that was also dropped on develop already.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.