Navigation
Records in this category
- How to show hidden files, e.g., files starting with a dot, on Mac?
- Why wget on Linux cannot download a file that can be downloaded by firefox, etc.?
- What if I forgot the username and password for logging Ubuntu....
- How to install Ubuntu on an Intel-based Mac?
- How to add environmental variables like PATH, MANPATH in Mac?
- How to remove or uninstall Adobe Reader from Ubuntu?
Tags
Sticky FAQs
Education » Computer Science » Operating Systems
How to add environmental variables like PATH, MANPATH in Mac?
Let's take SMV as an example. To add the path of some binary files to the Mac system, there are multiple ways.
Someone may want to modify /etc/profiles, however it is suggested that modifications to the above files may result in serious system problems. Instead,make changes in your personal home directory, e.g., ~/.profile.
cd ~/.profile;
add the following information accordingly, e.g. for Cadence SMV,
export PATH=$PATH:/Projects/smv/bin
export MANPATH=$MANPATH:/Projects/smv/man
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/Projects/smv/lib
Note that for the last statement, LD_LIBRARY_PATH will be used on Linux.
These changes will not take effect immediately, so do the following to reflect the changes (to reload the file):
source ~/.profile
Now type the command to see if it's system wide available.
Tags: configuration
Related entries:
- How to install SVN (subversion) on Bluehost/Hostmonster etc.?
- How to install MediaWiki on hosting servers like Bluehost etc.?
- Can I install LaTeX/TeX systems on a shared host like BlueHost?
- Why latexrender based on LaTeX does not work in my WordPress/blog?
- Can I install latex2html on a shared host?
Last update: 2009-01-28 13:08
Author: Admin
Revision: 1.0
You can comment this FAQ