https://open-source-silicon.dev logo
#sky130
Title
# sky130
m

Mohanad Mohamed

01/11/2022, 6:23 PM
Hi there, I'm trying to install open_pdks without root privilege. I installed magic and skywater pdk before cloning the repo, then I'm stuck in configuring open_pdks because I'm running into an error "error: You need 'magic' to generate the needed various cell views.". I tried to add magic directory path into
$PATH
or making magic as an alias of its directory but nothing new. All dependencies and required packages are installed earlier. The config command i'm using is:
./configure --enable-sky130-pdk=<skywater pdk path> --prefix=<local installation directory> --enable-xschem-sky130
I know that configuration is looking for magic in
/usr/local/bin/magic
but that path needs sudo. Is there any other options?
m

Matt Venn

01/11/2022, 7:17 PM
What do you mean that path needs sudo?
m

Mohanad Mohamed

01/11/2022, 7:20 PM
This path
/usr/local/
needs sudo privilege to install magic in it.
m

Matt Venn

01/11/2022, 7:20 PM
Ah you don't have root access
m

Mohanad Mohamed

01/11/2022, 7:20 PM
yes
m

Matt Venn

01/11/2022, 7:21 PM
Maybe @User knows a workaround
t

Tim Edwards

01/11/2022, 7:29 PM
I think that magic is just searched for with
which magic
from the autoconf script, which means that if you install magic into some spot in your own home directory tree, and you alter your PATH environment variable to include the location of the
magic
executable script, then
open_pdks
should configure itself with the correct path to magic when you run
configure
.
I just confirmed from the autoconf tools documentation that autoconf will look in the defined
PATH
environment variable, so what I said above should work.
👍 1
m

Mohanad Mohamed

01/11/2022, 7:32 PM
Okay, I will try my best. Thanks!
There was a typo in
PATH
, now it works. Thank you so much.