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