Installing netgen1. download the latest source distribution using git git clone git://opencircuitdesign.com/netgen git_netgen 2. configure and install netgen cd ~/git_netgen ./configure --prefix=/home/<unixusername>/opt/netgen make make install The location of magic's binaries is ~/opt/netgen/bin 3. create a .bash_profile file and add the location of the netgen binaries to the PATH cd .bash_profile
#!/usr/bin/bash
PATH=${PATH}
# Careful:
# when there is a .bash_profile the WSL terminal does not source .bashrc by default
source ~/.bashrc
# prevent "Warning: Missing charset in String to FontSet conversion"
export LC_ALL=C
# magic: binaries location
MAGIC_BIN=$HOME/opt/magic/bin
export CAD_ROOT=$HOME/opt/magic/lib
# netgen: binaries location
NETGEN_BIN=$HOME/opt/netgen/bin
# PATH
PATH="$MAGIC_BIN:$NETGEN_BIN:$PATH"
# eliminate duplicates from the PATH
PATH="$(perl -e 'print join(":", grep { not $seen{$_}++ } split(/:/, $ENV{PATH}))')"
# and finally export the PATH
export PATH="$PATH"
|