|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Jan 2003
Città: Modena
Messaggi: 750
|
Far Partire BODIL
Salve, scommetto che il titolo non vi dice nulla...Vero????
Allora, Bodil e' un Modeling Enviroment Interface per la modellazione e la visualizzazione 3d di molecole...Il Software e libero e viene fornito compattato...Lo scompatti nella directory che vuoi...Io uso /opt/ e poi senza config senza make lo lanci con lo scrip eseguibile Bodil!! Ovviamente lo script Bodil viene lanciato dalla directori /opr/dove il soft e' installato!!! E quindi non parte da local!! Il problema e che io vorrei mettere lo script bodil in /usr/local/bin/ in modo che parte da riga di comando!!! Ora, ho provato seplicemente a copiare il Bodil in /usr/local/bin/ ma non funzia!! I patch sono sbagliati il messaggio che mi da e' : DanCas@spelonca:~> Bodil /usr/local/bin/Bodil: line 141: /usr/local/bin/../bin/linux-i386/Bodil: No such file or directory Che posso fare????? Ciao!! Il contenuto dello scrip Bodil e': #! /bin/sh ############################################################################# # $RCSfile: Bodil,v $ # # $Author: jlehtone $ # $Revision: 1.18 $ # $Date: 2002/04/24 14:17:46 $ # ############################################################################# # # Script for starting up 'Bodil'. This script determines the binary to be # run depending on the current platform. Also sets up the variable BODILDIR # which is very fundamental. # ############################################################################# ############################################################################# # get the operating-system version. The ARCH variable's name should not be # changed, as it is used from within Bodil too. We also set a special # variable to indicate the real hardware under the hood. This is used when # there are differences between different machines with the same ARCH but # different hardware capabilities (stereo). # ARCH=`uname` HARDWARE=`uname -m` ############################################################################# # Is it a '32-bit Irix'? # if [ $ARCH = "IRIX" ]; then # # we're running on a 32/n32-machine ARCH="irix" ARCHSTEREO="irix" LANG="en_US.ISO8859-1" export LANG LC_ALL="en_US.ISO8859-1" export LC_ALL fi ############################################################################# # Is it a '64-bit Irix'? We don't really make any difference here as to # which version of Irix we're on. It apparently is no big difference # between the 32 and 64-bit optimizations. # if [ $ARCH = "IRIX64" ]; then # # we're running on a 64-machine ARCH="irix" ARCHSTEREO="irix64" LANG="en_US.ISO8859-1" export LANG LC_ALL="en_US.ISO8859-1" export LC_ALL fi ############################################################################# # Is it a 'Linux'? # if [ $ARCH = "Linux" ]; then # # we're running a Linux on a x86 ARCH="linux-i386" ARCHSTEREO="linux-i386" # export __GL_ENABLE_FSAA=1 # export __GL_FSAA_QUALITY=0 fi ############################################################################# # Is it a 'Windows NT'? # if [ $ARCH = "WinNT" ]; then # # we're running a Linux on a x86 ARCH="winnt-i386" ARCHSTEREO="winnt-i386" fi ############################################################################## # Find out the basepath (BODILDIR). This part is very critical, as we must # get this right or Bodil won't work ok. # # But, this is a Good Thing to do, as we don't need any environment variables # or anything, just plug and run (p'n'r?). # ############################################################################## # # get the first character of the name we were called with FIRSTCHAR=`echo $0 | cut -b 0-1` # # does it begin with a '/'? if [ $FIRSTCHAR = "/" ]; then # # yep, we have an absolute path to the script. This # is then quite trivial, as we know that the basepath is # always one 'step above' BODILDIR=`dirname $0`/.. else # # ok, it's a relative path, so add the PWD to the relative # path and we'll have the absolute path. BODILDIR=$PWD/`dirname $0`/.. fi ############################################################################## # Check wether the user already has a 'LD_LIBRARY_PATH' # if [ -z "${LD_LIBRARY_PATH}" ] ; then # # not defined, so define it LD_LIBRARY_PATH=${BODILDIR}/lib/${ARCH}:${BODILDIR}/lib/plugins/${ARCH} else # # already defined, append to the path LD_LIBRARY_PATH="${LD_LIBRARY_PATH}":${BODILDIR}/lib/${ARCH}:${BODILDIR}/lib/plugins/${ARCH} fi ############################################################################# if [ -x ${BODILDIR}/bin/${ARCH}/homodge ] ; then HOMODGE=${BODILDIR}/bin/${ARCH}/homodge export HOMODGE fi ############################################################################# # Export the definitions to subsequent commands # export ARCH ARCHSTEREO HARDWARE BODILDIR LD_LIBRARY_PATH ############################################################################# # Finally execute Bodil # $BODILDIR/bin/$ARCH/Bodil &
__________________
..........non importa che tu sia Leone o Gazzella: inizia a correre...
|
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
|
...ti perdi in un bicchier d'acqua
Invece di mettere Bodil in /usr/local/bin, mettici questo script: #!/bin/sh cd /opt/path/di/Bodil ./Bodil
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12 |
|
|
|
|
|
#3 | |
|
Senior Member
Iscritto dal: Jan 2003
Città: Modena
Messaggi: 750
|
Quote:
Grazie mille!! Avevo provato a fare il collegamento in questione..identico al tuo ma non mi fungeva...perche'.....avevo dimenticato di mettere ./Bodil !!!!!!! Ma quanto sono cazzzzzonne!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 Ciao
__________________
..........non importa che tu sia Leone o Gazzella: inizia a correre...
|
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 10:45.



















