Hi, I've been following the ubuntu instructions but I cant seem to get JSON-RPC installed correctly. Im getting Cmake Error at CMakeLists.txt:154(message): Alethzero requires jsonrpc when trying the final client build. Can anyone help?
just looking at the git history for libjsqrc, on Friday Gav Wood merged in a pull request from debris/mk_jsonrpc. I think that might be the problem. I've rolled back locally here to commit before the merge and and rebuilt. Worked then
I tried to checkout "master" branch instead and it didn't work, I could not connect to the network. Maybe protocol has changed since last commit on master.
well you had more success than me then ... Got the UI up, but couldnt get it connecting to peers! Switched to master also, but just different errors. Hopefully they'll have dev branch fixed later today, might retry tonight.
Also should say, there is a line in the Ubuntu building tutorial which says "To test this is working after you launched eth, check the coinbase with cURL: curl -X POST --data '{"jsonrpc": "2.0","method": "coinbase","params": null,"id": 1}' http://localhost:8080 "
This didn't work for me. First of all, as I understand, eth uses port 30303, not 8080. Even if I change this to 30303, I see errors in eth log, similar to:
+N+ [ 02:46:17 | p2p ] Accepted connection from 127.0.0.1:38842 +N+ [ 02:46:17 | p2p ] Listening on local port 30303 (public: 10.0.2.15:30303 ) !N! [ 02:46:17 | p2p | 137 ] INVALID SYNCHRONISATION TOKEN; expected = 22400891; received = 504f5354 +N+ [ 02:46:17 | p2p | 137 ] Disconnecting (our reason: Data format error. ) +N+ [ 02:46:17 | p2p | 137 ] Closing 127.0.0.1:38842 ( Data format error. ) !N! [ 02:46:17 | p2p | -1 ] Error sending: Bad file descriptor
Maybe this can just be updated according to new format.
Comments
git checkout 8766c104bfa9c20ececd1cd0fada1eab8f262355
then rebuilt in build dir by
cmake .. -DCMAKE_BUILD_TYPE=Release && make
The problematic checkin was 205a464253b5e07daf34171f1936c65dbfda5b65 on Fri 31 Oct 2014 16:49:36 GMT
I'll message Gav to let him know. Hope it helps
Here is wiki page, hot to build it on ubuntu:
https://github.com/ethereum/cpp-ethereum/wiki/Building-on-Ubuntu#jsonrpc-from-source
on MacOS you can just simply write
brew install jsonrpc
Sry for problems, in future i will update the wiki/docs before the merge && make build messages more explicit
We are also working to some buildout system which would resolve dependencies automatically.
@deskenny jsonrpc dependency is not releated with connecting to peers. Can you create new issue on github with details of the problem?
Thanks for the reply
curl -X POST --data '{"jsonrpc": "2.0","method": "coinbase","params": null,"id": 1}' http://localhost:8080
"
This didn't work for me. First of all, as I understand, eth uses port 30303, not 8080. Even if I change this to 30303, I see errors in eth log, similar to:
+N+ [ 02:46:17 | p2p ] Accepted connection from 127.0.0.1:38842
+N+ [ 02:46:17 | p2p ] Listening on local port 30303 (public: 10.0.2.15:30303 )
!N! [ 02:46:17 | p2p | 137 ] INVALID SYNCHRONISATION TOKEN; expected = 22400891; received = 504f5354
+N+ [ 02:46:17 | p2p | 137 ] Disconnecting (our reason: Data format error. )
+N+ [ 02:46:17 | p2p | 137 ] Closing 127.0.0.1:38842 ( Data format error. )
!N! [ 02:46:17 | p2p | -1 ] Error sending: Bad file descriptor
Maybe this can just be updated according to new format.