wiki:Linux

Installation Instructions - tar.gz(bz2) package for any Unix distribution:

To install the tar.gz(bz2) package for any distribution, please follow these steps:

  1. After downloading the tar.gz package, you need to uncompress and extract it in a location of your choice, for example, /usr/lib or /usr/local or /usr/local/lib. For the purpose of this document, it is assumed you are going to install UltraScan in /usr/lib and /path is the path to your downloaded file.

cd /usr/lib gzip -d /path/ultrascan-version.tar.gz

For bzip2 compressed binaries, use: bzip2 -d /path/ultrascan-version.tar.bz2

tar -xvf /path/ultrascan-version.tar

  1. Next, you need to set the following environment variables, either in the private login script file, or in a global login script file, or alternatively as shown in option (5):

For sh, bash:

export ULTRASCAN=/usr/lib/ultrascan export PATH=$PATH:$ULTRASCAN/bin

Note: If you have a 64-bit distribution for AMD Opteron or Intel Xeon, please use this path instead:

export ULTRASCAN=/usr/lib/ultrascan export PATH=$PATH:$ULTRASCAN/bin64

For csh, tcsh:

setenv ULTRASCAN /usr/lib/ultrascan setenv PATH ${PATH}:${ULTRASCAN}/bin"

Note: If you have a 64-bit distribution for AMD Opteron or Intel Xeon, please use this path instead:

setenv ULTRASCAN /usr/lib/ultrascan setenv PATH ${PATH}:${ULTRASCAN}/bin64

shared library list. If your Unix system supports dynamic link path configuration using /etc/ld.so.conf, this can be accomplished by adding /usr/lib/ultrascan to the /etc/ld.so.conf file and running ldconfig.

  1. If your Unix system does not support /etc/ld.so.conf dynamic link configurations, you will need to modify the "LD_LIBRARY_PATH" environment variable and add the UltraScan library directory to it:

For sh, bash:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/ultrascan/lib

Note: If you have a 64-bit distribution for AMD Opteron or Intel Xeon, please use this path instead:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/ultrascan/lib64

For csh, tcsh:

setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/lib/ultrascan/lib"

Note: If you have a 64-bit distribution for AMD Opteron or Intel Xeon, please use this path instead:

setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/lib/ultrascan/lib64"

For Mac OS-X:

export DYLD_LIBRARY_PATH=$ULTRASCAN/lib:$DYLD_LIBRARY_PATH

  1. Next, you will have to add the UltraScan library directory to your dynamically
  2. If your distribution supports /etc/profile.d/ script parsing (most Linux versions do), you can also add these files to /etc/profile.d:
  • us.sh (for sh, bash, etc...)
  • us.csh (for csh, tcsh, etc...)

Don't forget to make the scripts executable:

chmod 755 /etc/profile.d/us.*

  • us.sh:
    #!/bin/sh
    # Environment variables for the UltraScan package:
    export ULTRASCAN=/usr/lib/ultrascan
    export PATH="$PATH:$ULTRASCAN/bin"
    
  • us.csh:
    #!/bin/csh
    # Environment variables for the UltraScan package:
    setenv ULTRASCAN /usr/lib/ultrascan
    setenv PATH "${PATH}:${ULTRASCAN}/bin"
    
  1. If your Unix version does not support /etc/profile.d/* script parsing, you will have to modify your environment
  1. To verify that the environment variables are correctly installed, use the "echo" command:

echo $VARIABLE

  1. Next, verify that all dependencies are satisfied. UltraScan requires QT version 3.1.x with the following compile time options:

configure -qt-gif -thread -shared -qt-sql-mysql

Last modified 7 years ago Last modified on May 31, 2011 2:32:14 PM