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] (Can't run grading script) #276

Closed
Rsln-M opened this issue Sep 27, 2023 · 8 comments
Closed

[Assignment 1] (Can't run grading script) #276

Rsln-M opened this issue Sep 27, 2023 · 8 comments
Assignees
Labels
question Further information is requested

Comments

@Rsln-M
Copy link

Rsln-M commented Sep 27, 2023

Related Issue

Didn't find any

Googling Result

https://users.rust-lang.org/t/rustup-command-not-found/78739

ChatGPT Result

https://chat.openai.com/share/f63e7378-8b18-43b7-a3f7-5817c2ff70d9

Your question here

Question is not about assignment 1 but more general. I am using provided development server. When I run ./scripts/grade.sh 1 in the terminal I get the following error:
./scripts/grade-utils.sh: line 10: rustup: command not found

I figured I should install rustup and ran this script:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

However, the terminal says error: cannot install while Rust is installed, I have an option to continue installation, however, I'm not sure if I should do that. How can I solve this problem?

Note: I am able to test my code with cargo test --lib assignment01 -- --nocapture, the problem is only with grading script.

@Rsln-M Rsln-M added the question Further information is requested label Sep 27, 2023
@jirheee
Copy link
Collaborator

jirheee commented Sep 28, 2023

Could you try rustup --version command and share the result?

@Rsln-M
Copy link
Author

Rsln-M commented Sep 28, 2023

I get rustup: command not found

@jirheee
Copy link
Collaborator

jirheee commented Sep 28, 2023

Oh that is very strange... Can you try it again after running source $HOME/.cargo/env?

@Rsln-M
Copy link
Author

Rsln-M commented Sep 28, 2023

bash: /home/ubuntu/.cargo/env: No such file or directory

Apparently, I don't have any of those in .cargo folder.

@jirheee
Copy link
Collaborator

jirheee commented Sep 28, 2023

Then can you show what is in your .cargo directory? Especially in .cargo/bin. You can use ls command or tree command to do this.

@jirheee
Copy link
Collaborator

jirheee commented Sep 28, 2023

Also, this issue might help

@Rsln-M
Copy link
Author

Rsln-M commented Sep 28, 2023

I only have .package-cache and registry directory in .cargo.

Regarding the issue you have sent, I have already seen it. People there say to follow instrcution on rustup.rs, which says to run this:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

This command gives error cannot install while Rust is installed.

@Rsln-M
Copy link
Author

Rsln-M commented Sep 28, 2023

Update: I went on with the installation despite the error. It seems to work now. Closing the issue.

@Rsln-M Rsln-M closed this as completed Sep 28, 2023
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