Since CodeBlocks can't be installed from YUM, you'll have to resolve the related dependencies yourself.
Here're my steps:
- sudo yum -y gtk2-devel wxBase wxGTK
- Download C::B from the official site (http://www.codeblocks.org/downloads/26).
I downloaded version 12.11. codeblocks-12.11-1.el6.x86_64.tar.bz2 - Extract downloaded file:
tar -jxvf codeblocks-12.11-1.el6.x86_64.tar.bz2 - You should get codeblocks-12.11-1.el6.x86_64.rpm from the archive. Install it:
sudo rpm -i codeblocks-12.11-1.el6.x86_64.rpm - Done!
gnome-terminal --disable-factory --hide-menubar -t $TITLE -x
I installed GDB 7.6 manually because Yum only has GDB 7.2 now.
- Download GDB from http://www.gnu.org/software/gdb/download/
- tar xvfz gdb-7.6.tar.gz; cd gdb-7.6; ./configure; make; sudo make install