5

I am trying to sync geth and solc.

which solc # I get the path to my solc
/usr/local/bin/solc

Open the geth console

geth console 2>>geth.log

and now I try to sync

admin.setSolc("/usr/local/bin/solc")

but I get the error

TypeError: 'setSolc' is not a function
at <anonymous>:1:1
1

1 Answer 1

3

I believe solc integration was removed from geth as of v1.6.0. See #3740 for more details, but it looks like admin.setSolc was removed as part of that PR.

4
  • 1
    Thank you @DeviateFish, so how could I possisble link Solc to Geth..? May 17, 2017 at 15:19
  • In general, solc should be used as a standalone tool, or via tools built around it (e.g. browser-solidity) May 18, 2017 at 1:21
  • There are tutorials everywhere referencing it. Is there a consistent help page/tutorial so I can deploy a contract? May 25, 2017 at 15:59
  • @JustinThomas Yeah, the tutorials are now all considered "out of date", as of geth v1.6.0 (as linked above). I don't know of any tutorials off the top of my head, but if you look for ones that are specific to solc itself (e.g. using the command line), you might find what you're looking for. May 25, 2017 at 18:08

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.