- If you don't have 'yay', install it.
- Clone yay
git clone https://aur.archlinux.org/yay.git
- Change directory and install
cd yay makepkg -si
- Now install gcc-4.8
yay -S gcc48
Download ns-allinone-2.35_gcc5.tar.gz
- Extract and change directory
tar -xf ns-allinone-2.35_gcc5.tar.gz cd ns-allinone-2.35/
- First install dependencies
sudo pacman -S libx11 libxmu
- To install, run
export CC=gcc-4.8 CXX=g++-4.8 && ./install
- After this script runs successfully
- Change directory to nam-1.15 and install
cd nam-1.15/ sudo make install
- Change directory to ns-2.35 and install
cd ../ns-2.35/ sudo make install