[ncl-install] Messy installation through apt in Ubuntu 20.04 and the fix for it.
Muhammad Yunus Ahmad Mazuki
ukm.yunus2 at gmail.com
Sun Jul 26 23:57:34 MDT 2020
Hello,
I would like to share that if you use 'apt install ncl-ncarg' in
Ubuntu 20.04, the ncl installation will be messy.
The ncl components will be installed in various places, that is:
/usr/bin
/usr/lib/ncarg
/usr/include/ncarg
/usr/share/ncarg
Even more messy is that there is a folder inside /usr/share/ncarg/ and
/usr/lib/ncarg that will just point at each other and create an
endless loop.
The fix to this messy problem and making sure that the ncl
installation will work
For the traditional lib directory and sub directories.
sudo mkdir /usr/local/ncl
sudo mkdir /usr/local/ncl/lib
sudo ln -sf /lib/x86_64-linux-gnu/ncarg/* /usr/local/ncl/lib/.
sudo mkdir /usr/local/ncl/lib/ncarg
sudo ln -sf /usr/share/ncarg/* /usr/local/ncl/lib/ncarg/.
For the traditional include directory and sub directories.
sudo mkdir /usr/local/ncl/include
sudo mkdir /usr/local/ncl/include/ncarg
sudo ln -sf /usr/include/ncarg* /usr/local/ncl/include/ncarg/.
Optional, remove the link loop
sudo rm /usr/share/ncarg/ncarg
I think there's no need to link the bin directory
Then add in ~./bashrc
export NCARG_ROOT=/usr/local/ncl
This is important as the ncl binaries still depends on libgfortran3
which is no longer included in Ubuntu 20.04. Therefore the
instructions in the pages below will not work in Ubuntu 20.04, and
possibly all future versions of Ubuntu.
https://www.ncl.ucar.edu/Download/install_from_binary.shtml
https://www.ncl.ucar.edu/Download/windows_linux_subsystem.shtml
Yunus.
More information about the ncl-install
mailing list