Is it possible to have codeblocks installed on Leap 15.5?

I would like to have codeblocks installed. I don’t see it in the official repos.
So, I try to install via opi. But I have this ERROR:

Problem: nothing provides ‘libc.so.6(GLIBC_2.38)(64bit)’ needed by the to be installed codeblocks-20.03-1.786.x86_64
Solution 1: do not install codeblocks-20.03-1.786.x86_64
Solution 2: break codeblocks-20.03-1.786.x86_64 by ignoring some of its dependencies

I already have “pattern devel_basis” installed which It seems already installed:
Name : glibc
Version : 2.31-150300.68.1

I think the problem is the old version 2.31 which installed.
Is there any possibility to install?

I compiled codeblocks 20.3 from codeblocks website as source and it runs on leap 15.5 Don’t remember any great difficulty in compilation. Download the linux tar file.

I don’t use it much so I can’t say that all of the features have been tested but it starts up in gui form and looks to work.

tom kosvic

1 Like

Ok. I looked on the forum and Internet and I didn’t find any solution , compiling seems to me also the only solution. But I asked here maybe, I thought, there is another solution. I had the same problem installing Insync(an unofficial Google client). But there I used an older Fedora package and it worked.
I will try to build.
Thank you for your response!

https://software.opensuse.org/package/codeblocks

Lists some home repositories that build for Leap 15.5 It is exactly the same list as you got from opi, you just selected package built for the wrong distribution.

1 Like

I did in Leap 15.5:

$ opi codeblocks

output:

Searching repos for: codeblocks

  1. codeblocks
  2. libcodeblocks0
  3. codeblocks-i18n
  4. codeblocks-devel
  5. codeblocks-contrib
  6. texlive-tikzcodeblocks
  7. texlive-tikzcodeblocks-doc

I selected 1:

output:

Pick a number (0 to quit): 1
You have selected package name: codeblocks

  1. home:regataos ! | 20.03 | x86_64
  2. home:wkazubski ! | 20.03 | x86_64
  3. home:mad_soft ! | 20.03 | x86_64
    Pick a number (0 to quit): 1
    You have selected package: home:regataos ! | 20.03 | x86_64

And I have same ERROR.

Shouldn’t I use opi? Sorry, but OpenSuse is new for me.
Or should I try other “home” repo?

Yes. Apparently the first one builds against some other home repositories that include updated glibc.

In the end I build it from source and it works, I could build and run a dummy C file.
But first:

$ zypper in wxWidgets-3_0-devel
$ zypper in zip

And followed:
https://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Linux

Thank you!

@ovidiu then there is also the flatpak version…

flatpak search codeblocks
Name                 Description                        Application ID                   Version        Branch        Remotes
Code::Blocks         IDE for C, C++ and Fortran         org.codeblocks.codeblocks        20.03          stable        flathub

I forgot about flatpaks :slight_smile: . But, anyway, is my last option. Now is fine. I have installed the Leap 15.6 Beta in my VM. I see there is glibc: 2.38-150600.5.2. That looks good when Leap 15.6 will be released.

Thank you!

It’s better not use flatpak for IDEs. They run in sandbox and programs like python, gcc or gdb installed in host system will not be accessible easily.

@szw0407 that’s why Flatseal can be used to adjust as required… @ovidiu will at some point likely have to recomplie on updates.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.