Introduction --Lunix system set up computer systems

I am also in the dark ahead, reference is made to the god of many Raiders installation, the installation process went smoothly, you do not worry do not panic -

ps. I own my post just under the summary records of the installation process, you want to be the venue of the Raiders in detail God's other big post la la la (such as me a few links given below

Below are links to some of my reference installation tutorial for your reference ~

Mac installation Lunix tutorial articles links:

1.https://blog.csdn.net/Nicolelovesmath/article/details/82716412

2.https: //www.cnblogs.com/taostaryu/p/9404615.html

Windows installation chapter Lunix Tutorial link:

1.https: //mp.weixin.qq.com/s/VuViGzczY0EO2LXF4iuhag

Lunix-Ubuntu in C and C ++ programming environment configuration tutorial link:

1.https://blog.csdn.net/weixin_41995541/article/details/100065570

2.https://blog.csdn.net/zr_1877/article/details/78572377

 

Mac articles

1. Download Lunix-Ubuntu system image

Select Ubuntu 16.04 or Ubuntu 18.04 version (I chose the download 18.04)

Download: https: //www.ubuntu.com/download/desktop

 

 

2. Download and install VMware Fusion for Mac

Select Fusion 11.5 Pro version

Download: https: //www.vmware.com/products/fusion/fusion-evaluation.html

 

 

3. Configuration Programming Environment

step 1: Open command-line tool (terminal), the terminal Open shortcut in Ubuntu is: ctrl + Alt + t

step 2: Enter sudo apt install gcc, carriage return, a C compiler

step 3:输入sudo apt install g++,回车,安装C++编译器

step 4:输入sudo apt-get install vim,回车,安装vim

4.编一个hello.c练手

step 1: 打开终端,输入vim hello.c并回车,进入vim界面(和终端挺像的);

step 2:键入i进入insert模式,输入程序:

1 #include <stdio.h>
2 int main(){
3         printf("Hello, world\n");
4         return 0;
5 }

step 3:先按Esc键,退出输入模式;然后,按Shift和:键,进入命令模式;输入wq,保存并退出vim界面,返回终端界面;

step 4:输入gcc hello.c进行编译

step 5:输入./a.out进行编译

终端上打出“Hello, world”就成功啦

 

 

Guess you like

Origin www.cnblogs.com/tanshiyin-20001111/p/11585510.html