Compilation and Installation
Procedure
- Go to the installation package directory.
cd /path/to/duns
- Decompress the installation package.
tar xvf duns-2.7.1-src.tar.bz2 cd duns-2.7.1
- Create an installation directory for future use.
export DUNSARCH=linux export DUNSPATH27=`pwd` export PATH=$DUNSPATH27/util:$PATH
- Modify the related file.
sed -i '10s/g77/gfortran/' makesystem/Makesystem_linux sed -i "28s#.*#SYSLIBS = -L/path/to/gcc/9.3.1/lib64 -Wl,-Bdynamic -lgcc_s -lm -lgfortran#" makesystem/Makesystem_linux
Replace /path/to/gcc/9.3.1/lib64 in the preceding example command with the actual lib64 directory where GCC is installed.
sed -i '29s#.*#GRAFLIBS = -lmbgrafic -lgrafic -L/usr/lib -Wl,-Bdynamic -lX11#' makesystem/Makesystem_linux sed -i 's/getline/getline1/g' `grep getline -rl --include="*" src/*`
- Perform the compilation and installation.
cd lib make make install
- Perform a 3D program.
cd .. dunssource 3d all cd duns-3d-all line=`expr $(grep -n -m 1 "^c .*" assemble.f |awk -F: '{print $1}') - 1` sed -i "1,${line}d" *.f *.c include/* make -j - Check whether duns.e and dunsplot.e are generated.
ls
If the following information is displayed, the generation is successful.

Parent topic: DUNS 4.7.1 Porting Guide (Kylin V10)