diff --git a/distro/scripts/adl_cots.sh b/distro/scripts/adl_cots.sh
index e62e5cd607b367b56a2b8d8f4a22eaac900ee44c..3cffacccc7f8a6fd10eea3f7a9c472d28fc07222 100755
--- a/distro/scripts/adl_cots.sh
+++ b/distro/scripts/adl_cots.sh
@@ -473,7 +473,7 @@ nagg(){
     install_the_source ${tar_name}  && \
     cd hdf5_HL_REGION*  && \
     export HDF5_INSTALL_DIR=${USER_COTS_PATH}  && \
-    export LDFLAGS="-static -L${USER_COTS_PATH}/lib"  && \
+    export LDFLAGS=" -static -L${USER_COTS_PATH}/lib "  && \
     ls ${USER_COTS_PATH}/lib
     make
     make install
@@ -481,15 +481,19 @@ nagg(){
     tar_name=nagg-1.6.2.tar.gz  && \
     rm -fr ${BUILD}/nagg*  && \
     install_the_source ${tar_name}  && \
-    ls && \
+    echo "ls ${USER_COTS_PATH}/lib"
     ls ${USER_COTS_PATH}/lib
+    echo  "ls ${USER_COTS_PATH}/lib"
+      ls ${USER_COTS_PATH}/include
     cd nagg-1.6.2  && \
     patch -p1 <  ${COTS_HOME}/scripts/revised_nagg.patch   && \
     export CFLAGS=" -I${USER_COTS_PATH}/include "${CFLAGS}
-    ./configure  --prefix=${USER_COTS_PATH} --with-hlregion=${USER_COTS_PATH}/lib   && \
+    ./configure --help
+    ./configure  --prefix=${USER_COTS_PATH}   --exec-prefix=${USER_COTS_PATH} --with-hlregion=${USER_COTS_PATH}/lib   && \
     make   && \
-    make install   && \ 
-    cp nagg/bin/nagg ${USER_COTS_PATH}/bin   && \
+    make install   && \
+     ls ${USER_COTS_PATH}/bin
+    #cp nagg/bin/nagg ${USER_COTS_PATH}/bin   && \
     unset LDFLAGS   && \ 
     echo "${FUNCNAME[0]} finished" && \
     return 0
@@ -606,7 +610,6 @@ all()
     mk_wgrib2 && \
     mk_szip && \
     mk_hdf5 && \
-    nagg && \
     mk_log4cplus && \
     mk_slibc && \
     mk_sqlite && \
@@ -618,7 +621,7 @@ all()
     mk_cminpak && \
     mk_proto && \
     where  && \
-
+    nagg && \
     fix_links && \
     echo "COTS Built" && \
     _rpath_setter ${DESIRED_RPATH} ${USER_COTS_PATH}/lib && \