Have you ever metRedHat5.0 install Arm-Linux crossoverCompilerIs there always a problem of installation errors? The author of this article has also encountered this situation, but after some exploration, he has successfully solved the above problems. Let's take a look!
The correct method for installing the Arm-Linux cross compiler is as follows:
First, I used the cross-Editor eabi-4.3.3_embedsky_20100610.tar.bz2,
1. First, create a directory for storing the cross compiler. The absolute path of the directory I created is/opt/TQ (TQ is the directory I created)
2. Decompress eabi-4.3.3_embedsky_20100610.tar.bz2:
tar xjvf EABI-4.3.3_EmbedSky_20100610.tar.bz2
After the file is decompressed, two directories are generated in the TQ Directory: opt, usr;
3. Add environment variables:
Add in/etc/profile
# Path manipulationif [ "$EUID" = "0" ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
pathmunge /opt/TQ/opt/EmbedSky/4.3.3/bin/
fi
Source/etc/profile takes effect after adding;
4. Run the following command on the console:
cp /opt/TQ/opt/EmbedSky/4.3.3/bin /usr/local/arm
Conclusion: The following error occurs when steps 1 and 2 are missing:
arm-none-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
Experience: Use the following command to decompress the package:
tar xjvf EABI-4.3.3_EmbedSky_20100610.tar.bz2 -C/
You can skip step 4.
-C/: Decompress the package to the specified directory. The root directory is specified here. Because the directory structure inside the package contains usr/local/arm, therefore, to decompress the package to the root directory is to decompress the file to the/usr/local/arm folder.