OKAY, so basically i started the install process for rust-lang on my macbook pro runing monterey 12.6. somewhere along the way im not sure exactly what i did but basically i get a response very similar if not exactly the same response each time i try to move forward with Rust. Here is an example of the error messages i get. Basically im trying to install rustlings and this is what i get. Okay i wasnt able to reproduce exactly what i wanted but i tried to do this "rustup doc --book" and the response i get from my terminal is this
error: could not create home directory: '/.rustup': Read-only file system (os error 30)
Does anyone have any ideas as to what might be going on and possibly could suggest a fix?
I'm really eager to learn Rust so im hoping somone can make a suggestion fast cause so far im leaning towards doing a full factory reset. I'm just making some changes to another laptop so it has the room to backup my files.
I also realize that i didnt provide anyone with too much information but its because i dont have a clue where exactly i went wrong. However, that being said if anyone has any questions i am way more than willing to try and answer them. i really wanna fix this.
It seems like for some reason it has concluded that your home directory is the root of the filesystem (hence the paths it is failing to create right under /) which indeed will not work because that area is permanently not writable (and shouldn't be written to, either, if you want your rustup installation to work normally).
Could you try
in your terminal and tell us what it prints? If that is wrong then that could explain the problem.
Oh that's a really interesting work around, thank you, I don't think I would have figured that out as an option. I'm currently backing up all my important stuff in case I have to do a complete factory reset.
you can check your home folder for .bashrc.zshrc and .bash_profile for RUSTUP_HOME lines
You can also see if the install succeeds by temporarily overridding the variable when you run the installer
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
That will only override it for the current shell session though, so if you open another terminal window you may still have issues interacting with the installed tools until you fix whatever is setting RUSTUP_HOME originally