Professional Documents
Culture Documents
NOTE: all wget and build(make/cmake) commands was done inside "~/downloads" folder.
all libraries and binaries were installed in "/~installed_programs" in its
respective directories. use "export" command to add libraries and binaries to the
environment for use.
calling module load to load additional modules. this would make sure that everthing
in default should work properly.
command:
module load cmake/3.12.2 hdf5 intel_2019 netcdf-c netcdf-fortran udunits2
default environment values after loading modules. revert back to this when
everthing goes wrong.
LD_LIBRARY_PATH =
/gpfs/module/hdf5/lib:
/gpfs/module/udunits2/lib:
/gpfs/module/netcdf-fortran/lib:
/gpfs/module/netcdf-c/lib:
/opt/ohpc/pub/libs/singularity/2.6.0/lib:
/opt/ohpc/pub/mpi/openmpi3-gnu7/3.1.0/lib:
/opt/ohpc/pub/compiler/gcc/7.3.0/lib64
PATH =
/gpfs/compilers/intel2019/impi/2019.4.243/intel64/bin:
/gpfs/compilers/intel2019/bin:
/gpfs/module/hdf5/bin:
/gpfs/module/udunits2/bin:
/gpfs/module/netcdf-fortran/bin:
/gpfs/module/netcdf-c/bin:
/opt/ohpc/pub/utils/cmake/3.12.2/bin:
/opt/xcat/bin:/opt/xcat/sbin:
/opt/xcat/share/xcat/tools:
/opt/ohpc/pub/libs/singularity/2.6.0/bin:
/opt/ohpc/pub/mpi/openmpi3-gnu7/3.1.0/bin:
/opt/ohpc/pub/compiler/gcc/7.3.0/bin:
/opt/ohpc/pub/utils/prun/1.2:
/opt/ohpc/pub/bin:
/opt/lenovo/onecli:
/opt/confluent/bin:
/usr/local/bin:
/usr/bin:
/usr/local/sbin:
/usr/sbin:
/usr/lpp/mmfs/bin:
/gpfs/home/cdtuser/.local/bin:
/gpfs/home/cdtuser/bin:
INCLUDE=
/gpfs/compilers/intel2019/compilers_and_libraries_2019/linux/include:
/gpfs/compilers/intel2019/include:
/gpfs/module/hdf5/include:
/gpfs/module/udunits2/include:
/gpfs/module/netcdf-fortran/include:
/gpfs/module/netcdf-c/include:
/opt/ohpc/pub/compiler/gcc/7.3.0/include
install CDT in R. following lines were commands except for lines starting with "-".
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:
install.packages("devtools")
- if error in ragg need to install textshaping. if still error occurs
make sure you have libharfbuzz and libfribidi package, check in PKG_CONFIG_PATH's,
textshaping is looking for two specific files, harfbuzz.pc and fribidi.pc. if not
existing, use export, quit R first.
- if you cant find both files build both packages.
- make sure you are in the download directory.
cd ~/downloads
- building fribidi
wget https://github.com/fribidi/fribidi/releases/download/v1.0.12/fribidi-
1.0.12.tar.xz
unxz fribidi-1.0.12.tar.xz
tar -xvf fribidi-1.0.12.tar
cd fribidi-1.0.12/
./configure --prefix=/gpfs/home/cdtuser/installed_programs/fribidi-1.0.12
make
make check
make install
export LD_LIBRARY_PATH=~/installed_programs/fribidi-1.0.12/lib:
$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=/gpfs/home/cdtuser/installed_programs/fribidi-1.0.12/
lib/pkgconfig:$PKG_CONFIG_PATH
- build freetype as required by harfbuzz
cd ~/downloads
wget https://download.savannah.gnu.org/releases/freetype/freetype-
2.11.1.tar.gz --no-check-certificate
tar -zxvf freetype-2.11.1.tar.gz
cd freetype-2.11.1/
./configure --prefix=/gpfs/home/cdtuser/installed_programs/freetype-2.11.1
make -j 8
make check
make install
export PKG_CONFIG_PATH=/gpfs/home/cdtuser/installed_programs/freetype-
2.11.1/lib/pkgconfig:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=/gpfs/home/cdtuser/installed_programs/freetype-
2.11.1/lib:$LD_LIBRARY_PATH
- building harfbuzz
cd ~/downloads
wget https://github.com/harfbuzz/harfbuzz/releases/download/5.1.0/harfbuzz-
5.1.0.tar.xz
unxz harfbuzz-5.1.0.tar.xz
tar -xvf harfbuzz-5.1.0.tar
cd harfbuzz-5.1.0/
export FREETYPE_CFLAGS="-I/gpfs/home/cdtuser/installed_programs/freetype-
2.11.1/include/freetype2"
export FREETYPE_LIBS="-L/gpfs/home/cdtuser/installed_programs/freetype-
2.11.1/lib -lfreetype"
./configure --prefix=/gpfs/home/cdtuser/installed_programs/harfbuzz-5.1.0 --
with-freetype=yes
make -j 8
make check (will not work, need python3, only python2 was installed in the
hpc, can be skipped but if error or failure exist, it cant be traced.)
make install
export PKG_CONFIG_PATH=/gpfs/home/cdtuser/installed_programs/harfbuzz-5.1.0/
lib/pkgconfig:$PKG_CONFIG_PATH
- rebuild devtools.
R
install.packages("devtools")
- manual install terra.
install.packages('terra', repos='https://rspatial.r-universe.dev',
configure.args="--with-proj-share=/gpfs/home/cdtuser/installed_programs/proj-
4.9.3/share/proj")
- if error occured in units do manual install.
install.packages('units',
configure.args=c('--with-udunits2-lib=/gpfs/module/udunits2/lib','--with-udunits2-
include=/gpfs/module/udunits2/include'))
devtools::install_github("rijaf-iri/CDT")
Running CDT with DEM.
CDT will still throw errors regarding libraries. It seems that slurm can't see
libraries inside /usr/lib64, /usr/bin and /usr/include.
cp /usr/lib64/libjpeg.so.62 ~/installed_programs/lib_req_CDT/.
cp /usr/lib64/libjasper.so.1 ~/installed_programs/lib_req_CDT/.
cp /usr/lib64/libgeotiff.so.1.2 ~/installed_programs/lib_req_CDT/.
cp /usr/lib64/libtiff.so.5 ~/installed_programs/lib_req_CDT/.
cp /usr/lib64/libproj.so.0 ~/installed_programs/lib_req_CDT/.
cp /usr/lib64/libjbig.so.2.0 ~/installed_programs/lib_req_CDT/.