I gave up trying to build anything from source and just decided to download the installable versions. It took some pulling of hair and gnashing of teeth but I got it working.
- Download and install Geth installer here: http://www.github.com/ethereum/go-ethereum (the automated development build)
- Download and install Ethereum here: https://build.ethdev.com/builds/Windows C++ develop branch/ (the latest Windows c++ build is a .exe file at the bottom)
- Then download the genesis JSON file (http://jev.io/genesis_block.json) and save it somewhere (it's easiest to save it in the same folder as Geth actually)
- Start Geth and open a new account from the DOS CMD line: "geth account new" (save the account name and password you use). Exit that (CRTL+C)
- Start Geth with the genesis JSON "geth --genesis [path_to_genesis_JSON_filename] and let it catch up to whatever the current block is on http://stats.ethdev.com. Exit that (CRTL+C)
- Start GETH again with the RPC API: "geth --rpc". Now we are ready to start mining.
- Open another DOS terminal and start the miner "ethminer -G --opencl-device 0" and if everything goes right you should be mining away
- One more thing, the Geth terminal is super clunky. If you want to actually use it as a terminal you have to open another instance of the DOS terminal and type "geth attach". This gives you another Geth window into which you can actually type the javascript API commands.
Thanks to many people on the Freenode IRC #ethereum channel for helping me figure this out.
Edit: These exact steps are
confirmed to work on Windows 7 & 8.1
Comments
JSON "geth --genesis [path_to_genesis_JSON_filename]
tried this : geth --genesis C:\Program Files\Ethereum (++) 0.9.38\Release\genesis_block.json
Keep getting error can't find file in the end
geth --genesis C:\"Program Files"\"Ethereum (++) 0.9.38"\Release\genesis_block.json
Chocolatey uninstalled 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- alethzero-stable
C:\Windows\system32>geth
I0802 18:48:22.041382 6440 flags.go:383] WARNING: No etherbase set and no acc
ounts found as default
I0802 18:48:22.042382 6440 database.go:74] Alloted 16MB cache to C:\Users\ola
wal\AppData\Roaming\Ethereum\blockchain
I0802 18:48:22.048382 6440 database.go:74] Alloted 16MB cache to C:\Users\ola
wal\AppData\Roaming\Ethereum\state
I0802 18:48:22.056383 6440 database.go:74] Alloted 16MB cache to C:\Users\ola
wal\AppData\Roaming\Ethereum\extra
I0802 18:48:22.061383 6440 backend.go:290] Protocol Versions: [61 60], Networ
k Id: 1
I0802 18:48:22.062383 6440 backend.go:319] Blockchain DB Version: 3
I0802 18:48:22.062383 6440 chain_manager.go:232] Last block (#0) d4e56740f876
aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3 TD=17179869184
I0802 18:48:22.068384 6440 cmd.go:122] Starting Geth/v1.0.0/windows/go1.4.2
I0802 18:48:22.068384 6440 server.go:311] Starting Server
It just hands right there
"I gave up trying to build anything from source ...."
Just using ethminer -G -t 2 as the command fires up both my R9 270 cards and gets me about 36 MH/s. I sure wish I kept my mining rig, but my daily computer will have to do.
on Ubuntu Box
--------------
pkill geth // to kill the current node
go-ethereum/build/bin/geth --rpc --rpcaddr "0.0.0.0" --rpcport 8545 --rpccorsdomain "*"
//starts the geth in rpc mode an allows any clients in your domain to connect to it
on personal desktop (any remote machine or even on the Ubuntu host as well if you want it to mine)
ethminer -G -F http://192.168.0.92:8545 --farm-recheck 250
// default farm recheck was 500 250 seems to submit work a bit faster
//192.168.0.92:8545 is the ip and port of the gethnode.
this is not solving my main issue, but I did open up a issue on the ethereum-go github page.
one thing I found is I get a better hash rate than when I was running eth
Upvotes appreciated!
will it work the same if i start just geth without "--rpc"?
that said I can run without rpc since I am mining on pool
Also getting "imported 0 blocks" error?
-geth.exe gets connect to the network but still there is no my address in this net
-alethzero gets no connect to the network
more: both geth.exe and alethzero.exe shows different addresses:
just did web3.eth.coinbase in geth.exe attach-console
and web3.eth.coinbase in -alethzero java-console.
Are you sure that "geth --rpc" without "--genesis [path_to_genesis_JSON_filename]" is correct to keep doin weel with ether-net?