How to install a locale, newer GCC Compiler?

Forum › Forums › New users › New Users and General Questions › How to install a locale, newer GCC Compiler?

Tagged: 

  • This topic has 3 replies, 4 voices, and was last updated Oct 5-7:12 pm by Robin.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #186873
    pantarhei
    Member

      I want to compile with newer gcc to use C++ 23 features. I do not want to change the default packages/libraries for the hole system.
      I am afraid I will break dependencies if a install a package from a different source.

      One way could be to install and compile in a docker container for gcc. Is there a better way to have a newer (locale) gcc, without changing the system wide packages/libraries?

      My system install:

      $ cat /etc/antix-version
      antiX-22_x64-full Grup Yorum 18 October 2022

      My gcc version:

      $ gcc --version
      gcc (Debian 10.2.1-6) 10.2.1 20210110
      • This topic was modified 11 months, 3 weeks ago by pantarhei.
      • This topic was modified 11 months, 3 weeks ago by pantarhei.
      • This topic was modified 11 months, 3 weeks ago by pantarhei.
      #186918
      PPC
      Member

        My suggestion? Just install a newer version of antiX (or wait a bit more and install antiX 25 when it comes out)

        P.

        #186932
        Brian Masinick
        Moderator

          My suggestion? Just install a newer version of antiX (or wait a bit more and install antiX 25 when it comes out)

          P.

          To that point antiX 23.2 is maintained and working well.

          The antiX 25 release is currently in ALPHA (early) testing. It could possibly be ready near the end of the year or early next year.

          23.2 is solid; package updates still occur and will continue to be supported at least a bit before giving way to future releases.

          I’ll tell you something else. Though antiX 22 was good, some of the most significant improvement in years came between releases 22 and 23. Moreover 13.1 and 23.2 added additional updates.

          I wouldn’t bother with 22 anymore; we all worked hard to develop and test the three updated releases since then.

          --
          Brian Masinick
          Alternate "Search B":
          This search page

          #186941
          Robin
          Member

            Is there a better way to have a newer (locale) gcc, without changing the system wide packages/libraries?

            Normally you can install gcc (and also g++) in multiple versions parallel on your system. Unfortunately debian bookworm repos don’t provide recent gcc, merely gcc 11 and 12 are present and can be installed, not 15.2, but you can try compiling it from sources and install it locally then. No extra container should be needed for this to work.

            For selecting what version is the default in your system, go into antiX Control Centre, section “System”, therein click open “Alternatives” and therein select “CC” or “CPP” or similar from the list in the left column, which allows then in the right field to preselect what gcc version will be used.

            Windows is like a submarine. Open a window and serious problems will start.

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.