Linux flavors - opinions

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
Scally
Posts: 232
Joined: Thu Sep 28, 2017 9:34 pm
Location: Bermondsey, London
Full name: Alan Cooper

Re: Linux flavors - opinions

Post by Scally »

Hi Mike,

I’ve just got my hands on a RPi 4b with 4gb of RAM, the operating system is Raspbian Buster where the default gcc compiler is 8.3.0

Al.
User avatar
Look
Posts: 364
Joined: Thu Jun 05, 2014 2:14 pm
Location: Iran
Full name: Mehdi Amini

Re: Linux flavors - opinions

Post by Look »

syzygy wrote: Sun Jun 30, 2019 6:39 pm
lucasart wrote: Sun Jun 30, 2019 2:01 am
Daniel Shawul wrote: Sat Jun 29, 2019 8:47 am Ubuntu has gcc 7.0 by default which is fine, but CentOS 7 on the other hand comes with 4.8.5 which is a royal pain.
It can't compile my fortran 2008 and c++11 codes most of the time.

Code: Select all

yum-config-manager --enable rhel-server-rhscl-7-rpms \
   && yum -y install devtoolset-7-gcc devtoolset-7-gcc-c++ devtoolset-7-gcc-gfortran devtoolset-7-gdb
Then you have to source it "source scl_source enable devtoolset-7" everytime you want to use it .. The other option
is to compile the compiler itself from source. Good luck with that.
CentOS is garbage. This is well known. No one in their right mind should choose this. Of course some people are forced to use it because it has been installed for them on their work machine. But we are talking about choice here.
There seems to be a reason ("stability") why CentOS sticks to ancient kernels and packages from the time the pyramids were being built (indeed, the pyramids are still standing stably today as well), but I fully agree that installation of CentOS should be very strongly discouraged.

I'm running Fedora and it has gcc-9.1, which is the latest.
I guess CentOS is designed for site hosting.
Farewell.
User avatar
mhull
Posts: 13447
Joined: Wed Mar 08, 2006 9:02 pm
Location: Dallas, Texas
Full name: Matthew Hull

Re: Linux flavors - opinions

Post by mhull »

Daniel Shawul wrote: Sat Jun 29, 2019 8:47 am ... The other option
is to compile the compiler itself from source. Good luck with that.
Yes, you'll need it. After what seemed like weeks of preparation in my free time, I compiled an m68k cross-compiler using an 2.5GHZ AMD Phenom-II x4 830 which took about what seemed like 45 minutes. On an m68k, it would have taken months.
Matthew Hull
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Linux flavors - opinions

Post by MikeB »

Scally wrote: Sun Jun 30, 2019 8:59 pm Hi Mike,

I’ve just got my hands on a RPi 4b with 4gb of RAM, the operating system is Raspbian Buster where the default gcc compiler is 8.3.0

Al.
Interesting.
Image
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Linux flavors - opinions

Post by MikeB »

Appreciate all the responses - thank you very much.
Image
User avatar
lucasart
Posts: 3232
Joined: Mon May 31, 2010 1:29 pm
Full name: lucasart

Re: Linux flavors - opinions

Post by lucasart »

syzygy wrote: Sun Jun 30, 2019 6:39 pm
lucasart wrote: Sun Jun 30, 2019 2:01 am
Daniel Shawul wrote: Sat Jun 29, 2019 8:47 am Ubuntu has gcc 7.0 by default which is fine, but CentOS 7 on the other hand comes with 4.8.5 which is a royal pain.
It can't compile my fortran 2008 and c++11 codes most of the time.

Code: Select all

yum-config-manager --enable rhel-server-rhscl-7-rpms \
   && yum -y install devtoolset-7-gcc devtoolset-7-gcc-c++ devtoolset-7-gcc-gfortran devtoolset-7-gdb
Then you have to source it "source scl_source enable devtoolset-7" everytime you want to use it .. The other option
is to compile the compiler itself from source. Good luck with that.
CentOS is garbage. This is well known. No one in their right mind should choose this. Of course some people are forced to use it because it has been installed for them on their work machine. But we are talking about choice here.
There seems to be a reason ("stability") why CentOS sticks to ancient kernels and packages from the time the pyramids were being built (indeed, the pyramids are still standing stably today as well), but I fully agree that installation of CentOS should be very strongly discouraged.

I'm running Fedora and it has gcc-9.1, which is the latest.
The stability theory would make the implied statement that older versions of open source software are mort robust with fewer bugs. In my experience of open source development, people have little interest in maintaining old versions for the sake of it, and more bugs get removed than added as new versions come out. So their marketing argument (old = stable, new = broken) is based on a myth.

I think the only valid reason to choose something like CentOS is for a company, who will subscribe to IT support. Companies need a throat to choke when things don't work, and they are ready to pay for that. So, this actually results in a wrong way incentive for Red Hat: they need the system to be as broken as possible, and in ways that only they know how to fix.
Theory and practice sometimes clash. And when that happens, theory loses. Every single time.
jdart
Posts: 4366
Joined: Fri Mar 10, 2006 5:23 am
Location: http://www.arasanchess.org

Re: Linux flavors - opinions

Post by jdart »

If you're managing thousands of machines, then your nightmare is the failed mass upgrade, where you roll something out and then there are major problems. So these organizations delay updates, typically, letting somebody else have that problem and hopefully having it fixed by the vendor before they step into it. You can take that to extremes, and some organizations don't update because they're lazy/incompetent and so they have old unpatched systems, but the conservative approach does make some sense for bigger sites.

--Jon
syzygy
Posts: 5557
Joined: Tue Feb 28, 2012 11:56 pm

Re: Linux flavors - opinions

Post by syzygy »

lucasart wrote: Tue Jul 02, 2019 1:09 am The stability theory would make the implied statement that older versions of open source software are mort robust with fewer bugs. In my experience of open source development, people have little interest in maintaining old versions for the sake of it, and more bugs get removed than added as new versions come out. So their marketing argument (old = stable, new = broken) is based on a myth.
They are obviously fixing the bugs that are found to exist in the old versions. Not adding new features does decrease the probability that new bugs are added.

I have no problem to believe that CentOS is more stable, but I don't think the stability advantage outweighs the disadvantages in the case of a desktop system of a user who wishes to get the most out of his hardware.
smcracraft
Posts: 737
Joined: Wed Mar 08, 2006 8:08 pm
Location: Orange County California
Full name: Stuart Cracraft

Re: Linux flavors - opinions

Post by smcracraft »

Ubuntu definitely.

--Stuart
AWS CDA/CSA/SysOps
RedHat RHCSA/RHCSA
Oracle DBA / SUN SA

P.S. Reasoning? Ubuntu is the most responsive. Also Mark Shuttleworth of Canonical is a kick-butt dude. If you ever get a chance to hear him speak,
I strongly recommend.
Patrice Duhamel
Posts: 193
Joined: Sat May 25, 2013 11:17 am
Location: France
Full name: Patrice Duhamel

Re: Linux flavors - opinions

Post by Patrice Duhamel »

I think you can do what you want with any Linux distribution.

I prefer to use Linux Mint Cinnamon.
Anything that can go wrong will go wrong.