Author Topic: How to install CodeBlock on Centos  (Read 11580 times)

Offline alexchen

  • Multiple posting newcomer
  • *
  • Posts: 84
How to install CodeBlock on Centos
« on: April 20, 2013, 02:29:56 am »
I download CodeBlock 12.11 today to a Centos 6.4 64-bit machine.  The package is codeblocks-12.11-1.el6.x86_64.tar.bz2.
After I unpack it, I have the following rpm files: codeblocks-12.11-1.el6.x86_64.rpm, codeblocks-contrib-devel-12.11-1.el6.x86_64.rpm, codeblocks-contrib-12.11-1.el6.x86_64.rpm, and codeblocks-devel-12.11-1.el6.x86_64.rpm
When I try to install it, I encountered the following errors.  What other packages do I need to download to get it installed?

Thanks.
Alex
=========== error messages =============
$ rpm -i codeblocks-12.11-1.el6.x86_64.rpm
warning: codeblocks-12.11-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 6eeb25c9: NOKEY
error: Failed dependencies:
   libwx_baseu-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_baseu-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_baseu-2.8.so.0(WXU_2.8.2)(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_baseu_net-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_baseu_net-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_baseu_xml-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_baseu_xml-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_gtk2u_adv-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_gtk2u_adv-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_gtk2u_aui-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_gtk2u_aui-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_gtk2u_aui-2.8.so.0(WXU_2.8.5)(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_gtk2u_core-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_gtk2u_core-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_gtk2u_core-2.8.so.0(WXU_2.8.5)(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_gtk2u_html-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_gtk2u_html-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_gtk2u_qa-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_gtk2u_richtext-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_gtk2u_xrc-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   libwx_gtk2u_xrc-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-12.11-1.el6.x86_64
   wxGTK >= 2.8.0 is needed by codeblocks-12.11-1.el6.x86_64

$ rpm -i codeblocks-devel-12.11-1.el6.x86_64.rpm
warning: codeblocks-devel-12.11-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 6eeb25c9: NOKEY
error: Failed dependencies:
   codeblocks(x86-64) = 12.11 is needed by codeblocks-devel-12.11-1.el6.x86_64
   libcodeblocks.so.0()(64bit) is needed by codeblocks-devel-12.11-1.el6.x86_64

$ rpm -i codeblocks-contrib-12.11-1.el6.x86_64.rpm
warning: codeblocks-contrib-12.11-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 6eeb25c9: NOKEY
error: Failed dependencies:
   codeblocks(x86-64) = 12.11 is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libcodeblocks.so.0()(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_baseu-2.8.so.0()(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_baseu-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_baseu_net-2.8.so.0()(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_baseu_net-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_baseu_xml-2.8.so.0()(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_baseu_xml-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_gtk2u_adv-2.8.so.0()(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_gtk2u_adv-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_gtk2u_aui-2.8.so.0()(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_gtk2u_aui-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_gtk2u_aui-2.8.so.0(WXU_2.8.5)(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_gtk2u_aui-2.8.so.0(WXU_2.8.9)(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_gtk2u_core-2.8.so.0()(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_gtk2u_core-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_gtk2u_core-2.8.so.0(WXU_2.8.1)(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_gtk2u_core-2.8.so.0(WXU_2.8.5)(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_gtk2u_html-2.8.so.0()(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_gtk2u_html-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_gtk2u_qa-2.8.so.0()(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_gtk2u_richtext-2.8.so.0()(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_gtk2u_richtext-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_gtk2u_xrc-2.8.so.0()(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64
   libwx_gtk2u_xrc-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-contrib-12.11-1.el6.x86_64


$ rpm -i codeblocks-contrib-devel-12.11-1.el6.x86_64.rpm
warning: codeblocks-contrib-devel-12.11-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 6eeb25c9: NOKEY
error: Failed dependencies:
   codeblocks-contrib(x86-64) = 12.11 is needed by codeblocks-contrib-devel-12.11-1.el6.x86_64
   libwxchartctrl.so.0()(64bit) is needed by codeblocks-contrib-devel-12.11-1.el6.x86_64
   libwxcustombutton.so.0()(64bit) is needed by codeblocks-contrib-devel-12.11-1.el6.x86_64
   libwxflatnotebook.so.0()(64bit) is needed by codeblocks-contrib-devel-12.11-1.el6.x86_64
   libwximagepanel.so.0()(64bit) is needed by codeblocks-contrib-devel-12.11-1.el6.x86_64
   libwxkwic.so.0()(64bit) is needed by codeblocks-contrib-devel-12.11-1.el6.x86_64
   libwxled.so.0()(64bit) is needed by codeblocks-contrib-devel-12.11-1.el6.x86_64
   libwxsmithlib.so.0()(64bit) is needed by codeblocks-contrib-devel-12.11-1.el6.x86_64
   libwxspeedbutton.so.0()(64bit) is needed by codeblocks-contrib-devel-12.11-1.el6.x86_64
   libwxtreelist.so.0()(64bit) is needed by codeblocks-contrib-devel-12.11-1.el6.x86_64

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7608
    • My Best Post
Re: How to install CodeBlock on Centos
« Reply #1 on: April 20, 2013, 02:48:55 am »
Does wxWidgets 2.8 support 64 bits on your OS?
It DOES not support 64 bit on Windows.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline alexchen

  • Multiple posting newcomer
  • *
  • Posts: 84
Re: How to install CodeBlock on Centos
« Reply #2 on: April 20, 2013, 02:53:20 am »
CodeBlock binary I downloaded is for 64-bit.  But it needs wxGTK 2.8 ( I found from the last line in the error message ).
wxGTK only has Ubuntu binary build. I tried to build it from source code but it failed because it depends on GTK+.  This thing is snowballing now.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7608
    • My Best Post
Re: How to install CodeBlock on Centos
« Reply #3 on: April 20, 2013, 03:04:05 am »
Why are you NOT using the CB 32 bit build?
Because it almost have to have a Code::Blocks 32 bit build if they have a 64 bit build.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: How to install CodeBlock on Centos
« Reply #4 on: April 20, 2013, 09:09:45 am »
wxWidgets supports 64 bit on linux, and you can not use 32-bit binaries easily.
You need wxGTK from repoforge to install C::, see my server or repoforge directly.

Using a self-build wxWidgest will most likely fail, due to different build-parameters.