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

I tried installing rust using rustup but after install rustc isn't working. #1669

Closed
asamolion opened this issue Feb 22, 2019 · 4 comments
Closed
Labels

Comments

@asamolion
Copy link

timeout reading rustc version
I've installed the rust toolchain using

curl https://sh.rustup.rs -sSf | sh

However after installation I get this message

timeout reading rustc version

and the rustc compiler doesn't work at all. It simple halts in a blank screen while doing nothing.

image

Steps

  1. Install the toolchain using rustup.
  2. simply type rustc --version
  3. Nothing happens. No version is printed

Notes
OS: Linux Mint 19.1

Output of rustup --version: Not showing
Output of rustup show:

Default host: x86_64-unknown-linux-gnu

stable-x86_64-unknown-linux-gnu (default)
(timeout reading rustc version)
@asamolion asamolion added the bug label Feb 22, 2019
@ehuss
Copy link
Contributor

ehuss commented Feb 22, 2019

Do you have an anti-virus installed (such as ESET)? I have seen similar things happen.

It might be helpful to post a stack trace of rustc when it is hung (attach to the process with gdb).

You may get more help posting on https://github.com/rust-lang/rust/issues since I don't think this is an installation issue.

@asamolion
Copy link
Author

@ehuss
As a matter of fact, I do have ESET installed. However, it is not running while I am trying to run this.

@ehuss
Copy link
Contributor

ehuss commented Feb 22, 2019

Ah, in that case it is probably rust-lang/rust#56736. I suspect it's still finding the libesets_pac.so shared library even if it is not "on". There's some more information in that issue about what's going on.

@asamolion asamolion changed the title I tried installing rust usig rustup but after install rustc isn't working. I tried installing rust using rustup but after install rustc isn't working. Feb 22, 2019
@asamolion
Copy link
Author

Okay, so here is how I solved the problem.

I opened the file /etc/ld.so.preload and deleted the line containing libesetspac.so. So now the /etc/ld.so.preload file is empty but my Rust programs are compiling correctly.

Thanks @ehuss.

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

No branches or pull requests

2 participants