SCIENTIFIC-LINUX-USERS Archives

December 2014

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Yasha Karant <[log in to unmask]>
Reply To:
Yasha Karant <[log in to unmask]>
Date:
Mon, 15 Dec 2014 11:37:25 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (1024 lines)
On 12/15/2014 11:13 AM, Glenn Morris wrote:
> Brandon Vincent wrote:
>
>> After reading your email, I tried installing Acrobat Reader 9.5.5 on a
>> fresh SL 7 system and the only problem I encountered was that the
>> depreciated pangox libraries are no longer included with the pango
>> package. I compiled the library from source and once I ensured all the
>> dependencies were met, I had no issue starting up acroread.
> Can you actually use it to view a pdf?
> Does the "Help, About Adobe Reader 9" menu item work?
>
> For me, although just plain "acroread" works, either of the above
> actions cause it to crash (in compute_face in libcairo).
>
> (I cheated and just copied libpangox from SL6...

I used yum to erase and install acroread:

[root@jb344 Downloads]# yum erase AdobeReader_enu.i486
Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package AdobeReader_enu.i486 0:9.5.5-1 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

 ===============================================================================
  Package            Arch    Version Repository                         Size
 ===============================================================================
Removing:
  AdobeReader_enu    i486    9.5.5-1 @/AdbeRdr9.5.5-1_i486linux_enu    135 M

Transaction Summary
 ===============================================================================
Remove  1 Package

Installed size: 135 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
   Erasing    : 
AdobeReader_enu-9.5.5-1.i486                                 1/1
   Verifying  : 
AdobeReader_enu-9.5.5-1.i486                                 1/1

Removed:
   AdobeReader_enu.i486 0:9.5.5-1

Complete!
[root@jb344 Downloads]# ls /usr/bin/acroread
ls: cannot access /usr/bin/acroread: No such file or directory
[root@jb344 Downloads]# yum install AdbeRdr9.5.5-1_i486linux_enu.rpm
Loaded plugins: langpacks
Examining AdbeRdr9.5.5-1_i486linux_enu.rpm: AdobeReader_enu-9.5.5-1.i486
Marking AdbeRdr9.5.5-1_i486linux_enu.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package AdobeReader_enu.i486 0:9.5.5-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 ===============================================================================
  Package            Arch    Version Repository                        Size
 ===============================================================================
Installing:
  AdobeReader_enu    i486    9.5.5-1 /AdbeRdr9.5.5-1_i486linux_enu    135 M

Transaction Summary
 ===============================================================================
Install  1 Package

Total size: 135 M
Installed size: 135 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
   Installing : 
AdobeReader_enu-9.5.5-1.i486                                 1/1
   Verifying  : 
AdobeReader_enu-9.5.5-1.i486                                 1/1

Installed:
   AdobeReader_enu.i486 0:9.5.5-1

Complete!

end yum output

between the erase and install, I verified that /usr/bin/acroread had 
been removed, but it is present again after the install.

from (very long -- posted to note that this same Adobe supplied script 
seemed to work with X86-64 SL6):

  sh -xv /opt/Adobe/Reader9/bin/acroread
#!/bin/sh
#
# Copyright (c) 1996-2007, Adobe Systems Incorporated
# All Rights Reserved
#


ver="9.5.3"
+ ver=9.5.3

if [ "$1" = "-version" ]; then
     echo "$ver"
     exit
fi
+ '[' '' = -version ']'


LaunchBinary()
{
#    We are not LSB compliant yet, so let's not use ld-lsb.so.3 as loader.
#    if [ "`uname -s`" = "Linux" ] && [ ! -x /lib/ld-lsb.so.3 ]; then
#        exec /lib/ld-linux.so.2 ${1+"$@"}
#    else
         exec ${1+"$@"}
#    fi
}


MkTempInternal()
{
   if [ "${mktemp_count+set}" != "set" ]; then
     mktemp_count="0"
   fi

   mktemp_file="/tmp/acrobat.$$.${mktemp_count}"

   while /usr/bin/test -e "$mktemp_file"
   do
     mktemp_count="`expr $mktemp_count + 1`"
     mktemp_file="/tmp/acrobat.$$.${mktemp_count}"
   done

   touch "$mktemp_file" && chmod 600 "$mktemp_file" && echo "$mktemp_file"
}

MkTemp()
{
   MKTEMP="`which mktemp 2>/dev/null`";
   if [ "$MKTEMP" != "" ]; then
     :
   else
     MKTEMP="MkTempInternal";
   fi

     $MKTEMP /tmp/acrobat.$1
}

readlink()
{
   OLDPWD="`/bin/pwd`"
     lfile="$1"

     while [ -h "$lfile" -a -f "$lfile" ]; do
       CWD="`dirname "$lfile"`"
         if [ "`expr "${CWD}" : "\.\."`" = "2" ]; then
           CWD="`/bin/pwd`/$CWD"
             fi
             lfile="`basename "$lfile"`"
             cd "$CWD"
             lfile="`/bin/ls -l "$lfile"|sed 's/^.*-> *\(.*\) *$/\1/'`"
             done

             if [ -f "$lfile" ]; then
               CWD="`dirname "$lfile"`"
                 lfile="`basename "$lfile"`"
                 if [ "`expr "${CWD}" : "\.\."`" = "2" ]; then
                   CWD="`/bin/pwd`/$CWD"
                     fi
         cd "$CWD"
         echo `/bin/pwd`/$lfile
         cd "$OLDPWD"
         return 0
     fi

     cd "$OLDPWD"
     return 1
}


majorRelease="`echo $ver | cut -d. -f1`.0"
echo $ver | cut -d. -f1
++ echo 9.5.3
++ cut -d. -f1
+ majorRelease=9.0
cwd="`/bin/pwd 2> /dev/null`"
/bin/pwd 2> /dev/null
++ /bin/pwd
+ cwd=/homesl6/ykarant

if [ -h "$0" ]; then
  ScriptVariable=`readlink $0`
  ScriptDirectory=`dirname "$ScriptVariable"`
else
  ScriptDirectory=`dirname "$0"`
  cd "$ScriptDirectory"
  ScriptDirectory="`/bin/pwd 2> /dev/null`"
  cd "$cwd"
fi
+ '[' -h /opt/Adobe/Reader9/bin/acroread ']'
dirname "$0"
++ dirname /opt/Adobe/Reader9/bin/acroread
+ ScriptDirectory=/opt/Adobe/Reader9/bin
+ cd /opt/Adobe/Reader9/bin
/bin/pwd 2> /dev/null
++ /bin/pwd
+ ScriptDirectory=/opt/Adobe/Reader9/bin
+ cd /homesl6/ykarant
install_dir="`dirname "$ScriptDirectory"`/Reader"
dirname "$ScriptDirectory"
++ dirname /opt/Adobe/Reader9/bin
+ install_dir=/opt/Adobe/Reader9/Reader


#
# Prepend a colon separated environment variable
# $1 string to be prepended
# $2 environment variable
#
prepend()
{
   if [ -z "$2" -o "$2" = "$1" ] ; then
     echo "$1"
   else
     first="`expr "$2" : '\([^:]*\):'`"
     if [ "$first" = "$1" ] ; then
       echo "$2"
     else
       echo "${1}:${2}"
     fi
   fi
}


#
# Tests the version file in an installation directory.
#
test_install_dir()
{
     if [ "`cat "$1"/AcroVersion 2>/dev/null`" = "$ver" ] ; then
         return 0
     else
         return 1
     fi
}


#
# Check a given file in given path
#

Which()
{
     OLD_IFS="$IFS"
     IFS=":"
     status=1

     for i in $PATH; do
         if [ -x "$i/$1" ]; then
             echo "$i/$1"
             status=0
             break
         fi
     done

     IFS="$OLD_IFS"
     return $status
}

yesno()
{
   msg="$1"
   def="$2"
   while : ; do
     printf "\n%s" "$msg"
     read answer
     if [ "$answer" ] ; then
       case "$answer" in
       "y" | "Y" | "yes")
       return 0
       ;;
       *)
       return 1
       ;;
       esac
     else
       return $def
     fi
   done
}

InstallCertificateFromPath()
{
#$1 is install_dir
#$2 is Certificate Version, can be -PEM -DER
#$3 is path to Certificate
# TODO: test with  - other cert versions, test with http addr instead of 
path
     RETVAL=0
     INSTALL_DIR="$1"
     LOGFILE="`MkTemp ssl_logXXXXXX`"
     CERTNAME="`MkTemp certi.cerXXXXXX`"
     CERTDATA="`MkTemp certDataXXXXXX`"
     INFORM=`echo "$2" | sed 's/^-//'`
     INPATH="$3"

CertificateInstallDirectory="$HOME/.adobe/Acrobat/$majorRelease/Cert"

     if Which openssl >/dev/null
     then
         :
     else
       printf "%s\n" "Unable to find openssl, please make sure the 
openssl binary is in the PATH"
       exit 1
     fi

     printf "%s\n" "Read the following Certificate:"

     openssl x509 -inform "${INFORM}" -in "${INPATH}" -text -out 
"${CERTDATA}"

     beginCert=`cat "${CERTDATA}" |grep -n "BEGIN CERTIFICATE---" |cut 
-f1 -d":"`
     endCert=`cat "${CERTDATA}" |grep -n "END CERTIFICATE---" |cut -f1 
-d":"`

     head -$endCert "${CERTDATA}" | tail -`expr $endCert - $beginCert + 
1` >$CERTNAME

     HASH=`openssl x509 -hash -noout -in $CERTNAME`

     more "$CERTDATA"
     if yesno "Do you want to accept and install it (y|n)? [n] " 1
         then
             if [ ! -d "$CertificateInstallDirectory" ]
             then
               mkdir -p "$CertificateInstallDirectory"
               if [ $? -ne 0 ]
               then
                 printf "ERROR: Cannot make directory %s.\n" 
"$CertificateInstallDirectory"
                 rm -f "$CERTNAME"
                 rm -f "$CERTDATA"
                 exit 1
               fi
             fi

             cp $CERTNAME "$CertificateInstallDirectory"/${HASH}.0
             if [ $? -eq 0 ]
             then
                 printf "%s\n" "Certificate successfully installed."
             else
                 printf "%s\n" "There was a problem installing the 
certificate"
                 RETVAL=1
             fi
     else
         printf "%s\n" "Not installing the certificate."
         RETVAL=2
     fi


     rm -f $CERTNAME
     rm -f "$CERTDATA"
     return $RETVAL
}



InstallCertificateFromWeb()
{
#$1 is install_dir
#$2 is URL
#$3 is port
     RETVAL=0
     INSTALL_DIR="$1"
     LOGFILE="`MkTemp ssl_logXXXXXX`"
     CERTNAME="`MkTemp certi.cerXXXXXX`"
     CERTDATA="`MkTemp certDataXXXXXX`"

CertificateInstallDirectory="$HOME/.adobe/Acrobat/$majorRelease/Cert"

     if Which openssl >/dev/null
     then
         :
     else
       printf "%s\n" "Unable to find openssl, please make sure the 
openssl binary is in the PATH"
       exit 1
     fi

     printf "%s\n" "Fetching certificate from website...."
     printf "%s\n" "QUIT"  | openssl s_client -connect $2:$3 >$LOGFILE

     if [ $? -ne 0 ]
     then
     exit 1
     else
         printf "%s\n" "Processing ...."
     fi


     beginCert=`cat $LOGFILE |grep -n "BEGIN CERTIFICATE---" |cut -f1 -d":"`
     endCert=`cat $LOGFILE |grep -n "END CERTIFICATE---" |cut -f1 -d":"`

     head -$endCert $LOGFILE | tail -`expr $endCert - $beginCert + 1` 
 >$CERTNAME

     openssl x509 -inform PEM -in $CERTNAME -text -out "${CERTDATA}"
     HASH=`openssl x509 -hash -noout -in $CERTNAME`

     printf "%s\n\n" "The website presented the following Certificate"

     more "$CERTDATA"
     if yesno "Do you want to accept and install it (y|n)? [n] " 1
         then
             if [ ! -d "$CertificateInstallDirectory" ]
             then
               mkdir -p "$CertificateInstallDirectory"
               if [ $? -ne 0 ]
               then
                 printf "ERROR: Cannot make directory %s.\n" 
"$CertificateInstallDirectory"
                 rm -f "$CERTNAME"
                 rm -f "$CERTDATA"
                 rm -f "$LOGFILE"
                 exit 1
               fi
             fi

             cp $CERTNAME "$CertificateInstallDirectory"/${HASH}.0
             if [ $? -eq 0 ]
             then
                 printf "%s\n" "Certificate successfully installed."
             else
                 printf "%s\n" "There was a problem installing the 
certificate"
                 RETVAL=1
             fi
     else
         printf "%s\n" "Not installing the certificate."
         RETVAL=2
     fi


     rm -f $CERTNAME
     rm -f $CERTDATA
     rm -f $LOGFILE
     return $RETVAL
}


# Do not allow launch using 'sudo'.
if [ "${ACRO_ALLOW_SUDO+set}" != "set" -a \( "${SUDO_USER+set}" = "set" 
-o "${SUDO_UID+set}" = "set" -o "${SUDO_GID}" = "set" \) ]; then
   printf "%s\n" "Adobe Reader does not need to be run as a privileged 
user. Please remove 'sudo' from the beginning of the command."
   exit 1
fi
+ '[' '' '!=' set -a '(' '' = set -o '' = set -o '' = set ')' ']'

#
# Get the current working directory.
# Try to avoid automounter directories by checking
# if $HOME or $PWD is the same directory as pwd,
# and removing the automount directory component.
#
if [ -z "$cwd" -o ! -d "$cwd" ] ; then
   printf "%s\n" "ERROR: Cannot determine current directory."
   exit 1
fi
+ '[' -z /homesl6/ykarant -o '!' -d /homesl6/ykarant ']'

if [ "$HOME" -a -d "$HOME" ] && [ "`cd / ; cd "$HOME" ; /bin/pwd`" = 
"$cwd" ] ; then
   cwd="$HOME"
elif [ "$PWD" -a -d "$PWD" ] && [ "`cd / ; cd "$PWD" ; /bin/pwd`" = 
"$cwd" ] ; then
   cwd="$PWD"
fi
+ '[' /homesl6/ykarant -a -d /homesl6/ykarant ']'
cd / ; cd "$HOME" ; /bin/pwd
++ cd /
++ cd /homesl6/ykarant
++ /bin/pwd
+ '[' /homesl6/ykarant = /homesl6/ykarant ']'
+ cwd=/homesl6/ykarant


PWD="$cwd"
+ PWD=/homesl6/ykarant
export PWD
+ export PWD


#
# Setup ACRO_ARG0 to this script
#
arg0="$0"
+ arg0=/opt/Adobe/Reader9/bin/acroread
if [ "$arg0" ] ; then
   case "$arg0" in
      /*) ;;
     ./*) arg0="$cwd/`expr "$arg0" : '\./\(.*\)'`" ;;
       *) arg0="$cwd/$arg0" ;;
   esac

   ACRO_ARG0="$arg0"
   export ACRO_ARG0
fi
+ '[' /opt/Adobe/Reader9/bin/acroread ']'
+ case "$arg0" in
+ ACRO_ARG0=/opt/Adobe/Reader9/bin/acroread
+ export ACRO_ARG0


#
# Try to find the installation directory
#
if ( test_install_dir "$install_dir" ) ; then
   ACRO_INSTALL_DIR="$install_dir"
   export ACRO_INSTALL_DIR

else
   script="$arg0"
   while [ "$script" ] ; do
     install_dir="`dirname "$script"`"
     if ( test_install_dir "$install_dir/Reader" ) ; then
       ACRO_INSTALL_DIR="$install_dir/Reader"
       export ACRO_INSTALL_DIR
       break
     fi

     install_dir="`dirname "$install_dir"`"
     if ( test_install_dir "$install_dir/Reader" ) ; then
       ACRO_INSTALL_DIR="$install_dir/Reader"
       export ACRO_INSTALL_DIR
       break
     fi

     if [ -h "$script" ] ; then
       new_script=`readlink "$script"`
       if [ "$new_script" -a "`expr "$new_script" : '/.*'`" = 0 ] ; then
         new_script="`dirname "$script"`/$new_script"
       fi
       script="$new_script"
     else
       break
     fi
   done

   if ( test_install_dir "$ACRO_INSTALL_DIR" ) ; then
     :
   elif ( test_install_dir "$ACRO_HOME" ) ; then
     ACRO_INSTALL_DIR="$ACRO_HOME"
     export ACRO_INSTALL_DIR
   else
     printf "%s\n" "ERROR: Cannot find installation directory."
     exit 1
   fi
fi
+ test_install_dir /opt/Adobe/Reader9/Reader
cat "$1"/AcroVersion 2>/dev/null
++ cat /opt/Adobe/Reader9/Reader/AcroVersion
+ '[' 9.5.3 = 9.5.3 ']'
+ return 0
+ ACRO_INSTALL_DIR=/opt/Adobe/Reader9/Reader
+ export ACRO_INSTALL_DIR


#
# setup the configuration from uname
#
os_name=`uname -s`
uname -s
++ uname -s
+ os_name=Linux
os_release=`uname -r`
uname -r
++ uname -r
+ os_release=3.10.0-123.el7.x86_64

case "$os_name" in
   SunOS)
     case "$os_release" in
       4.1.3*|4.1.4*|4.1C)
         ACRO_CONFIG=sparcsun
         export ACRO_CONFIG
         ;;
       5.*)
         machine_type=`uname -p`
         case "$machine_type" in
           sparc)
             ACRO_CONFIG=sparcsolaris
             export ACRO_CONFIG
             ;;
           intel|i386)
             ACRO_CONFIG=intelsolaris
             export ACRO_CONFIG
             ;;
           ppc)
             ACRO_CONFIG=ppcsolaris
             export ACRO_CONFIG
             ;;
         esac
         ;;
     esac
     ;;
   Linux)
     ACRO_CONFIG=intellinux
     export ACRO_CONFIG
     ;;
   AIX)
     ACRO_CONFIG=rs6000aix
     export ACRO_CONFIG
     ;;
   HP-UX)
     ACRO_CONFIG=hppahpux
     export ACRO_CONFIG
esac
+ case "$os_name" in
+ ACRO_CONFIG=intellinux
+ export ACRO_CONFIG

if [ -z "$ACRO_CONFIG" ] ; then
    printf "The OS named  %s  is currently not installed." "$os_name 
version $os_release"
    printf "%s\n%s\n" "Try running on an installed platform and 
connecting to your display." "Installed platform(s) include the following:"

   if [ -d "$ACRO_INSTALL_DIR"/sparcsolaris ] ; then
     printf "  SPARC/Solaris version 2.x\n"
   fi
   if [ -d "$ACRO_INSTALL_DIR"/intelsolaris ] ; then
     printf "  Intel/Solaris\n"
   fi
   if [ -d "$ACRO_INSTALL_DIR"/intellinux ] ; then
     printf "  Intel/Linux\n"
   fi
   exit 1
fi
+ '[' -z intellinux ']'

# Enable this if you donot want Adobe Reader to cache Font-config fonts
# ACRO_DISABLE_FONT_CONFIG=1
# export ACRO_DISABLE_FONT_CONFIG

# Enable this if you want to set the MOZILLA_COMP_PATH globally (for all 
the users)
#if [ -f "$ACRO_INSTALL_DIR/GlobalPrefs/mozilla_config" ]; then
#    . "$ACRO_INSTALL_DIR/GlobalPrefs/mozilla_config"
#   export MOZILLA_COMP_PATH
#fi

if [ -x /usr/bin/test ]; then
   TestCmd=/usr/bin/test
else
   TestCmd=test
fi
+ '[' -x /usr/bin/test ']'
+ TestCmd=/usr/bin/test

if $TestCmd -e . 2>/dev/null; then
   TestCmdOption="-e"
else
   TestCmdOption="-f"
fi
+ /usr/bin/test -e .
+ TestCmdOption=-e

greConfigFile="${HOME}/.adobe/Acrobat/$majorRelease/Preferences/acrogre.conf"
+ greConfigFile=/homesl6/ykarant/.adobe/Acrobat/9.0/Preferences/acrogre.conf

if [ -f "$greConfigFile" ]; then
     mozillaPath="`cat "$greConfigFile"`"
     if [ -n "$mozillaPath" ]; then
         MOZILLA_COMP_PATH="$mozillaPath"
         export MOZILLA_COMP_PATH
     fi
else
     for i in /etc/gre.d/gre.conf /etc/gre.d/firefox.conf 
/etc/gre.d/mozilla.conf /etc/gre.d/*.conf /etc/gre.conf
     do
         if [ -f "$i" ]; then
             mozillaPath="`grep "^GRE_PATH=" "$i" | cut -d= -f2 | sed -e 
's/^[ ]*//g' -e 's/[ ]*$//g'`"
             if [ -n "$mozillaPath" ]; then
                 MOZILLA_COMP_PATH="$mozillaPath"
                 export MOZILLA_COMP_PATH
                 break
             fi
         fi
     done
fi
+ '[' -f /homesl6/ykarant/.adobe/Acrobat/9.0/Preferences/acrogre.conf ']'
+ for i in /etc/gre.d/gre.conf /etc/gre.d/firefox.conf 
/etc/gre.d/mozilla.conf '/etc/gre.d/*.conf' /etc/gre.conf
+ '[' -f /etc/gre.d/gre.conf ']'
+ for i in /etc/gre.d/gre.conf /etc/gre.d/firefox.conf 
/etc/gre.d/mozilla.conf '/etc/gre.d/*.conf' /etc/gre.conf
+ '[' -f /etc/gre.d/firefox.conf ']'
+ for i in /etc/gre.d/gre.conf /etc/gre.d/firefox.conf 
/etc/gre.d/mozilla.conf '/etc/gre.d/*.conf' /etc/gre.conf
+ '[' -f /etc/gre.d/mozilla.conf ']'
+ for i in /etc/gre.d/gre.conf /etc/gre.d/firefox.conf 
/etc/gre.d/mozilla.conf '/etc/gre.d/*.conf' /etc/gre.conf
+ '[' -f '/etc/gre.d/*.conf' ']'
+ for i in /etc/gre.d/gre.conf /etc/gre.d/firefox.conf 
/etc/gre.d/mozilla.conf '/etc/gre.d/*.conf' /etc/gre.conf
+ '[' -f /etc/gre.conf ']'

if [ -z "$mozillaPath" ]; then
   MozPath="`gconftool-2 -g /desktop/gnome/url-handlers/http/command 
2>/dev/null | cut -d ' ' -f1 2>/dev/null`"
   [ -x "${MozPath}" ] || MozPath="`Which "$MozPath"`"
   [ -n "${MozPath}" ] || mozillaPath="`readlink "$MozPath" | xargs 
dirname`"
   if [ -n "$mozillaPath" ] &&  $TestCmd $TestCmdOption 
"$mozillaPath/libgtkembedmoz.so" || $TestCmd $TestCmdOption 
"$mozillaPath/libxul.so" ; then
     MOZILLA_COMP_PATH="$mozillaPath"
     export MOZILLA_COMP_PATH
   fi
fi
+ '[' -z '' ']'
gconftool-2 -g /desktop/gnome/url-handlers/http/command 2>/dev/null | 
cut -d ' ' -f1 2>/dev/null
++ gconftool-2 -g /desktop/gnome/url-handlers/http/command
++ cut -d ' ' -f1
+ MozPath=/usr/lib64/firefox/firefox
+ '[' -x /usr/lib64/firefox/firefox ']'
+ '[' -n /usr/lib64/firefox/firefox ']'
+ '[' -n '' ']'
+ /usr/bin/test -e /libxul.so

ADOBE_USER_PREFERENCES="$HOME/.adobe/Acrobat/$majorRelease/Preferences"
+ ADOBE_USER_PREFERENCES=/homesl6/ykarant/.adobe/Acrobat/9.0/Preferences
export ADOBE_USER_PREFERENCES
+ export ADOBE_USER_PREFERENCES

MOZILLA_FIVE_HOME="$MOZILLA_COMP_PATH"
+ MOZILLA_FIVE_HOME=
export MOZILLA_FIVE_HOME
+ export MOZILLA_FIVE_HOME

LIB_NSPR_PATH=/usr/lib/mps/
+ LIB_NSPR_PATH=/usr/lib/mps/

#
# Setup configuration specific environment variables
#
ACRO_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
+ ACRO_LD_LIBRARY_PATH=
export ACRO_LD_LIBRARY_PATH
+ export ACRO_LD_LIBRARY_PATH

case "$ACRO_CONFIG" in
   sparcsolaris)
     LD_LIBRARY_PATH="`prepend 
"$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib:$ACRO_INSTALL_DIR/$ACRO_CONFIG/sidecars:${MOZILLA_COMP_PATH}" 
"${LD_LIBRARY_PATH}"`"
     export LD_LIBRARY_PATH
     ;;
   intelsolaris)
     LD_LIBRARY_PATH="`prepend 
"$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib:$ACRO_INSTALL_DIR/$ACRO_CONFIG/sidecars:${MOZILLA_COMP_PATH}:${LIB_NSPR_PATH}" 
"${LD_LIBRARY_PATH}"`"
     export LD_LIBRARY_PATH
     ;;
   intellinux)
     LD_LIBRARY_PATH="`prepend 
"$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib:$ACRO_INSTALL_DIR/$ACRO_CONFIG/sidecars:${MOZILLA_COMP_PATH}" 
"${LD_LIBRARY_PATH}"`"
     export LD_LIBRARY_PATH
     ;;
   rs6000aix)
     LIBPATH="`prepend 
"$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib:$ACRO_INSTALL_DIR/$ACRO_CONFIG/sidecars:/opt/freeware/lib" 
"$LIBPATH"`"
     export LIBPATH
     ;;
   hppahpux)
     SHLIB_PATH="`prepend 
"$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib:$ACRO_INSTALL_DIR/$ACRO_CONFIG/sidecars:/opt/graphics/OpenGL/lib" 
"$SHLIB_PATH"`"
     LD_PRELOAD=/opt/graphics/OpenGL/lib/libGL.sl
     export SHLIB_PATH
     export LD_PRELOAD
     ;;
esac
+ case "$ACRO_CONFIG" in
prepend 
"$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib:$ACRO_INSTALL_DIR/$ACRO_CONFIG/sidecars:${MOZILLA_COMP_PATH}" 
"${LD_LIBRARY_PATH}"
++ prepend 
/opt/Adobe/Reader9/Reader/intellinux/lib:/opt/Adobe/Reader9/Reader/intellinux/sidecars: 
''
++ '[' -z '' -o '' = 
/opt/Adobe/Reader9/Reader/intellinux/lib:/opt/Adobe/Reader9/Reader/intellinux/sidecars: 
']'
++ echo 
/opt/Adobe/Reader9/Reader/intellinux/lib:/opt/Adobe/Reader9/Reader/intellinux/sidecars:
+ 
LD_LIBRARY_PATH=/opt/Adobe/Reader9/Reader/intellinux/lib:/opt/Adobe/Reader9/Reader/intellinux/sidecars:
+ export LD_LIBRARY_PATH


directory="`basename \"$ACRO_INSTALL_DIR\"`"
basename "$ACRO_INSTALL_DIR"
++ basename /opt/Adobe/Reader9/Reader
+ directory=Reader

if [ "$directory" = "Reader" ]; then
     cmd="acroread"
         prod="Adobe Reader"
else
     if [ "$directory" = "Acrobat" ]; then
         cmd="acroexch"
             prod="Adobe Acrobat"
     fi
fi
+ '[' Reader = Reader ']'
+ cmd=acroread
+ prod='Adobe Reader'

#
# Set the command.  Process any debug flags and exec.
#
ACRO_EXEC_CMD="$ACRO_INSTALL_DIR/$ACRO_CONFIG/bin/$cmd"
+ ACRO_EXEC_CMD=/opt/Adobe/Reader9/Reader/intellinux/bin/acroread
SYNCAPP_EXEC_CMD="$ACRO_INSTALL_DIR/$ACRO_CONFIG/bin/SynchronizerApp"
+ SYNCAPP_EXEC_CMD=/opt/Adobe/Reader9/Reader/intellinux/bin/SynchronizerApp
export SYNCAPP_EXEC_CMD
+ export SYNCAPP_EXEC_CMD
export ACRO_EXEC_CMD
+ export ACRO_EXEC_CMD

ACRO_RES_DIR=$ACRO_INSTALL_DIR/../Resource
+ ACRO_RES_DIR=/opt/Adobe/Reader9/Reader/../Resource
export ACRO_RES_DIR
+ export ACRO_RES_DIR

ACRO_LANG="ENU"
+ ACRO_LANG=ENU
export ACRO_LANG
+ export ACRO_LANG

ADOBE_HELP_PATH="$ACRO_INSTALL_DIR/../../.."
+ ADOBE_HELP_PATH=/opt/Adobe/Reader9/Reader/../../..
export ADOBE_HELP_PATH
+ export ADOBE_HELP_PATH

#Checking if TMPDIR points to a valid directory
if [ -n "$TMPDIR" ] && [ ! -d "$TMPDIR" -o ! -w "$TMPDIR" ]
then
     printf "%s\n" "ERROR: The environment variable TMPDIR points to an 
invalid path."
     exit 1
fi
+ '[' -n '' ']'
# Adobe Reader/Acrobat uses gconftool-2 to check whether accessibility 
support is enabled. Please refer to the Readme file to work around this.

if Which gconftool-2 >/dev/null
then
     ACRO_AT_ACTIVE=`gconftool-2 -g 
/desktop/gnome/interface/accessibility 2>/dev/null`
else
     # gconftool-2 is not there on system, turn off AT support
     ACRO_AT_ACTIVE="false"
fi
+ Which gconftool-2
+ OLD_IFS='
'
+ IFS=:
+ status=1
+ for i in '$PATH'
+ '[' -x /usr/lib64/qt-3.3/bin/gconftool-2 ']'
+ for i in '$PATH'
+ '[' -x /homesl6/ykarant/perl5/bin/gconftool-2 ']'
+ for i in '$PATH'
+ '[' -x /usr/local/bin/gconftool-2 ']'
+ for i in '$PATH'
+ '[' -x /usr/local/sbin/gconftool-2 ']'
+ for i in '$PATH'
+ '[' -x /usr/bin/gconftool-2 ']'
+ echo /usr/bin/gconftool-2
+ status=0
+ break
+ IFS='
'
+ return 0
gconftool-2 -g /desktop/gnome/interface/accessibility 2>/dev/null
++ gconftool-2 -g /desktop/gnome/interface/accessibility
+ ACRO_AT_ACTIVE=

export ACRO_AT_ACTIVE
+ export ACRO_AT_ACTIVE

# Required for Multimedia plugin
# look for installed realplayer

if [ "$ACRO_CONFIG" = "intellinux" ] || [ "$ACRO_CONFIG" = 
"intelsolaris" ]; then
   if ARG0="`which realplay 2> /dev/null`"; then
     if [ -d "$REALPLAYER_HOME" ] ; then
       true
     elif [ "$REALPLAYER_HOME" = "" -a -L ${ARG0} ] ; then
       REALPLAYER_HOME=`readlink ${ARG0} 2> /dev/null`
       REALPLAYER_HOME=`dirname ${REALPLAYER_HOME} 2> /dev/null` # 
Delete trailing file name.
       export REALPLAYER_HOME
     elif [ "$REALPLAYER_HOME" = "" -a -f ${ARG0} ] ; then
       REALPLAYER_HOME=$ARG0
       REALPLAYER_HOME=`dirname ${REALPLAYER_HOME} 2> /dev/null` # 
Delete trailing file name.
       REALPLAYER_HOME=`cd $REALPLAYER_HOME; pwd;`
       export REALPLAYER_HOME
     fi
   fi
fi
+ '[' intellinux = intellinux ']'
which realplay 2> /dev/null
++ which realplay
+ ARG0=

if [ "$ACRO_AT_ACTIVE" = "true" ]; then
     GTK_MODULES=gail:atk-bridge
     export GTK_MODULES
fi
+ '[' '' = true ']'

if [ "$1" = "-installCertificate" ]
then
     if [ "$2" = "-PEM" -o "$2" = "-DER" ]; then
       InstallCertificateFromPath $ACRO_INSTALL_DIR $2 $3
       exit $?
     else
       InstallCertificateFromWeb $ACRO_INSTALL_DIR $2 $3
       exit $?
     fi
fi
+ '[' '' = -installCertificate ']'

PATH="$PATH:$ACRO_INSTALL_DIR/$ACRO_CONFIG/bin"
+ 
PATH=/usr/lib64/qt-3.3/bin:/homesl6/ykarant/perl5/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/optsl6/TeXmacs-1.99.2-8683M-i386-pc-linux-gnu/bin:/homesl6/ykarant/bin:/opt/Adobe/Reader9/Reader/intellinux/bin
export PATH
+ export PATH

rm -rf "${HOME}/.adobe/Acrobat/$majorRelease/Preferences/mozilla" 
 >/dev/null 2>&1
+ rm -rf /homesl6/ykarant/.adobe/Acrobat/9.0/Preferences/mozilla
mkdir -p "${HOME}/.adobe/Acrobat/$majorRelease/Preferences/mozilla" 
 >/dev/null 2>&1 && \
cp -f "$ACRO_INSTALL_DIR/$ACRO_CONFIG/mozilla/prefs.js" 
"${HOME}/.adobe/Acrobat/$majorRelease/Preferences/mozilla/prefs.js" 
 >/dev/null 2>&1
+ mkdir -p /homesl6/ykarant/.adobe/Acrobat/9.0/Preferences/mozilla
+ cp -f /opt/Adobe/Reader9/Reader/intellinux/mozilla/prefs.js 
/homesl6/ykarant/.adobe/Acrobat/9.0/Preferences/mozilla/prefs.js

if [ "$1" = "-DEBUG" ] ; then
   ACRODEBUG=1
   ACRO_CRASHLOG=1
   export ACRODEBUG ACRO_CRASHLOG

   if [ "`ulimit -c 2>/dev/null`" = "0" ]
   then
     ulimit -c 1000000 >/dev/null 2>&1
   fi

   if [ $# = 1 ] ; then
     export ACRO_EXEC_CMD
     exec "$SHELL"
   else
     shift
     exec ${1+"$@"} "$ACRO_EXEC_CMD"
   fi
fi
+ '[' '' = -DEBUG ']'

if [ -f "$ACRO_EXEC_CMD" ] ; then
   LaunchBinary "$ACRO_EXEC_CMD" ${1+"$@"}
else
   printf "ERROR: Cannot find %s.\n" "$ACRO_EXEC_CMD"
   printf "%s not installed for this configuration, %s.\n" "$prod" 
"\"$ACRO_CONFIG\""
   exit 1
fi
+ '[' -f /opt/Adobe/Reader9/Reader/intellinux/bin/acroread ']'
+ LaunchBinary /opt/Adobe/Reader9/Reader/intellinux/bin/acroread
+ exec /opt/Adobe/Reader9/Reader/intellinux/bin/acroread
Segmentation fault (core dumped)

end sh output

from the ddd viewing of gdb output:

Starting program: /opt/Adobe/Reader9/Reader/intellinux/bin/acroread
/opt/Adobe/Reader9/Reader/intellinux/bin/acroread: error while loading 
shared libraries: libBIB.so: cannot open shared object file: No such 
file or directory
[Inferior 1 (process 31409) exited with code 0177]

end ddd output

The ddd failure probably is due to the fact that the sh "variables" were 
not setup by the Adobe acroread script, but ddd does not seem to have 
the ability to configure from a script and then execute.

ATOM RSS1 RSS2