In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
linux gcc compilation CROSSTOOL prompt how to do, I believe that many inexperienced people are helpless, for this reason this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
I am currently using Ubuntu 8.04, because recently has been upgrading Linux, resulting in my current Linux gcc version has also become higher, is currently 4.2.3. When I compile the CROSSTOOL I had previously, I get this prompt:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for pwd... /bin/pwd
checking for arm-linux-gcc... gcc
checking version of gcc... 4.2.3, bad
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.81, ok
configure: error:
*** These critical programs are missing or too old: gcc
*** Check the INSTALL file for required versions.
So I need to press my current version of linux gcc to the previous state 3.4. First of all, you need to go to your usr/bin/to see if there is a file like gcc-3.4, if not, install it:
apt-get install gcc-3.4
After that, you need to delete the gcc file in usr/bin/directory or avoid accidents, you can name it gcc.bak. If you don't delete it, you'll find that ln -s usr/bin/gcc-3.4 /usr/bin/gcc doesn't work. In fact, when you use gcc -v to check the current version, you always use usr/bin/gcc. ln -s /usr/bin/gcc-3.4 /usr/bin/gcc is intended to generate gcc version 3.4. In a word, you just need to execute:
rm /usr/bin/gcc
ln -s /usr/bin/gcc-3.4 /usr/bin/gcc
And then gcc -v you can see that the current version is 3.4. If you want to reuse the current 4.2.3, use the same method:
rm /usr/bin/gcc
ln -s /usr/bin/gcc-4.2.3 /usr/bin/gcc
Then gcc -v to determine the version will know.
After reading the above content, do you know how to compile CROSSTOOL with linux gcc? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!
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.