CodeBlocks for Centos 7

Issues related to applications and software problems
Post Reply
bevo
Posts: 26
Joined: 2011/03/21 23:30:07
Location: California

CodeBlocks for Centos 7

Post by bevo » 2015/01/23 19:04:37

I am trying to get the latest build of CodeBlocks for Centos 7. The binaries they have in http://www.codeblocks.org/downloads/binaries#linux64 is pretty old. Jens Lody has a Yum repo in copr. I am able to use Yum to access it. But when I try to install it, I get the following errors:

$ yum list codeblocks
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.hostduplex.com
* extras: mirrors.xmission.com
* updates: repos.lax.quadranet.com
Available Packages
codeblocks.x86_64 13.12.svn.10074-1.el7 jenslody-codeblocks

$ sudo yum install codeblocks.x86_64
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.kernel.org
* extras: mirror.raystedman.net
* updates: mirror.supremebytes.com
Resolving Dependencies
--> Running transaction check
---> Package codeblocks.x86_64 0:13.12.svn.10074-1.el7 will be installed
--> Processing Dependency: codeblocks-libs(x86-64) = 13.12.svn.10074 for package: codeblocks-13.12.svn.10074-1.el7.x86_64
--> Processing Dependency: wxGTK >= 2.8.0 for package: codeblocks-13.12.svn.10074-1.el7.x86_64
--> Processing Dependency: libwx_baseu-2.8.so.0(WXU_2.8)(64bit) for package: codeblocks-13.12.svn.10074-1.el7.x86_64
--> Processing Dependency: libwx_baseu-2.8.so.0(WXU_2.8.2)(64bit) for package: codeblocks-13.12.svn.10074-1.el7.x86_64
--> Processing Dependency: libwx_baseu_net-2.8.so.0(WXU_2.8)(64bit) for package: codeblocks-13.12.svn.10074-1.el7.x86_64
--> Processing Dependency: libwx_baseu_xml-2.8.so.0(WXU_2.8)(64bit) for package: codeblocks-13.12.svn.10074-1.el7.x86_64
--> Processing Dependency: libwx_gtk2u_adv-2.8.so.0(WXU_2.8)(64bit) for package: codeblocks-13.12.svn.10074-1.el7.x86_64
--> Processing Dependency: libwx_gtk2u_aui-2.8.so.0(WXU_2.8)(64bit) for package: codeblocks-13.12.svn.10074-1.el7.x86_64
--> Processing Dependency: libwx_gtk2u_aui-2.8.so.0(WXU_2.8.5)(64bit) for package: codeblocks-13.12.svn.10074-1.el7.x86_64
--> Processing Dependency: libwx_gtk2u_core-2.8.so.0(WXU_2.8)(64bit) for package: codeblocks-13.12.svn.10074-1.el7.x86_64
--> Processing Dependency: libwx_gtk2u_core-2.8.so.0(WXU_2.8.5)(64bit) for package: codeblocks-13.12.svn.10074-1.el7.x86_64
--> Processing Dependency: libwx_gtk2u_html-2.8.so.0(WXU_2.8)(64bit) for package: codeblocks-13.12.svn.10074-1.el7.x86_64
--> Processing Dependency: libwx_gtk2u_xrc-2.8.so.0(WXU_2.8)(64bit) for package: codeblocks-13.12.svn.10074-1.el7.x86_64

I manage to get a wxGTK-2.8.12-6.4.x86_64.rpm from some RPM repository but it is not built for Centos 7. When I try to install this RPM, I get another error:
$ sudo rpm --install wxGTK-2.8.12-6.4.x86_64.rpm
warning: wxGTK-2.8.12-6.4.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 0c9a6ded: NOKEY
error: Failed dependencies:
libtiff.so.3()(64bit) is needed by wxGTK-2.8.12-6.4.x86_64

$ ls -l /usr/lib64/libtiff*
lrwxrwxrwx. 1 root root 16 Jan 21 03:22 /usr/lib64/libtiff.so -> libtiff.so.5.2.0
lrwxrwxrwx. 1 root root 16 Jan 21 03:22 /usr/lib64/libtiff.so.5 -> libtiff.so.5.2.0
-rwxr-xr-x. 1 root root 475288 Jun 9 2014 /usr/lib64/libtiff.so.5.2.0
lrwxrwxrwx. 1 root root 18 Jan 21 03:22 /usr/lib64/libtiffxx.so -> libtiffxx.so.5.2.0
lrwxrwxrwx. 1 root root 18 Jan 21 03:22 /usr/lib64/libtiffxx.so.5 -> libtiffxx.so.5.2.0
-rwxr-xr-x. 1 root root 11408 Jun 9 2014 /usr/lib64/libtiffxx.so.5.2.0


Anybody knows where I can find the wxGTX package for Centos 7? I try to avoid building the whole thing from scratch if possible.

bevo
Posts: 26
Joined: 2011/03/21 23:30:07
Location: California

Re: CodeBlocks for Centos 7 (Solved)

Post by bevo » 2015/01/23 19:37:01

Apparently someone already get this working. It turns out you need to install a repo RPM from http://dl.fedoraproject.org/pub/epel/7/ ... noarch.rpm first. That adds a new epel.repo to /etc/yum.repos.d. The command 'yum info wxGTK' now shows the required library and I am able to install it.
After that 'yum install codeblocks' gets installed without problem.

charlesone
Posts: 1
Joined: 2017/09/18 22:39:19

Re: CodeBlocks for Centos 7

Post by charlesone » 2017/09/18 22:59:28

Just did a successful install of Code::Blocks on new CentOS 7 on an older AMD X86_64: uname -r: 3.10.0-693.2.2.el7.x86_64

Seems to work fine.

After installing devtoolset-6 and the latest eclipse from http://www.softwarecollections.org:

https://www.softwarecollections.org/en/ ... toolset-6/
https://www.softwarecollections.org/en/ ... eclipse46/

and then sudo yum upgrade, I had to install these rpms EXACTLY:

sudo yum install codeblocks-13.12-24.el7.x86_64.rpm codeblocks-contrib-libs-13.12-24.el7.x86_64.rpm codeblocks-libs-13.12-24.el7.x86_64.rpm libstdc++-4.8.5-16.el7.x86_64.rpm squirrel-2.2.5-5.el7.x86_64.rpm squirrel-libs-2.2.5-5.el7.x86_64.rpm tinyxml-2.6.2-3.el7.x86_64.rpm wxBase-2.8.12-20.el7.x86_64.rpm wxGTK-2.8.12-20.el7.x86_64.rpm wxGTK-gl-2.8.12-20.el7.x86_64.rpm

I found them all on https://centos.pkgs.org, I believe.

No 686, variations or additions, or it does not converge.

Enjoy!

Charlie ...

Post Reply