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

Source not found/seen #12502

Closed
mrx23dot opened this issue Jan 9, 2022 · 8 comments
Closed

Source not found/seen #12502

mrx23dot opened this issue Jan 9, 2022 · 8 comments

Comments

@mrx23dot
Copy link

mrx23dot commented Jan 9, 2022

solc is not seeing source file.
Compiler should work in every directory (see gcc).

sudo snap install solc
cd /tmp
has source: test.sol
sudo solc test.sol
"test.sol" is not found.
solc --allow-paths /tmp test.sol
"test.sol" is not found.

It finds the file in another directory:

cd /home
solc test.sol
ok

versions

Debian 10
solc Version: 0.5.16+commit.9c3226ce.Linux.g++
@hrkrshnn
Copy link
Member

@mrx23dot Does the problem also exist on a new solc version?

@mrx23dot
Copy link
Author

Interesting, when I download only the binaries it doesn't seem to be a problem.
Not sure what's up with the 'snap' installation.

It would be also nice if could distribute solc via debian apt-get too, binaries are already done.

@hrkrshnn
Copy link
Member

Snap seems to be broken: #11940

I think you should be able to find solc on apt.

@mrx23dot
Copy link
Author

apt only works for ubuntu, not debian, even though we have binaries for debian:
https://docs.soliditylang.org/en/v0.8.9/installing-solidity.html

@ekpyron
Copy link
Member

ekpyron commented Jan 10, 2022

If nothing else works you can always fall back to the statically linked binaries hosted in the github release pages, e.g. https://github.com/ethereum/solidity/releases/download/v0.8.11/solc-static-linux

Those should pretty much work anywhere and should not require any dependencies (unless you're running a system with a really ancient glibc).

@ekpyron
Copy link
Member

ekpyron commented Jan 10, 2022

But I'd agree that it would be nice to maintain debian builds. But if we want that, we should really use a proper debian build mechanism. The ubuntu packages may work by chance, but it's generally not the best idea to mix debian and ubuntu packages.

@mrx23dot
Copy link
Author

I close this issue since investigation is already ongoin in #11940 for snap.

@cameel
Copy link
Member

cameel commented Jan 12, 2022

@mrx23dot An up to date snap should be available through the edge channel (see #11940 (comment)). If you can, please test it and post your feedback in #11940.

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

No branches or pull requests

4 participants