librairies

Top Page

Reply to this message
Author: Hervé de Dianous
Date:  
To: guilde
Subject: librairies
Bonjour !
En espérant que tout le monde ne soit pas en vacances.
Sur Debian woody j'essaye DbDesigner tarball binaire:
http://www.fabforce.net/dbdesigner4/index.php
installé dans /usr/local/bin, au lancement j'ai l'erreur :
Error loading library "libxercesxmldom.so.1": "libstdc++-libc6.1-1.so-2"
Or ces deux libs sont présentes et j'ai mis le path
/usr/local/bin/DBDesigner4/Linuxlib dans /etc/ld.so.conf et lancé
ldconfig, rien à faire !
Dans la doc en ligne ils recommande :
"To install DBDesigner4 for all users, extract the tar archive to
/usr/local/bin directory (but please notice that you have to edit the
startdbd script manually [see line 4])."
Je ne vois pas bien ce qu'il y a à changer à la ligne 4 ???
je joint le fichier en question.

Merci
A+ RV2D
#!/bin/bash

thepwd=`pwd`/$0

case $0 in
/*) app_path=`echo "$0" | sed 's/\/startdbd//'` ;;
*) app_path=`echo $thepwd | sed 's/\/startdbd//'` ;;
esac

if [ -f /opt/DBDesigner4/DBDesigner4 ]; then
    app_path=/opt/DBDesigner4
fi 


if [ -f /usr/lib/DBDesigner4/bplrtl.so.6.9.0 ]; then
    app_ld_path=/usr/lib/DBDesigner4
else
    app_ld_path=$app_path/Linuxlib
fi


# First check to see if we have an LD_LIBRARY_PATH environment variable
if [ -n "$LD_LIBRARY_PATH" ]; then
# we do, so prepend our path first
export LD_LIBRARY_PATH="$app_ld_path:$LD_LIBRARY_PATH"
else
# we do not, so we will create the env var.
export LD_LIBRARY_PATH="$app_ld_path"
fi

# make sure we have something specified for the LANG environment variable
if [ -z "$LANG" ]; then
# set LANG to an appropriate value
export LANG=en_US
fi

if [ -f "$app_ld_path/bplrtl.so.6.9" ]; then
# symbolic links exist
echo Symbolic links exist
else
cd $app_ld_path
echo Create symbolic links in $app_ld_path ...
ln -s bplrtl.so.6.9.0 bplrtl.so.6.9
ln -s dbxres.en.1.0 dbxres.en.1
ln -s libicuuc.so.20.2 libicuuc.so.20
ln -s libicuuc.so.20 libicuuc.so
ln -s libmidas.so.1.0 libmidas.so.1
ln -s libmysqlclient.so.10.0.0 libmysqlclient.so
ln -s libqt.so.2.3.0 libqt.so.2
ln -s libqtintf-6.9.0-qt2.3.so libqtintf-6.9-qt2.3.so
ln -s libsqlmy23.so.1.0 libsqlmy23.so
ln -s libsqlmy23.so libsqlmy.so
ln -s libxercesxmldom.so.1.0 libxercesxmldom.so.1
ln -s libsqlora.so.1.0 libsqlora.so
cd -
fi

#use the original qt files
export CLX_USE_LIBQT=yes

#QT smooth fonts, not functioning
export QT_XFT=true

# now run the application, passing any parameters that where specified.
echo Starting DBDesigner4 ...
$app_path/DBDesigner4 $*