VLSIDA / OpenRAM

An open-source static random access memory (SRAM) compiler.
http://www.openram.org
BSD 3-Clause "New" or "Revised" License
780 stars 198 forks source link

Anaconda install problem #201

Closed haotommy closed 11 months ago

haotommy commented 11 months ago

tommy@tommy-virtual-machine:~$ sudo apt install ngspice tommy@tommy-virtual-machine:~$ sudo apt-get install python3 tommy@tommy-virtual-machine:~$ sudo apt install python3-pip tommy@tommy-virtual-machine:~$ pip3 install numpy tommy@tommy-virtual-machine:~$ pip3 install coverage tommy@tommy-virtual-machine:~$ pip3 install scikit-learn tommy@tommy-virtual-machine:~$ sudo apt update tommy@tommy-virtual-machine:~$ sudo apt install git tommy@tommy-virtual-machine:~$ sudo apt-get update tommy@tommy-virtual-machine:~$ sudo apt-get install make tommy@tommy-virtual-machine:~$ vim .bashrc (Below are the environment variables I added. export OPENRAM_HOME="$HOME/OpenRAM/compiler" export OPENRAM_TECH="$HOME/OpenRAM/technology" export PYTHONPATH="$PYTHONPATH:$OPENRAM_HOME" export PYTHONPATH="$OPENRAM_HOME:$OPENRAM_TECH/sky130:$OPENRAM_TECH/sky130/custom" export CONDA_HOME="/path/to/conda/setup" After adding them, close the Terminal and then reopen it.) tommy@tommy-virtual-machine:~$pip3 install openram tommy@tommy-virtual-machine:~$pip3 install git+https://git@github.com/VLSIDA/OpenRAM.git@dev tommy@tommy-virtual-machine:~$git clone https://github.com/VLSIDA/OpenRAM.git tommy@tommy-virtual-machine:~$cd OpenRAM tommy@tommy-virtual-machine:~/OpenRAM$ sudo pip install -r requirements.txt tommy@tommy-virtual-machine:~/OpenRAM$./install_conda.sh It can't find the Anaconda.

mguthaus commented 11 months ago

The script itself installs miniconda.

You can see installation instructions at: https://github.com/VLSIDA/OpenRAM/blob/stable/docs/source/basic_setup.md#basic-setup

I believe I shared this with you before, so please don't do all that other stuff...

haotommy commented 11 months ago

Hello, I had successfully installed OpenRAM before, but due to the virtual server failure, I need to reinstall it. However, following the steps, I encountered some issues.


@.:~$ sudo apt install ngspice @.:~$ sudo apt-get install python3 @.:~$ sudo apt install python3-pip @.:~$ pip3 install numpy @.:~$ pip3 install coverage @.:~$ pip3 install scikit-learn @.:~$ sudo apt update @.:~$ sudo apt install git @.:~$ sudo apt-get update @.:~$ sudo apt-get install make @.:~$ vim .bashrc [image: image.png] (Below are the environment variables I added. export OPENRAM_HOME="$HOME/OpenRAM/compiler" export OPENRAM_TECH="$HOME/OpenRAM/technology" export PYTHONPATH="$PYTHONPATH:$OPENRAM_HOME" export PYTHONPATH="$OPENRAM_HOME:$OPENRAM_TECH/sky130:$OPENRAM_TECH/sky130/custom" export CONDA_HOME="/path/to/conda/setup" After adding them, close the Terminal and then reopen it.) @.:~$pip3 install openram @.:~$pip3 install git+ @*.**@*. @.:~$git clone https://github.com/VLSIDA/OpenRAM.git @.:~$cd OpenRAM @.:~/OpenRAM$./install_conda.sh [image: image.png]


I follow the steps on github but it gives me the wrong state. Is there any mistake or missing step in the installation? Thaks for your help.

Matt Guthaus @.***> 於 2023年7月21日 週五 上午11:34寫道:

Closed #201 https://github.com/VLSIDA/OpenRAM/issues/201 as completed.

— Reply to this email directly, view it on GitHub https://github.com/VLSIDA/OpenRAM/issues/201#event-9881077349, or unsubscribe https://github.com/notifications/unsubscribe-auth/A47LP6G5Y3FAVNPZPZXMRADXRH2EXANCNFSM6AAAAAA2SIHFWE . You are receiving this because you authored the thread.Message ID: @.***>

mguthaus commented 11 months ago

This isn't a real path:

export CONDA_HOME="/path/to/conda/setup"

mguthaus commented 11 months ago

All python requirements are in requirements.txt

mguthaus commented 11 months ago

Conda will install necessary tools for you automatically when you run install_conda.sh.

Everything else isn't needed.

haotommy commented 11 months ago

I rewrite the .bashrc with this export CONDA_HOME="$HOME/path/to/conda/setup". And then,I have two questions. 1. @.:~$ cd OpenRAM/ @.:~/OpenRAM$ ./install_conda.sh After it finish the process,it's that right away to have do this command " ./install_conda.sh" in OpenRAM file?


2. Why I doing Sky130 setup get problem? @.:~/OpenRAM$ make pdk [image: image.png] [image: image.png] [image: image.png] And I, @.:~/OpenRAM$ ./install_conda.sh @.:~/OpenRAM$ source miniconda/bin/activate [image: image.png] Finally, @.:~/OpenRAM$ make install [image: image.png] There have three problem in Sky130 Setup.

Matt Guthaus @.***> 於 2023年7月21日 週五 下午1:09寫道:

Conda will install necessary tools for you automatically when you run install_conda.sh.

Everything else isn't needed.

— Reply to this email directly, view it on GitHub https://github.com/VLSIDA/OpenRAM/issues/201#issuecomment-1644989660, or unsubscribe https://github.com/notifications/unsubscribe-auth/A47LP6BAJHMLF7KMU4KOXTTXRIFH7ANCNFSM6AAAAAA2SIHFWE . You are receiving this because you authored the thread.Message ID: @.***>

haotommy commented 11 months ago

I rewrite the .bashrc with this export CONDA_HOME="$HOME/path/to/conda/setup". It's that correct? And then,I have two questions. 1. @.:~$ cd OpenRAM/ @.:~/OpenRAM$ ./install_conda.sh After it finish the process,it's that right away to have do this command " ./install_conda.sh" in OpenRAM file?


2. Why I doing Sky130 setup get problem? @.:~/OpenRAM$ make pdk [image: image.png] [image: image.png] [image: image.png] And I, @.:~/OpenRAM$ ./install_conda.sh @.:~/OpenRAM$ source miniconda/bin/activate [image: image.png] Finally, @.:~/OpenRAM$ make install [image: image.png] There have three problem in Sky130 Setup.

陳廷豪 @.***> 於 2023年7月21日 週五 下午2:29寫道:

I rewrite the .bashrc with this export CONDA_HOME="$HOME/path/to/conda/setup". And then,I have two questions. 1. @.:~$ cd OpenRAM/ @.:~/OpenRAM$ ./install_conda.sh After it finish the process,it's that right away to have do this command " ./install_conda.sh" in OpenRAM file?


2. Why I doing Sky130 setup get problem? @.:~/OpenRAM$ make pdk [image: image.png] [image: image.png] [image: image.png] And I, @.:~/OpenRAM$ ./install_conda.sh @.:~/OpenRAM$ source miniconda/bin/activate [image: image.png] Finally, @.:~/OpenRAM$ make install [image: image.png] There have three problem in Sky130 Setup.

Matt Guthaus @.***> 於 2023年7月21日 週五 下午1:09寫道:

Conda will install necessary tools for you automatically when you run install_conda.sh.

Everything else isn't needed.

— Reply to this email directly, view it on GitHub https://github.com/VLSIDA/OpenRAM/issues/201#issuecomment-1644989660, or unsubscribe https://github.com/notifications/unsubscribe-auth/A47LP6BAJHMLF7KMU4KOXTTXRIFH7ANCNFSM6AAAAAA2SIHFWE . You are receiving this because you authored the thread.Message ID: @.***>

haotommy commented 11 months ago

I have been looking at GitHub, but I am having trouble understanding it. Could you please record a video tutorial for installing OpenRAM and running simulations with .sp files? I'm having trouble understanding the process from GitHub, no matter how much I try to follow the instructions.

陳廷豪 @.***> 於 2023年7月22日 週六 上午10:57寫道:

I rewrite the .bashrc with this export CONDA_HOME="$HOME/path/to/conda/setup". It's that correct? And then,I have two questions. 1. @.:~$ cd OpenRAM/ @.:~/OpenRAM$ ./install_conda.sh After it finish the process,it's that right away to have do this command " ./install_conda.sh" in OpenRAM file?


2. Why I doing Sky130 setup get problem? @.:~/OpenRAM$ make pdk [image: image.png] [image: image.png] [image: image.png] And I, @.:~/OpenRAM$ ./install_conda.sh @.:~/OpenRAM$ source miniconda/bin/activate [image: image.png] Finally, @.:~/OpenRAM$ make install [image: image.png] There have three problem in Sky130 Setup.

陳廷豪 @.***> 於 2023年7月21日 週五 下午2:29寫道:

I rewrite the .bashrc with this export CONDA_HOME="$HOME/path/to/conda/setup". And then,I have two questions. 1. @.:~$ cd OpenRAM/ @.:~/OpenRAM$ ./install_conda.sh After it finish the process,it's that right away to have do this command " ./install_conda.sh" in OpenRAM file?


2. Why I doing Sky130 setup get problem? @.:~/OpenRAM$ make pdk [image: image.png] [image: image.png] [image: image.png] And I, @.:~/OpenRAM$ ./install_conda.sh @.:~/OpenRAM$ source miniconda/bin/activate [image: image.png] Finally, @.:~/OpenRAM$ make install [image: image.png] There have three problem in Sky130 Setup.

Matt Guthaus @.***> 於 2023年7月21日 週五 下午1:09寫道:

Conda will install necessary tools for you automatically when you run install_conda.sh.

Everything else isn't needed.

— Reply to this email directly, view it on GitHub https://github.com/VLSIDA/OpenRAM/issues/201#issuecomment-1644989660, or unsubscribe https://github.com/notifications/unsubscribe-auth/A47LP6BAJHMLF7KMU4KOXTTXRIFH7ANCNFSM6AAAAAA2SIHFWE . You are receiving this because you authored the thread.Message ID: @.***>