1. Download and untar CTN package in /usr/local/src/
wget http://www.anandhacorp.co.uk/download/ctn-3.0.6.tar.Z
tar zxvf ctn-3.0.0 -C /usr/local/src/
vim /usr/local/src/ctn/environments/linux/linux.mysql.lesstif.noopt.envSet an alias for setenv so it points to export command, and make changes to the file as shown below
alias setenv='export' setenv CTN_TARGET=/usr/local/ctn setenv DICOM_ROOT=`pwd` setenv DICOM_BIN=$CTN_TARGET/bin setenv DICOM_LIB=$DICOM_ROOT/lib/linux.mysql setenv DICOM_LIBSRC=$DICOM_ROOT/libsrc setenv DICOM_INCLUDE=$DICOM_ROOT/include setenv DICOM_MAKE=$DICOM_ROOT/environments/linux/ctnmake.linux.mysql.lesstif.noopt setenv MYSQL_LIB=/usr/local/mysql/lib/mysql setenv MYSQL_INCLUDE=/usr/local/mysql/include/mysql setenv ARCHITECTURE=LITTLE_ENDIAN_ARCHITECTURE setenv OS=LINUX setenv CC=gcc setenv XCC=gcc setenv DBLINK=gcc setenv INSTALL=install setenv INSTALLUID="install -m 4775" setenv INSTALLINCLUDE="install -C -m 444 " setenv CI="echo Use ci on a sun" setenv CO="echo Use co on a sun" setenv INDENT="Use indent on a sun" setenv LINTOPTIONS=$DICOM_ROOT/lint/minimal.lnt setenv RANLIB=ranlib setenv LEX=flex
/usr/bin/ld: cannot find libXextThe files should be in the following location, ensure the locate command can find them.
/usr/X11R6/lib/libXext.so /usr/X11R6/lib/libXext.a /usr/X11R6/lib/libXext.so.64. Running CTN
ctn archive_server: error while loading shared libraries: libmysqlclient.so.14 file or directory not found.This means the library directory has not been set properly for mysql.Enter the library path of mysql in /etc/ld.so.conf and then run ldconfig
/usr/local/src/ctn/cfg_scripts/mysql/5. Fill Images
fillImageDB [-o owner] database file [file...]We use the -o switch to set the owner attribute at the Patient, Study, Series and Image levels in our database. We use this for sorting. database is the database name (not the AE title that one would use when connecting to the image_server). You can specify one or more files to be placed in the database (e.g., we typically use .../images/vendor/*/*). You will want to specify a full pathname for image files so that the images can be "moved" when the time comes. The one warning is that the underlying IDB functions may try to delete image files that have already been loaded into the database. This means that if you get part way through loading the images and fail, you should probably clear the database first before retrying. Otherwise, when you rerun your script to load all of the images, the files which have already been loaded may be deleted.
..../vendor/study/images .../vendor/study/images
send_image -a [Ae_title] -c {Ae-title} {hostname} {port number}