Install error: root priviledges
See original GitHub issueHello, I am following the installation guide at https://github.com/enjoy-digital/litex/wiki/Installation and I got the error below. I ran as root and everything worked until I got more errors so I had to backtrack after seeing this post https://github.com/enjoy-digital/litex/issues/273. I deleted the linux-on-litex-vexriscv folder and started from the beginning.
Afrer running ./litex_setup.py init install --user
, this is the error I get below:
[checking litex_setup.py]… [installing migen]… running develop error: can’t create or remove files in install directory
The following error occurred while trying to add or remove files in the installation directory:
[Errno 13] Permission denied: '/usr/local/lib/python3.8/dist-packages/test-easy-install-11520.write-test'
The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was:
/usr/local/lib/python3.8/dist-packages/
Perhaps your account does not have write access to this directory? If the installation directory is a system-owned directory, you may need to sign in as the administrator or “root” account. If you do not have administrative access to this machine, you may wish to choose a different installation directory, preferably one that is listed in your PYTHONPATH environment variable.
For information on other options, you may wish to consult the documentation at:
https://setuptools.readthedocs.io/en/latest/easy_install.html
Please make the appropriate changes for your system and try again.
Traceback (most recent call last): File “./litex_setup.py”, line 170, in <module> subprocess.check_call(“python3 setup.py develop”, shell=True) File “/usr/lib/python3.8/subprocess.py”, line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command ‘python3 setup.py develop’ returned non-zero exit status 1.
Any suggestion helps, thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
I’ve done that and everything works now. Thank you for your prompt assistance with this, great work you’re doing.
Adding the
RISC-V GCC
compiler to yourPATH
has to be done manually and should be printed when executinglitex_setup.py
: https://github.com/enjoy-digital/litex/blob/master/litex_setup.py#L182-L183