No permission to write into directory for RISC-V GNU compiler Ubuntu 20.04
by Stealthsniper from LinuxQuestions.org on (#6GY34)
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:
sudo apt-get install autoconf automake autotools-dev curl python3 python3-pip libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev ninja-build git cmake libglib2.0-dev
git clone https://github.com/riscv/riscv-gnu-toolchain
cd riscv-gnu-toolchain/
/configure --prefix=$home/new
make linux
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.
(echo "Sorry, you don't have permission to write to" \
"''. Please make sure that the location is " \
"writable or use --prefix to specify another destination.'" \
&& exit 1)
mkdir: cannot create directory i/.testi: Permission denied
Sorry, you don't have permission to write to ''. Please make sure that the location is writable or use --prefix to specify another destination.'
make: *** [Makefile:221: stamps/check-write-permission] Error 1