如何在Linux Mint 17.1(KDE)中安装代码块 [英] How to install codeblocks in Linux mint 17.1 (KDE)

查看:77
本文介绍了如何在Linux Mint 17.1(KDE)中安装代码块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用此命令行在Linux Mint 17.1(KDE)中安装了代码块

I have already installed codeblocks in my linux mint 17.1 (KDE), using this command line

sudo apt-get安装代码块

sudo apt-get install codeblocks

,但是当我尝试在代码块上编译并运行c程序时,它向我显示此错误

, but when i tried to compile and run a c program on codeblocks it shows me this error

/home/redwan/Programmin/C程序/hello.c | 1 |致命错误:stdio.h:否这样的文件或目录||| ===构建失败:1个错误,0个警告(0分钟,0秒)=== |

/home/redwan/Programmin/C Program/hello.c|1|fatal error: stdio.h: No such file or directory| ||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

请有人帮助我使用代码块在linux mint 17.1(KDE)中正确运行c以及c ++程序.

Please someone help me to run c as well as c++ programs properly in linux mint 17.1(KDE) using codeblocks.

对不起,我英语不好.

推荐答案

将其保存到主目录中名为'install.sh'的文件中(不带引号),打开终端(Ctrl + Alt + t)并运行命令"bash install.sh"(再次不带引号).

Save this into a file named 'install.sh' (without quotes) in your home directory, open a terminal (Ctrl+Alt+t) and run the command 'bash install.sh' (again without quotes).

#!/bin/bash

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install build-essential -y
sudo apt-get install codeblocks -y
sudo apt-get install codeblocks-contrib -y
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get autoremove -y
sudo apt-get autoclean -y

exit 0;

这篇关于如何在Linux Mint 17.1(KDE)中安装代码块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆