/target/debug/lvl_0

Answered

Has anyone had this error message?

 

/usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found 

    (required by /home/dir/target/debug/lvl_0)

 

Details:

Fedora 36

IntelliJ IDEA Community

I have never used IDEA however I have PyCharm Community and have no issues. I am trying to build programs in Rust and "exit code 1" on IDEA . The code compiles and runs in the terminal which is fine because I use VIM but I want to use IDEA since PyCharm is my favorite IDE and these two programs are very similar.

0
9 comments
Avatar
Yaroslav Bedrov

Hello,

How did you install IDE? 

0

Thanks for the reply. Now, that's a tough question, because it's been a while and I honestly don't remember. I'm next to positive that I used a 'snap' package and not the command line. Is there any way to search my machine to find out? I have recently switched to GNU/Linux from Windows, and was originally using Ubuntu, then did some distro-hopping to find Fedora, which is perfect for the things I want to do. I am not an expert in the terminal, however, I am not intimidated by it. Using Fedora has been a painless experience so far with just a few minor issues that were immediately solvable. I am not familiar with things that are deeper in the operating system, for example: resolving dependencies, etc. Any help to get my Rust code to run on IDEA is welcome. Thanks in advance.

0
Avatar
Yaroslav Bedrov

Could you please try to download archive from official site and use it to run IDE?

0

I can give that a try. Before I do, should I uninstall the IDE and install the archive or simply install the IDE from the site and let the operating system figure out the details? I have entered commands to install things that already existed and the operating system has returned messages such as: "dependencies resolved" or  "requirements already satisfied". The issue seems to be with "glibc_2.34", which is currently beyond the scope of my Linux knowledge. The IDE functions properly except for this dependency. Thanks!

0
Avatar
Yaroslav Bedrov

There is no need to uninstall. You may just unpack archive and run IDE. 

0

Awesome! I will give it a try and report back here, either way, success or fail.
Thanks!

0

Success. I downloaded and unpacked the "tar.gz" file and ran "./idea.sh" from the terminal and was able to build and run a Rust file. I don't feel as comfortable using IDEA as I do with PyCharm. Are there any resources for using this IDE specifically for Rust? 

0
Avatar
Yaroslav Bedrov

Could you please clarify issues you face with IDEA? 

0

    After revisiting IDEA , there are no issues with IDE itself, it's me. I am learning the Rust language and currently experiencing issues with the package system. I made a directory and within that directory, I created more directories. When running the files within the sub-directories, only the main.rs file from the parent directory runs the default "hello world" program.

    I am not creating complex projects with files that call on other files, just simple "toy" programs to learn Rust syntax, etc. I primarily use VIM for composing/editing, so to build and run these "toy" files within the terminal is simple. After I get past the hurdle of the package system, I am hoping that I will have the same experience that I do with PyCharm. Coding in Python using the PyCharm IDE is fantastic. The predictive text, refactoring, auto-suggestions, and other features make the PyCharm experience amazing; to the point where the code almost writes itself. After I learn the Rust ecosystem, I feel confident that I will have the same PyCharm experience within the IDEA environment.

0

Please sign in to leave a comment.