Skip to content
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

FileNotFoundError: [Errno 2] No such file or directory: 'solc' #57

Closed
un1t opened this issue Oct 24, 2018 · 3 comments
Closed

FileNotFoundError: [Errno 2] No such file or directory: 'solc' #57

un1t opened this issue Oct 24, 2018 · 3 comments

Comments

@un1t
Copy link

un1t commented Oct 24, 2018

I launch program like this:

slither Contract.sol 

and receive an error:
"FileNotFoundError: [Errno 2] No such file or directory: 'solc'"

I have solc installed.

$ solcjs --version
0.4.25+commit.59dbf8f1.Emscripten.clang

But executable is called solcjs, not solc. Or it is something different?

@kirtixs
Copy link
Contributor

kirtixs commented Oct 24, 2018

Yes, these are two different commands. Please follow the install instructions for solc https://solidity.readthedocs.io/en/v0.4.21/installing-solidity.html

@un1t
Copy link
Author

un1t commented Oct 24, 2018

Thank you!
I installed solc through apt-get, and now it works!

https://solidity.readthedocs.io/en/v0.4.21/installing-solidity.html#binary-packages

@un1t un1t closed this as completed Oct 24, 2018
@dguido
Copy link
Member

dguido commented Oct 24, 2018

I added a troubleshooting section to capture questions and answers like this: https://github.com/trailofbits/slither/wiki#troubleshooting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants