-
Notifications
You must be signed in to change notification settings - Fork 20.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No Solidity compiler available in fresh geth installation from source #2598
Comments
Unless I'm mistaking, node.js installs packages into its own specific data/binary folders. Geth doesn't really have anything to do with node.js so I don't see how/why it should detect node modules on the system. Geth currently looks for the the |
I'm having the same issue with I'm investigating. |
@remyroy I believe the problems are different. In my case, I had missed that My current hypothesis is that the Ethereum people these days expect us to use the new NodeJS console only, while If you agree with me, please close this issue, as it was a misunderstanding my side, not a real issue. |
i am facing same issue, i am connecting my tx node using putty (from windows operating system) |
@sagargohil You can download the latest solc compiler on https://github.com/ethereum/solidity/releases . Just extract the solc binaries in the same directory as geth and it should be able to find it easily. |
@remyroy Errr, it doesn't work. I did exactly as you said. I downloaded the binaries and extracted them into the same directory as geth which was /usr/bin . Then I restarted my geth console session typed
and got back
So now I'm stuck. How do I get a solidity compiler into my geth console? |
Ah!!! Something is different after putting the solc binaries in the same directory as geth. It's still not working though. This is what I do;-
and this is what I get back
|
@JohnSmall It seems you are missing some dependencies from solidity. Solidity has a script that detects your os and install those automatically for you. Run https://github.com/ethereum/solidity/blob/develop/scripts/install_deps.sh with sudo and it should work. |
Have just started with geth on windows. |
+1 |
Please use https://remix.ethereum.org. |
How do you use, https://remix.ethereum.org for multiple contract files, and how to get ABI and BIN files from https://remix.ethereum.org? Thank you. |
System information
Geth version: 1.4.4-stable-8ea3c88e
OS & Version: Linux (tested on Ubuntu and Fedora)
Expected behaviour
In the geth console,
eth.getCompilers()
returns['Solidity' ]
as described at https://www.ethereum.org/greeter .Actual behaviour
eth.getCompilers()
returns[ ]
Steps to reproduce the behaviour
Build
geth
from source, run the executable inbuild/bin
, attach to it and execute theeth.getCompilers()
command.Note that I've also tried installing Solidity globally using
npn -g solc
as described at http://solidity.readthedocs.io/en/latest/installing-solidity.html . Checked thatNODE_PATH
was defined. Killed and re-startedgeth
. There was no change. It has to be noted that thenode
repl can import the library, so it must be visible togeth
, too.The text was updated successfully, but these errors were encountered: