Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up on Ubuntu might be incomplete #4

Closed
tommythorn opened this issue Dec 21, 2020 · 3 comments
Closed

Set up on Ubuntu might be incomplete #4

tommythorn opened this issue Dec 21, 2020 · 3 comments

Comments

@tommythorn
Copy link

My x64 host is running Ubuntu 21.04 (Hirsute Hippo), fully up to date. I tried to map the step 1 to equivalent Ubuntu repos (I would need to this on a clean installation to complete this).

$ sudo apt install libjson-c-dev libcrypt-openssl-bignum-perl libevent-dev libmpc-dev libmpfr-dev python3-dev

but step python3 ./litex_setup.py init install --user fails with

$ python3 ./litex_setup.py init install --user
[checking litex_setup.py]...
[installing migen]...
Traceback (most recent call last):
  File "/home/tommy/projects/migen/setup.py", line 4, in <module>
    from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
Traceback (most recent call last):
  File "/home/tommy/projects/linux-on-litex-rocket/./litex_setup.py", line 168, in <module>
    subprocess.check_call("python3 setup.py develop --user", shell=True)
  File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'python3 setup.py develop --user' returned non-zero exit status 1.
@gsomlo
Copy link
Collaborator

gsomlo commented Dec 21, 2020

On Fedora, python3-setuptools is a dependency of python3-devel, so you get it "for free". With commit 568513a I listed it explicitly, so hopefully that takes care of it.

@gsomlo gsomlo closed this as completed Dec 21, 2020
@tommythorn
Copy link
Author

tommythorn commented Jan 4, 2021

Getting beyond this point, the instructions seems to assume you have a "litex-boards" directory. Where is that supposed to come from?

EDIT: ok, it installed it into the parent directory. That's a bit weird (and frankly not ideal). At least the documentation should mention this.

@gsomlo
Copy link
Collaborator

gsomlo commented Jan 5, 2021

Getting beyond this point, the instructions seems to assume you have a "litex-boards" directory. Where is that supposed to come from?

From litex_setup.py (Step 2 of the prerequisites).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants