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

Coudn't install solidity 0.4.18 following the wiki instructions. #84

Closed
ilanDoron opened this issue Jun 24, 2020 · 5 comments
Closed

Coudn't install solidity 0.4.18 following the wiki instructions. #84

ilanDoron opened this issue Jun 24, 2020 · 5 comments

Comments

@ilanDoron
Copy link

Environment information

  • py-solc-x Version: 3.2.0
  • solc Version: 0.4.18
  • Python Version: 2.7.16
  • OS: osx

What was wrong?

when running the install file for solc 0.4.18:

brew install https://github.com/ethereum/homebrew-ethereum/blob/2aea171d7d6901b97d5f1f71bd07dd88ed5dfb42/solidity.rb

I get this:

Updating Homebrew...
Warning: Calling Non-checksummed download of solidity formula file from an arbitrary URL is deprecated! Use 'brew extract' or 'brew create' and 'brew tap-new' to create a formula file in a tap on GitHub instead.
-#O#- # #
Warning: Calling Non-checksummed download of solidity formula file from an arbitrary URL is deprecated! Use 'brew extract' or 'brew create' and 'brew tap-new' to create a formula file in a tap on GitHub instead.
-#O#- # #
Error: solidity: /Users/iland/Library/Caches/Homebrew/Formula/solidity.rb:6: syntax error, unexpected '<'

^
/Users/iland/Library/Caches/Homebrew/Formula/solidity.rb:7: syntax error, unexpected '<'

^ /Users/iland/Library/Caches/Homebrew/Formula/solidity.rb:8: syntax error, unexpected '<' ^ /Users/iland/Library/Caches/Homebrew/Formula/solidity.rb:10: syntax error, unexpected '<'
@iamdefinitelyahuman
Copy link
Contributor

Unfortunately I'm not using OSX myself and I'm not familiar with Ruby, so I can't be of much help :(

There is a push to serve precompiled solc binaries for OSX - ethereum/solidity#3168 As soon as that happens I'll convert this package to use them, and this problem should become a thing of the past. In the meantime, I'm really sorry but there's not much I can offer. Possibly someone in the solidity gitter will know how to solve it.

@iamdefinitelyahuman
Copy link
Contributor

Also related - ethereum/solidity#9226

@cameel
Copy link

cameel commented Jul 24, 2020

@ilanDoron I think that you're just using the wrong URL. The one you posted is a HTML page that includes the whole Github UI. You cannot execute that as Ruby code - that's why you get errors about "unexpected '<'". You need to use a direct link to the raw Ruby file:

https://raw.githubusercontent.com/ethereum/homebrew-ethereum/2aea171d7d6901b97d5f1f71bd07dd88ed5dfb42/solidity.rb

@iamdefinitelyahuman
Copy link
Contributor

@cameel good catch! I've updated the wiki to better emphasize this.

@iamdefinitelyahuman
Copy link
Contributor

Closing this for now, @ilanDoron if you have further issues feel free to re-open or ping me on gitter.

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