question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Install error: root priviledges

See original GitHub issue

Hello, 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dadedecommented, Dec 22, 2020

I’ve done that and everything works now. Thank you for your prompt assistance with this, great work you’re doing.

0reactions
enjoy-digitalcommented, Dec 22, 2020

Adding the RISC-V GCC compiler to your PATH has to be done manually and should be printed when executing litex_setup.py: https://github.com/enjoy-digital/litex/blob/master/litex_setup.py#L182-L183

Read more comments on GitHub >

github_iconTop Results From Across the Web

fix the installer requires root privileges | very easy - YouTube
Error fix for the installer requires root privileges. please become superuser before executing the installer.
Read more >
run application won't run even after I became a root user
There has been an error. This installer requires root privileges. Please become superuser before executing the installer.
Read more >
Installation Permission Error - Newbie - ROOT Forum
I'm trying to build ROOT and got this error and am not sure how to fix it. I am on a mac with...
Read more >
NPM install permission denied error using root user
So I've made a fresh installation of npm/node on my local machine using NVM using root user and everything looks fine, now my...
Read more >
Install script fails with "Failed to access /dev/sdb, maybe root ...
When running the install script for v 1.0.15 I get the following message; Failed to access /dev/sdb, maybe root privilege is needed!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found