Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to save the environment info for c@dence IC5

Status
Not open for further replies.

lcg22

Member level 5
Member level 5
Joined
Sep 10, 2002
Messages
84
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
597
By following the cr@ck file, I input the folloing commands to set up the environment variables
PATH=$PATH:/home/lcg/program/cadence/ic50/tools.lnx86/bin
PATH=$PATH:/home/lcg/program/cadence/ic50/tools.lnx86/dfII/bin
PATH=$PATH:/home/lcg/program/cadence/ic50/tools.lnx86/plot/bin
export CDSDIR=/.../install_directory
export CDS_ROOT=/.../install_directory
export CDS_INST_DIR=/.../install_directory
export CDS_INSTALL_DIR=/.../install_directory/tools.lnx86/dfII
export XKEYSYMDB=$CDS_INST_DIR/share/cdssetup/tdmX11/XKeysymDB
export XNLSPATH=$CDS_INST_DIR/share/cdssetup/tdmX11/nls
export PATH

then I can lauch the program by inputting icms. However, once I close the console and open it again, all the envieonment infomation lost. how shall I do to permanently save those infomation? where are these infomation are store? and how to write a shell script to run the above quoted commands?
thank you very much in advance.
 

Just put them in your ".bashrc" file. It will be activated each time you start your new terminal.

Moreover, you should use "icfb" which contains almost packages of IC5, unless you just need mixed-signal package.
 

Amuro said:
Just put them in your ".bashrc" file. It will be activated each time you start your new terminal.

Moreover, you should use "icfb" which contains almost packages of IC5, unless you just need mixed-signal package.
thank you. do you mean the file /etc/.bashrc? but how to put them? just append at the end of the file?
 

lcg22 said:
Amuro said:
Just put them in your ".bashrc" file. It will be activated each time you start your new terminal.

Moreover, you should use "icfb" which contains almost packages of IC5, unless you just need mixed-signal package.
thank you. do you mean the file /etc/.bashrc? but how to put them? just append at the end of the file?

append to this file
/home/<username>/.bashrc
 

srik said:
append to this file
/home/<username>/.bashrc
Thank you. I edited both /etc/.bashrc and /home/<username>/.bash_profile. Now it works. What is the differnce by editing /etc/.bashrc, /home/<username>/.bashrc or /home/<username>/.bash_profile?
 

The file .bash_profile runs when the user logs in. The file .bashrc runs each time a terminal window is opened.
At Terminal Window Startup Time: .bashrc checks to see if /etc/bashrc exists and calls it. /etc/bashrc sets the PATH variable, but DOES NOT include $PATH in its new PATH, causing it to overwrite the PATH that was originally set in the user's .bash_profile.

I suggest removing the PATH variable from .bash_profile. Leave a comment in .bash_profile that the PATH variable should be modified in .bashrc.
 

Amuro said:
The file .bash_profile runs when the user logs in. The file .bashrc runs each time a terminal window is opened.
At Terminal Window Startup Time: .bashrc checks to see if /etc/bashrc exists and calls it. /etc/bashrc sets the PATH variable, but DOES NOT include $PATH in its new PATH, causing it to overwrite the PATH that was originally set in the user's .bash_profile.

I suggest removing the PATH variable from .bash_profile. Leave a comment in .bash_profile that the PATH variable should be modified in .bashrc.
Thanks, then what is the difference between /etc/.bashrc, /home/<username>/.bashr?
 

In the directory /cdsdir/tools/dfII/cdsuser, there the system env set file.
 

lcg22 said:
Thanks, then what is the difference between /etc/.bashrc, /home/<username>/.bashr?

I think your "/etc/.bashrc" is the same as my mentioned "/etc/bashrc". However, I, myself, have never seen any linux distribution use "/etc/.bashrc" before (I'm using Redhat and Debian. Used to try other distro also but hard to remember their details). You can check your "/home/<username>/.bashrc". If there is somewhere has called "/etc/.bashrc", we are taking to the same file. Otherwise, there may be other mechanism I've never known.
 

Do U use the linix?

Building the .bashrc in your home path. Just put them in your ".bashrc" file. It will be activated each time you start your new terminal.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top