In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, Xiaobian will bring you about how to install the cross-tool chain arm-linux-gcc. The article is rich in content and analyzed and described from a professional perspective. After reading this article, I hope you can gain something.
The basic steps are as follows:
(1) Establishment of a catalogue
$ sudo mkdir /usr/local/arm
(2) Copy files
File arm-linux-gcc-4.4.3.tar.gz, put in/var/ftp, enter ftp,$ cd ~/ftp,
duplicate,$ sudo cp arm-linux-gcc-4.4.3.tar.gz/usr/local/arm
(3) Decompress files
Go to directory: $ cd /usr/local/arm
Decompression: $ sudo tar -xzvf arm-linux-gcc-4.4.3.tar.gz
There is no need to add-C /at this time, we directly store the pressurized files in the current directory.
(4) Adding environmental variables
Open.bashrc with vi and execute $vi ~/.bashrc
Add "export PATH=/usr/local/arm/opt/FriendlyARM/toolchain/4.4.3/bin: $PATH" to the last line and save the file
(5) Register environmental variables
$source /root/.bashrc
Extension: Modify PATH path under Linux
For example, to add the/etc/apache/bin directory to PATH, there are three ways:
1、#PATH=$PATH:/etc/apache/bin
Using this method, it only works for the current session, meaning that the PATH setting is disabled every time you log out or log out of the system (not recommended in practice).
2、 #vi /etc/profile
Add PATH=$PATH:/etc/apache/bin in the appropriate place (note: =
3、 #vi ~/.bash_profile
Modify the PATH line to add/etc/apache/bin. This method works for users.
Note:
If you want to change PATH, you must log in again to take effect. The following method can simplify the work: If you modify/etc/profile, then execute the source profile or execute the point command after editing./ The value of profile,PATH takes effect immediately. The principle of this method is to execute the/etc/profile shell script again. Note that sh /etc/profile does not work because sh is executed in a child shell process. Even if PATH changes, it will not be reflected in the current environment. However, source is executed in the current shell process, so we can see the PATH change.
In general, the bin directory in the user's working directory will be included in the PATH path, so as long as the shell script written by the user is placed in the user's bin directory, there is no need to modify the configuration file.
The above is how to install the cross-tool chain arm-linux-gcc shared by Xiaobian. If you happen to have similar doubts, you may wish to refer to the above analysis for understanding. If you want to know more about it, please pay attention to 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.