Linux/Unix Shell Scripting - Exec format error. Wrong Architecture

 
Vista:

Exec format error. Wrong Architecture

Publicado por elias (6 intervenciones) el 03/10/2007 15:46:48
Hola, buenas, tengo un problema al intentar instalar NCAR graphics; al hacer la prueba de que estas funcionan me sale lo siguiente:

ejecuto ncargex cpex08 me aparece el mensaje:
ereda@ereda-desktop:~/NCAR$ ncargex cpex08
/home/ereda/NCAR/bin/ncargpath: Exec format error. Wrong Architecture

Primero hice lo siguiente:

me descargo los precompiled binaries:

Despues se hace :

gunzip /tmp/ncarg-4.4.2.Linux_x86_64_gcc4.tar.gz
Now cd to the root directory of where you want NCAR Graphics
installed ("/usr/local" in this example) and untar the file:
cd /usr/local
tar -xvf /tmp/ncarg-4.4.2.Linux_x86_64_gcc4.tar
This will cause the directories "bin", "include", "lib", and "man" to
be created (if they don't already exist), and populated with lots of
files.

Y se ponen las variable de entorno para usar NCAR Graphics:

Once the installation process is complete, you need to do the
following before you can start using NCAR Graphics:
Set the environment variable NCARG_ROOT to the parent directory of
where you installed everything.
Make sure "$NCARG_ROOT/bin" is on your search path.
Make sure "$NCARG_ROOT/man" is on your man path.
Here's an example (using csh) that assumes that you untarred the file
from /usr/local. (Of course, if you selected a different parent
directory, then you will need to substitute this directory in the
instructions below.)
setenv NCARG_ROOT /usr/local
setenv PATH $NCARG_ROOT/bin:$PATH
setenv MANPATH $NCARG_ROOT/man:$MANPATH
Here's an example using bash shell:
export NCARG_ROOT=/usr/local
export PATH=$NCARG_ROOT/bin:$PATH
export MANPATH=$NCARG_ROOT/man:$MANPATH

tras esto te piden que para verificar ejecutes:
To make sure you have installed the correct version, type:
ncargversion
For a quick graphics test, try the following:
ncargex cpex08
ctrans -d X11 cpex08.ncgm

Al ejecutar ncargversion todo bien, me da la version y todo lo demás

pero al ejecutar esto ncargex cpex08 me aparece el mensaje:
ereda@ereda-desktop:~/NCAR$ ncargex cpex08
/home/ereda/NCAR/bin/ncargpath: Exec format error. Wrong Architecture.

He mirado en internet y no entiendo que no funciona.Mi arquitectura se
supone que es de 64 bits ... y la versión de la gcc es la 4.1(no; mira
esto).
ereda@ereda-desktop:/usr/bin$ ls *gcc*
c89-gcc gcc-4.1 gccmakedep
c99-gcc gccbug i486-linux-gnu-gcc
gcc gccbug-4.1 i486-linux-gnu-gcc-4.1

Por lo que el paquete que me bajé (ncarg-4.4.2.Linux_x86_64_gcc4.tar
(viene en la imagen adjunta)creo que es el correcto


¿Que puede ocurrir?
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Exec format error. Wrong Architecture

Publicado por n0st0rm0 (180 intervenciones) el 04/10/2007 10:14:27
Dices que tu arquetectura es de 64 bits... ¿pero es de 64 bits de AMD?
Te recomiendo hacer un

file <ejecutable>

para saber exactamente qué tipo de ejecutable te has instalado. Depende de cómo esté compilado, es decir, es posible que si se compila para arquitectura 64 bits de AMD, funcione tanto en un Turion, un AMD64, un Opteron, etc. Pero si al compilar especificas AMD de 64 bits y además compilas para un Turion, es posible que no funcione en un AMD64 o un Opteron.

Si ves que te sigue dando problemas y que quizá podrías compilarte las fuentes, podrías intentarlo.

Salu2
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar