I need to install gcc 5.2 and boost 1.62 on openSUSE 11.4. The point is that the official version of these two tools on openSUSE 11.4 is gcc 4.5 and boost 1.44. I tried to build them from source code, but the problem is that regarding to lots of dependencies, I should build those dependencies as well.

Is there any straightforward method to do this job?

  • you don't want this ... openSUSE 11.4 is out of support for years. – mimi.vx Apr 23 '17 at 13:37
  • @mimi.vx It is still supported. – Gupta Apr 24 '17 at 22:50
  • openSUSE 11.4 is out of support for years Supported openSUSE is now : openSUSE Tumbleweed and openSUSE Leap 42.1 / 42.2 – mimi.vx Apr 26 '17 at 11:28
  • @mimi.vx You are right :) I confused openSUSE 11.4 with Suse Linux Enterprise Server 11.4 that is supported currently. – Gupta Apr 27 '17 at 15:00
  • but still this ins't good idea. This packages are core, and update or multiple install is nontrivial. What I recommend is SLES12SP2 + SDK + Toolchain module – mimi.vx Apr 28 '17 at 9:07

In theory you can recompile everything with supported version dependencies. However this can involve a lot of grunt work and the fastest way to get things working is to get someone else to do the grunt work for you. So, in addition to your normal system, install one or more distribution for development work. This doesn't have to have a lot of overhead: you don't need to set up a virtual machine, a chroot environment will do fine. Schroot is a handy tool to set up chroot environments with a different system but the same home directory.

I've written a guide for Debian-like distributions; you could follow this guide and install Debian unstable on SuSE, and this blog post by masterpatricko describes) explains a setup with a SuSE host.

For more fine-grained control of development tool versions, you could use the Nix package manager to install software in your home directory. Nix-user-chroot is a tool similar to schroot that lets you easily run software from a different (Nix-managed, in this case) installation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.