bonjour à tous,
Je souhaiterai installer le compilateur arm-linux-gcc.
J'ai un probleme pour le faire fonctionner.
on m'a fournis une procédure d'install mais celle-ci me semble incomplete, ou alors c'est moi qui m'y prend mal.

la voici :
_ sur un cd on m'a fournit les 3 fichiers suivant :
arm-linux-binutils-2.10-1.i386.rpm
arm-linux-glibc-2.1.3-2.i386.rpm
arm-linux-gcc-2.95.2-2.i386.rpm

_ Ensuite on me demande de les installer avec la commande :
# rpm –Uvh arm-linux-binutils-2.10-1.i386.rpm
# rpm –Uvh arm-linux-glibc-2.1.3-2.i386.rpm
# rpm –Uvh arm-linux-gcc-2.95.2-2.i386.rpm

or j'utilise une ubuntu (debian) donc je les converti avec alien et j'execute la commande dpkg "fichier.deb"

j'aurai donc voulu savoir si la commande "dpkg" effectue la meme manip que "rpm"

après avoir donc effectué l'install les dossier suivant sont bien crée :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
 
2.3 Compiler Confirmation
gcc, binutil binary
location: /usr/local/arm-linux/bin
standard C library
location: /usr/local/arm-linux/ arm-linux /include, /usr/local/arm-linux/ arm-linux
/lib
gcc lib
location: /usr/local/arm-linux/lib/gcc-lib/arm-linux/2.95.2
Ensuite, j'ai ces explications la :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
Before running any of these binaries, you need to add the directory that they
are installed (/usr/local/arm-linux/bin) into your path. Use the following
command to do this:
Bash% PATH=/usr/local/arm-linux/bin:$PATH export PATH
Or editing to file (~/.bash_profile)
All binaries have the normal GNU names, except they are prefixed with "armlinux-".
For example, the compiler is called arm-linux-gcc
2.5 Compile Sample
# arm-linux-gcc –o hello-arm hello.c
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=/usr/local/arm-linux/bin:$PATH:$HOME/bin 􀃅 insert path
BASH_ENV=$HOME/.bashrc
USERNAME="root"
#include <stdio.h>
int main()
{
printf(“Hello World”);
}
j'aurai donc voulu savoir a quoi correspondait cette ligne la :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
PATH=/usr/local/arm-linux/bin:$PATH:$HOME/bin 􀃅 insert path
Voila j'espere avoir été assez clair.

Merci d'avance