question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Coudn't install solidity 0.4.18 following the wiki instructions.

See original GitHub issue

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 ‘<’

<!DOCTYPE html>

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

<html lang="en"> ^ /Users/iland/Library/Caches/Homebrew/Formula/solidity.rb:8: syntax error, unexpected '<' <head> ^ /Users/iland/Library/Caches/Homebrew/Formula/solidity.rb:10: syntax error, unexpected '<' <link rel="dns-prefetch" href=... ^ /Users/iland/Library/Caches/Homebrew/Formula/solidity.rb:10: syntax error, unexpected tIDENTIFIER, expecting end-of-input <link rel="dns-prefetch" href="https://github.githubassets... ^~~~ <p>so</p> <p>seems this method is not recommended. according to output from the run</p> <h3>How can it be fixed?</h3> <p>Fill this in if you know how the bug could be fixed.</p>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cameelcommented, 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

0reactions
iamdefinitelyahumancommented, Aug 17, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing the Solidity Compiler
sudo snap install solc. If you want to help testing the latest development version of Solidity with the most recent changes, please use...
Read more >
solc-js
solc -js. JavaScript bindings for the Solidity compiler. Uses the Emscripten compiled Solidity found in the solc-bin repository.
Read more >
ethereum/solidity - Gitter
I'm seeing this error: "ParserError: Expected token LBrace got 'View'", pointing at the term "view" in the following function declaration: " ...
Read more >
[Solved] How to change/specify Solidity linter [solc] ...
Hi may I know how to change my Solidity linter compiler version in Visual Studio Code(vscode)? OR Visual studio code how to specify...
Read more >
How to upgrade solidity compiler in truffle
Check the solc version after installing it again. In order to see the information of contracts, once you login to truffle console and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found