Code::Blocks Forums

User forums => Help => Topic started by: praetor on August 04, 2010, 04:22:18 pm

Title: CodeBlocks in RHEL 4
Post by: praetor on August 04, 2010, 04:22:18 pm
Our previous production release is shipped with RHEL 4.

I have had a lot of success with CodeBlocks in windows and RHEL 5, but I can't get it to run on my old development machine running RHEL 5 (which of course I need to get work done on this week).

When I try to configure CodeBlocks, it requires WxWidget.  WxWidget needs GTK+:
     checking for pkg-config... /usr/bin/pkg-config
     checking for GTK+ - version >= 2.0.0... no
     *** Could not run GTK+ test program, checking why...

When I try to configure GTK+, I find it needs another version of glib:
    checking for BASE_DEPENDENCIES... configure: error: Package requirements
     (glib-2.0 >= 2.23.6    atk >=  1.29.2    pango >= 1.20    cairo >= 1.6) were not met:
    Requested 'glib-2.0 >= 2.23.6' but version of GLib is 2.4.7

I am less confident messing with glib, as there are 5 other developers on this machine and I fear I will cause damage to the underlying operating system.  I encountered basically the same result using version 8 of Code Blocks. 


What would be the quickest way for me to get Code Blocks running on this machine? 

Suggestions, Concerns, welcome...

Thanks,

James
Boston, MA


Title: Re: CodeBlocks in RHEL 4
Post by: oBFusCATed on August 04, 2010, 04:46:45 pm
What is the wxGTK version on RHEL 4?
There is a possibility that C::B can't be build with wx older that 2.8.x, where x >= 6 (here I'm just guessing)
Title: Re: CodeBlocks in RHEL 4
Post by: SharkCZ on August 05, 2010, 10:16:46 am
Code::Blocks for RHEL >= 4 is packaged in the Fedora EPEL repository, see http://fedoraproject.org/wiki/EPEL
Title: Re: CodeBlocks in RHEL 4
Post by: praetor on August 05, 2010, 06:28:43 pm
I couldn't build/install wxWidget because of the GTK/glib dependency.  Here is what rpm tells me is installed related to these two packages:

[castel@ESPSWT01 ~]$ rpm -qa | grep "^gtk[+2]"
gtk2-engines-2.2.0-7.el4
gtk2-2.4.13-24.el4
gtk+-1.2.10-36
[castel@ESPSWT01 ~]$ rpm -qa | grep wxGTK
[castel@ESPSWT01 ~]$ rpm -qa | grep wx
[castel@ESPSWT01 ~]$

I found the sources for CodeBlocks in the EPEL repository and will try to build that.  Hopefully, it doesn't have the same dependencies...

James
Boston, MA
Title: Re: CodeBlocks in RHEL 4
Post by: SharkCZ on August 05, 2010, 07:12:45 pm
You don't have build anything, it's all built there, C::B 10.05, wxGTK 2.8.11 and all the needed dependencies, just install and enjoy.
Title: Re: CodeBlocks in RHEL 4
Post by: praetor on August 11, 2010, 09:31:02 pm
SharkCZ gets the brass ring here.  I downloaded the following RPMs (i386 builds for the target machine in question) and installed them in the same order:

http://download.fedora.redhat.com/pub/epel/4ES/i386/wxBase-2.8.11-1.el4.i386.rpm
http://download.fedora.redhat.com/pub/epel/4ES/i386/wxGTK-2.8.11-1.el4.i386.rpm
http://download.fedora.redhat.com/pub/epel/4ES/i386/codeblocks-libs-10.05-1.el4.i386.rpm
http://download.fedora.redhat.com/pub/epel/4ES/i386/codeblocks-10.05-1.el4.i386.rpm

Works great!  Thanks!

James
Boston, MA