I tried to compile the following contract within geth :

pragma solidity ^0.4.8; contract Test { uint256 public value; function Test() { value = 123; } }

using the following commands on the flattened source:

> var testSource = "pragma solidity ^0.4.8; contract Test { uint256 public value; function Test() { value = 123; } }"; undefined > var testCompiled = web3.eth.compile.solidity(testSource); Error: The method eth_compileSolidity does not exist/is not available at web3.js:3104:20 at web3.js:6191:15 at web3.js:5004:36 at <anonymous>:1:20

As described in eth_compilers, eth_compileSolidity are gone in go-ethereum 1.6.0 #3793, the ability to compile Solidity source has been removed from within geth .

How can I compile my Solidity source code?