build-essential(qt安装后没有gcc)

伏羲号

安装Qt并不会自动安装GCC,因为GCC是一个独立的编译器,Qt只是一个开发框架。如果需要使用GCC编译程序,需要单独安装GCC。在Linux中,可以通过命令行安装GCC,例如在Ubuntu系统中可以使用“sudo apt-get install build-essential”命令安装GCC及其他必要的编译工具。

build-essential(qt安装后没有gcc)

安装完成后可以通过命令“gcc --version”来验证GCC是否已经安装成功。

在ubuntu上安装yum会有依赖的问题。 安装yum的步骤:

1、首先检测是否安装了build-essential程序包,apt-get install build-essential。

2、安装yum,apt-get install yum。

3、安装完毕但是没有源,不能直接使用yum安装软件,于是尝试着把fedora上的源放到ubuntu上使用。首先下载fedora-163.repo和fedora-updates-163.repo两个文件, 并放入/etc/yum/repos.d/目录下,然后编辑这两个文件将$releasever全部替换成17。

4、最后就可以运行yum makecache生成缓存了。

当然首先把桌面换成装逼神器I3WM了,然后就是gimp和inkscape。至于编程工具,都是命令行的,爱装啥就是啥,我一般装tmux, vim,build-essential,qemu,libvirt,sloccount,nmap,python,ctags,cscope,glibc-manpage,docker.io,libvirt,qemu。其它的,用到的时候装就是了。

Title: Learning Fire Safety and First Aid Knowledge: A Path to Prevention and Safety

Introduction

Good morning/afternoon, esteemed guests, teachers, and亲爱的同学们. Today, I'm here to talk about a topic that's extremely important for all of us - fire safety and first aid knowledge. As we embark on a new academic year, it's essential that we equip ourselves with the necessary skills and knowledge to handle emergency situations, such as fires.

The Importance of Fire Safety and First Aid Knowledge

fire safety is the set of practices and precautions that help prevent fires and minimize damage caused by them. First aid knowledge, on the other hand, enables us to provide immediate care to those injured in accidents or emergencies, including fires, until professional medical help arrives.

Learning fire safety and first aid knowledge can mean the difference between life and death, not only for ourselves but also for our loved ones and community members. It's our responsibility to protect ourselves and others from harm, and this can only be achieved through education and preparedness.

Fire Safety Measures

So, what can we do to prevent fires and stay safe? Here are some essential fire safety measures:

1. Regularly inspect electrical appliances and wiring for any damage or wear.

2. Keep flammable materials, such as curtains and furniture, at a safe distance from heat sources.

3. Develop an emergency evacuation plan for your home or school and conduct regular fire drills.

4. Install and maintain smoke alarms and carbon monoxide detectors.

5. Learn how to use a fire extinguisher properly.

First Aid for Fire-Related Injuries

In the event of a fire, knowing how to provide first aid can significantly improve the chances of survival and recovery. Here are some basic first aid measures for fire-related injuries:

1. If someone is suffering from smoke inhalation, move them to a safe area with fresh air and administer CPR if needed.

2. For burns, cool the burned area with cool water for at least 20 minutes and cover it with a clean cloth or bandage.

3. If someone has suffered a severe burn, do not attempt to remove their clothing, as it may cause further damage.

4. In cases of severe injury, always call for emergency medical help.

Conclusion

In conclusion, fire safety and first aid knowledge are invaluable skills that can save lives and prevent devastating consequences. By learning about these topics and taking the necessary precautions, we can create a safer environment for ourselves and our communities.

I encourage each and every one of you to educate yourselves on fire safety and first aid, and to share this knowledge with your loved ones. Together, we can build a safer, more resilient world, where no one has to suffer the horrors of a fire.

Thank you.

前提是: 1.配置好了Ubuntu下的c++环境,gcc以及g++可用。 2.使用eclipse for c+做OpenGL开发。 步骤一: 在ubuntu终端下运行以下命令,安装opengl所需要的库文件 $ sudo apt-get install build-essential $ sudo apt-get install freeglut3-dev 步骤二: 运行一下opengl实例,测试配置的环境是否安装成功 在eclipse下新建一个工程文件,假设命名为Test,在工程Test里面新建一个C++源代码文件,这里把它命名为main.cpp,在main.cpp文件中打入一下代码 #include

发表评论

快捷回复: 表情:
AddoilApplauseBadlaughBombCoffeeFabulousFacepalmFecesFrownHeyhaInsidiousKeepFightingNoProbPigHeadShockedSinistersmileSlapSocialSweatTolaughWatermelonWittyWowYeahYellowdog
评论列表 (暂无评论,98人围观)

还没有评论,来说两句吧...