In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
In this issue, the editor will bring you about what the Ubuntu embedded cross-compilation environment arm-linux-gcc is like. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.
1. Download the installation package
Download arm-linux-gcc-4.4.3.tar.gz and store it in a directory
2. Extract the installation package
Extract the installation package in the stored directory
Tar-zxvf arm-linux-gcc-4.4.3.tar.gz-C / usr/local/arm-linux-gcc-4.4.33, add environment variable sudo vi / etc/profile
Add on the last line
Export PATH=$PATH:/usr/local/arm-linux-gcc-4.4.3/bin
Write and save.
4. The environment variable takes effect source / etc/profile5, and test arm-linux-gcc-v
The following error prompt appears
/ usr/local/arm-linux-gcc-4.4.3/bin/arm-linux-gcc: 15: exec: / usr/local/arm-linux-gcc-4.4.3/bin/.arm-none-linux-gnueabi-gcc: not found
It is said that the reason for this problem is that Ubuntu uses 64-bit, and the solution is to use commands.
Sudo apt-get install lib32z1 lib32ncurses5
Install some 32-bit libraries
After installing the 32-bit library, use the command
Arm-linux-gcc-v
It was a success this time.
6. Verification
Compile a hello.c file
# include int main () {printf ("hello worldviews!\ n"); return 0;}
Use the command
Arm-linux-gcc hello.c-o hello
The following error prompt appears
/ usr/local/arm-linux-gcc-4.4.3/bin/../libexec/gcc/arm-none-linux-gnueabi/4.4.3/cc1: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directorysudo apt-get install lib32stdc++6
After installation is complete
Arm-linux-gcc hello.c-o hello
This is how the embedded cross-compilation environment arm-linux-gcc of Ubuntu is shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.