Re: gcc 5.4.0 on EL 7

2020-04-26 Thread Götz Waschk
Am 26.04.20 um 01:39 schrieb Yasha Karant:
> I use Calibre, and had hoped that SL 7.8 would support the recommended
> version (please see below).  Calibre requires gcc 5.4.0, and I have
> appended the instructions for installing that gcc into CentOS 7 (and
> hence, SL 7).  Will this change in gcc "break" the 7.8 system and
> applications, or will it "coexist" with the distro gcc?

Dear Yasha,

please don't run this, it will not work. It needs glibc 2.18 and this
will not work on EL7 anyway. EL7 has glibc 2.17, anything depending on a
newer version will only run containerized if at all.

There's another way to install calibre: use flatpak. Install SL's
flatpak package, then setup the repo:
# flatpak remote-add --if-not-exists flathub
https://dl.flathub.org/repo/flathub.flatpakrepo

Install the flatpak:
# flatpak install flathub com.calibre_ebook.calibre

Then as user, run it:
% flatpak run com.calibre_ebook.calibre


Regards,
Götz
-- 
Götz Waschk° Phone:  +49 33762 77169
Deutsches Elektronen-Synchrotron DESY  ° Fax:+49 33762 77216
Platanenallee 6° E-Mail: goetz.was...@desy.de
15738 Zeuthen Germany



smime.p7s
Description: S/MIME Cryptographic Signature


gcc 5.4.0 on EL 7

2020-04-25 Thread Yasha Karant
I use Calibre, and had hoped that SL 7.8 would support the recommended 
version (please see below).  Calibre requires gcc 5.4.0, and I have 
appended the instructions for installing that gcc into CentOS 7 (and 
hence, SL 7).  Will this change in gcc "break" the 7.8 system and 
applications, or will it "coexist" with the distro gcc?


Stay safe.  Take care.

Yasha Karant

From calibre:
Download for Linux

The latest release of calibre is 4.14.0. What's new 
.


Please do not use your distribution provided calibre package, as those 
are often buggy/outdated. Instead use the Binary install described below.



 Binary install

calibre has a binary install that includes private versions of all its 
dependencies. It runs on 32-bit and 64-bit Intel compatible machines. To 
install or upgrade, simply copy paste the following command into a 
terminal and press Enter:


sudo -v && wget -nv -O- 
https://urldefense.proofpoint.com/v2/url?u=https-3A__download.calibre-2Debook.com_linux-2Dinstaller.sh&d=DwIDaQ&c=gRgGjJ3BkIsb5y6s49QqsA&r=gd8BzeSQcySVxr0gDWSEbN-P-pgDXkdyCtaMqdCgPPdW1cyL5RIpaIYrCn8C5x2A&m=_2oy9MKOcJoXiIsoZwTte8RteJIPnWCnVzs8pNIYQRs&s=mlb0nfTKye-zuvJYigtgpBVXeNs2wGCTOUM5Ha0sNl8&e=
  | sudo sh /dev/stdin


You need GLIBC 2.18 or higher and libstdc++.so.6.0.21 (from gcc 5.4.0) 
or higher to run calibre



The script will install GCC 5.4.0 on your CentOS 7 system, make sure you 
have root right. See 
https://urldefense.proofpoint.com/v2/url?u=https-3A__jdhao.github.io_2017_09_04_install-2Dgcc-2Dnewer-2Dversion-2Don-2Dcentos_&d=DwIDaQ&c=gRgGjJ3BkIsb5y6s49QqsA&r=gd8BzeSQcySVxr0gDWSEbN-P-pgDXkdyCtaMqdCgPPdW1cyL5RIpaIYrCn8C5x2A&m=_2oy9MKOcJoXiIsoZwTte8RteJIPnWCnVzs8pNIYQRs&s=Bou2POD4gEpWWg2jvzx6cMWrmoi9nY-8OJ80gsVPZFQ&e=  
for more details.
*gcc-5.4.0-install.sh * 
 



echo "Downloading gcc source files..."

curl 
https://urldefense.proofpoint.com/v2/url?u=https-3A__ftp.gnu.org_gnu_gcc_gcc-2D5.4.0_gcc-2D5.4.0.tar.bz2&d=DwIDaQ&c=gRgGjJ3BkIsb5y6s49QqsA&r=gd8BzeSQcySVxr0gDWSEbN-P-pgDXkdyCtaMqdCgPPdW1cyL5RIpaIYrCn8C5x2A&m=_2oy9MKOcJoXiIsoZwTte8RteJIPnWCnVzs8pNIYQRs&s=KcsB-xMvSIIXTeiJl_VAlBOZPyFZK0bO0xyGGviQ5uo&e=
  -O


echo "extracting files..."

tar xvfj gcc-5.4.0.tar.bz2


echo "Installing dependencies..."

yum -y install gmp-devel mpfr-devel libmpc-devel


echo "Configure and install..."

mkdir gcc-5.4.0-build

cd gcc-5.4.0-build

../gcc-5.4.0/configure --enable-languages=c,c++ --disable-multilib

make -j$(nproc) && make install