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

[Assignment 1] (Problem; auto grading does not work) #362

Closed
Jeong-jin-Han opened this issue Sep 2, 2024 · 2 comments
Closed

[Assignment 1] (Problem; auto grading does not work) #362

Jeong-jin-Han opened this issue Sep 2, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@Jeong-jin-Han
Copy link

Jeong-jin-Han commented Sep 2, 2024

Description
I encountered an issue while trying to run the grading script on the server provided for the assignment. The script fails with the following error message:

./scripts/grade-utils.sh: line 10: rustup: command not found

Steps to Reproduce:

Run the following command in the terminal:

./scripts/grade.sh 01
The script fails, indicating that rustup is not installed or not found.

What I Tried:

I attempted to check the installation of rustc and cargo using:

rustc -V
cargo -V
Both commands returned errors:

rustc: command not found
cargo: command not found

I attempted to run sudo apt update to resolve the issue, but my user account does not have sudo privileges on the server.

Environment:
image

Related Links:

I found a related issue on the Rustup GitHub repository: GitHub Issue #686
ChatGPT suggested checking the installation of rustc and cargo, and running sudo apt update.
Expected Behavior
The grading script should run successfully without encountering the rustup: command not found error.

Actual Behavior
The grading script fails due to the missing rustup command.

Additional Information
My account does not have sudo privileges, so I am unable to install rustup or perform a system update.
I am using the server resources provided by the course.

@Jeong-jin-Han Jeong-jin-Han added the question Further information is requested label Sep 2, 2024
@kingdoctor123
Copy link
Member

  1. Did you try curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh ? I just confirmed that this simply works.
  2. In fact, you can do sudo ... on the development server. So if you want, you can run sudo apt update or something like this.

@Jeong-jin-Han
Copy link
Author

Sorry, I misunderstood. When I write sudo -V, terminal show to me write down the password, so I guess that I can not use the sudo ....

I try the "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh" then rust is installed.
Thank you!!

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

No branches or pull requests

4 participants