As noted by @andrew-henle, the q/a How do I extract the contents of an rpm? gives some information which could be useful. If you want to compile
ncview and have no ability to install packages, you could find RPMs for the missing pieces, download them and copy the files to your home directory.
If you do that, suppose you put those under
$HOME/mystuff. Then under that directory, make subdirectories
share. Copy the files extracted from the RPMs to the corresponding location in the "mystuff" tree.
Set these environment variables to help the
Then run the configure-script for
ncview. It will probably find that you overlooked something. Get that, put it in the
mystuff tree. Repeat until you get it to compile.
Likely those packages have shared libraries. If so, you will need a workaround to get
ncview to run, and probably just to configure it. Set this environment variable to help: