Article 6GY34 No permission to write into directory for RISC-V GNU compiler Ubuntu 20.04

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 new
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
The error produced:
mkdir -p /.test || \
(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
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.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments