Setting environment variables for Ubuntu 10.04 root users

Source: Internet
Author: User

First declare that the system I use is ubuntu10.04

To compile the qt-extented-4.3 today, you need to add the cross-compilation tool chain to the environment variable of the root user.

The previous method is to use/etc/profile, as shown in the following figure. On the Internet, all users can use it.

However, after modification, it is found that the environment variables in the root user remain unchanged.

Then directly go to the root user

CD

To the root user directory

Vim. bashrc

Add the environment variables to be added. You do not need to restart the computer and directly open another terminal to enter the root user to check that the environment variables of the root user have changed.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.