Author Topic: CodeBlocks in RHEL 4  (Read 5596 times)

Offline praetor

  • Single posting newcomer
  • *
  • Posts: 3
CodeBlocks in RHEL 4
« 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



Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: CodeBlocks in RHEL 4
« Reply #1 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)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline SharkCZ

  • Almost regular
  • **
  • Posts: 134
Re: CodeBlocks in RHEL 4
« Reply #2 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
Code::Blocks package maintainer for Fedora and EPEL

Offline praetor

  • Single posting newcomer
  • *
  • Posts: 3
Re: CodeBlocks in RHEL 4
« Reply #3 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

Offline SharkCZ

  • Almost regular
  • **
  • Posts: 134
Re: CodeBlocks in RHEL 4
« Reply #4 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.
Code::Blocks package maintainer for Fedora and EPEL

Offline praetor

  • Single posting newcomer
  • *
  • Posts: 3
Re: CodeBlocks in RHEL 4
« Reply #5 on: August 11, 2010, 09:31:02 pm »