Install codeblocks by adding a source in Ubuntu

Source: Internet
Author: User
In Ubuntu, use vim to edit the following script and run it with sudo. Do not forget to use chmod + xoriginalinstall_codeblocks.shbelow :#! /Bin/bashDISTRIB_CODENAME = 'cat/etc/lsb-release | grepDISTRIB_CODENAME | sed's/DISTRIB_CODENAME \\\ (\. * \)/\ 1/

In Ubuntu, use vim to edit the following script and run it with sudo. Do not forget to use chmod + x before running it.

Original install_codeblocks.sh below:

#! /Bin/bash
DISTRIB_CODENAME = 'cat/etc/lsb-release | grep DISTRIB_CODENAME | sed's/DISTRIB_CODENAME \=\ (\. * \)/\ 1/G''
WX_DEB = "deb http://apt.wxwidgets.org/$ DISTRIB_CODENAME-wx main"
CB_DEB = "deb http://lgp203.free.fr/ubuntu/ $ DISTRIB_CODENAME universe"

Echo $ WX_DEB>/etc/apt/sources. list. d/wx. list
Echo $ CB_DEB>/etc/apt/sources. list. d/cb-nightly.list

Wget-q http://apt.wxwidgets.org/key.asc-O-| apt-key add-
Wget-q http://lgp203.free.fr/public.key-O-| apt-key add-

Apt-get update

Apt-get install libcodeblocks0 codeblocks libwxsmithlib0 codeblocks-contrib

Apt-get install freeglut3-dev libasound2-dev libxmu-dev libxxf86vm-dev g ++ libgl1-mesa-dev libglu1-mesa-dev libraw1394-dev

Code: Blocks: Click here
Code: Blocks: Click here

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.