No permission to write into directory for RISC-V GNU compiler Ubuntu 20.04
Hi everyone, I'm an undergraduate student who is entirely new to Linux. I am currently using Ubuntu 20.04 LTS and working on setting up and simulating an IBEX RISC-V core on my computer. I am trying to install the GNU compiler, but i am having issues. These are the commands I ran:
cd newThe error produced: mkdir -p /.test || \A person on GitHub said I am writing into root rather than the Home directory. But I don't understand what i am doing wrong. |
mkdir -p /.test
Most probably there is a variable in front of /.test, like mkdir -p $THIS_IS_A_NICE_DIR/.test but that variable is either empty or not defined at all. |
Code:
/configure --prefix=$home/new You should either use the absolute path or use the proper variable. "$home" is not correct by default and probably should be "$HOME" It probably should be "./configure" and not "/configure" since the build instructions probably include the configure command in the build directory where you are running the command. Linux commands would not be in the root directory. |
It's standard autoconf stuff
Code:
jayjwa@atr2 ~/riscv-gnu-toolchain (master) > ./configure --prefix=$HOME |
1 Attachment(s)
Quote:
I proceeded to try to solve this whole headache by running "sudo ./configure --prefix=/home/aaron/new/", and "sudo make linux". It sort of went well, but I can't tell. So I decided to spam "sudo make linux", and it gave an output "make: Nothing to be done for 'linux'". Should this be the desired output for a successful operation? Here is the logfile. Attachment 42242 |
do not use sudo with make, that is not required (the only exception is at the end the sudo make install).
Nothing to be done means it is already made. |
All times are GMT -5. The time now is 05:50 PM. |