Install UBUNTU to compile C under a virtual machine

Source: Internet
Author: User
I used to install Ubuntu on a virtual machine. Today I have nothing to do. I want to develop the UBUNTU system. I want to program the system, but I need a compiler, I won't do this on this platform. Later, I compiled "helloworld" with the help of a netizen. Don't laugh. Although I am not a cainiao, I am the platform. Well, to make others understand, I would like to give those instructions unconditionally. Thank you for your help. Enter sudoapt-getinstallbuild-ess in the terminal

I used to install Ubuntu on a virtual machine. Today I have nothing to do. I want to develop the UBUNTU system. I want to program the system, but I need a compiler, I won't do this on this platform. Later, I compiled "hello world" with the help of a netizen. Don't laugh. Although I am not a cainiao, it is the same platform.

Well, to make others understand, I would like to give those instructions unconditionally. Thank you for your help.

Enter:

Sudo apt-get install build-essential, which now understands a little bit about downloading GCC from the server

Write a test. c program in your home directory.

Then input gedit test. c to generate a file.

Then a notebook is popped up, and a helloword program is written in it.

Click save

See the file test. c.

Enter:

Gcc test. c-o test is probably activated.

Check whether there is a test

./Test

Then you can see the program output.

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.