crytic / solc-select

Manage and switch between Solidity compiler versions
GNU Affero General Public License v3.0
758 stars 103 forks source link

mac doesnt work #42

Closed jjhesk closed 3 years ago

jjhesk commented 3 years ago

After I install the package completely in macosx 11.1 Beta and i restart the terminal for entering the solc-select and it doesn't find the command again. Now the only currently working way is installing the package on centos and they works without any workaround at all.

xlab commented 3 years ago

I used Docker-based image previously, but it started to fail with

$ solc select 0.6.6
chroot: can't execute 'chroot.sh': No such file or directory

I'm on bigSur 11.0.1

--

Resolved by actually doing this:

$ rm /usr/local/bin/solc

$ git clone https://github.com/trailofbits/solc-select.git
$ cd solc-select
$ pip3 install solc-select

$ solc-select install 0.6.6
Installing '0.6.6'...
Version '0.6.6' installed.

$ solc-select use 0.6.6
Switched global version to 0.6.6

No Docker required! 🙃

$ solc --version
solc, the solidity compiler commandline interface
Version: 0.6.6+commit.6c089d02.Darwin.appleclang
ESultanik commented 3 years ago

You don't even need to git clone the repository. You should just be able to run pip3 install solc-select from anywhere on any system with a valid Python 3.* install.

0xicingdeath commented 3 years ago

I've been unable to reproduce this issue on OS X with the python version of solc-select. Please create a new issue if the problem persists with the latest stable release. Thanks!