Installing gcc/g++ on Centos 3.9 (yes, 3.9 32 bit)

Comments, suggestions, compliments, etc
Post Reply
User avatar
fcorbelli
Posts: 2
Joined: 2021/11/14 14:20:37
Location: Italy
Contact:

Installing gcc/g++ on Centos 3.9 (yes, 3.9 32 bit)

Post by fcorbelli » 2021/11/14 14:34:34

I am trying to install g++ on CentOS 3.9 (32 bit), but having difficulty modifying yum.conf
to "take" from vault instead of default sites (no more supported).

I don't often use CentoOS, could someone please help me?

And no, I cannot use a newer version, so please do not suggest to use "something else"

Thanks to all reply

Code: Select all

[root@localhost etc]# uname -a
Linux localhost.localdomain 2.4.21-50.ELsmp #1 SMP Mon Jun 11 18:13:29 EDT 2007 i686 athlon i386 GNU/Linux
My "fixed" yum.conf

Code: Select all

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
installonlypkgs=kernel kernel-smp kernel-hugemem kernel-enterprise kernel-debug kernel-unsupported kernel-smp-unsupported kernel-hugemem-unsupported
tolerant=1
exactarch=1

[base]
name=CentOS-$releasever - Base
baseurl=https://vault.centos.org/3.9/os/i386/
gpgcheck=1

#released updates
[update]
name=CentOS-$releasever - Updates
baseurl=https://vault.centos.org/3.9/updates/i386/
gpgcheck=1

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=https://vault.centos.org/3.9/addons/i386/
gpgcheck=1

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=https://vault.centos.org/3.9/extras/i386/
gpgcheck=1

... does not work

Code: Select all

[root@localhost etc]# yum -y install gcc

Unable to find pid
Gathering header information file(s) from server(s)
Server: CentOS-3 - Addons
Traceback (most recent call last):
  File "/usr/bin/yum", line 30, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum/yummain.py", line 233, in main
    clientStuff.get_package_info_from_servers(serverlist, HeaderInfo)
  File "/usr/share/yum/clientStuff.py", line 846, in get_package_info_from_servers
    progress_obj=None)
  File "/usr/share/yum/clientStuff.py", line 1327, in grab
    bandwidth, conf.retries, retrycodes, checkfunc)
  File "/usr/share/yum/urlgrabber.py", line 237, in retrygrab
    progress_obj, throttle, bandwidth)
  File "/usr/share/yum/urlgrabber.py", line 314, in urlgrab
    fo = urllib2.urlopen(url)
  File "/usr/lib/python2.2/urllib2.py", line 138, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.2/urllib2.py", line 328, in open
    '_open', req)
  File "/usr/lib/python2.2/urllib2.py", line 307, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.2/urllib2.py", line 831, in https_open
    return self.do_open(httplib.HTTPS, req)
  File "/usr/lib/python2.2/urllib2.py", line 807, in do_open
    h.endheaders()
  File "/usr/lib/python2.2/httplib.py", line 695, in endheaders
    self._send_output()
  File "/usr/lib/python2.2/httplib.py", line 581, in _send_output
    self.send(msg)
  File "/usr/lib/python2.2/httplib.py", line 548, in send
    self.connect()
  File "/usr/lib/python2.2/httplib.py", line 945, in connect
    ssl = socket.ssl(realsock, self.key_file, self.cert_file)
socket.sslerror: (8, 'EOF occurred in violation of protocol')
Last Red Hat used: version 6 (~2000), I'm a little rusty with CentOS :oops:

User avatar
TrevorH
Forum Moderator
Posts: 31344
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Installing gcc/g++ on Centos 3.9 (yes, 3.9 32 bit)

Post by TrevorH » 2021/11/14 16:05:15

The problem is that all CentOS web sites now speak only TLS 1.2 or higher and that wasn't invented until 2 years after CentOS 3 went EOL.

I cannot think of any valid reason for using 3.9. It's been dead for over 14 years.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

User avatar
fcorbelli
Posts: 2
Joined: 2021/11/14 14:20:37
Location: Italy
Contact:

Re: Installing gcc/g++ on Centos 3.9 (yes, 3.9 32 bit)

Post by fcorbelli » 2021/11/14 17:09:41

TrevorH wrote:
2021/11/14 16:05:15
The problem is that all CentOS web sites now speak only TLS 1.2 or higher and that wasn't invented until 2 years after CentOS 3 went EOL.

I cannot think of any valid reason for using 3.9. It's been dead for over 14 years.
It is needed to make executable for vSphere ESXi server (my zpaqfranz in fact, a versioned archiver)
AFAIK it is the only OS version that can do this (compile an external software, statically linked, that is "VMware compatible")

Something like that
https://williamlam.com/2011/02/how-to-c ... rsync.html

If you know how to compile a C+11 source code (statically linked) which can run on ESXi please share, you will save me a lot of work.

3.9 works (for this task) but the very ancient g++ 3.2.3 is really too limited, so I am trying to switch to gcc 7.3.0, compiling from source (not an easy job: for example even tar (!) is not compatible with newer compressors, even make is too old (you cannot make... without make), needing to be compiled from the source, other software must be installed as "side effects" (!), standard libraries are not founded, maybe intermediated update is needed (3.2>4.8>7.3) etc)

Short version: gcc 7.3 on Centos 3.9 32 bit seems not trivial, I typically run Unix systems, not CentOS, therefore not very confident with Linux ones: the last time I installed a Red Hat server it was from floppy disk.

====

Anyway, the yum.conf to "revive" the yum on a Centos 3.9 32 bit is this (starting from archive.kernel.org, with http, not vault.centos ,and hard-coded 3.9 string)

Code: Select all

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
installonlypkgs=kernel kernel-smp kernel-hugemem kernel-enterprise kernel-debug kernel-unsupported kernel-smp-unsupported kernel-hugemem-unsupported
tolerant=1
exactarch=1

[base]
name=CentOS-$releasever - Base
baseurl=http://archive.kernel.org/centos-vault/3.9/os/$basearch/
gpgcheck=1

#released updates
[update]
name=CentOS-$releasever - Updates
baseurl=http://archive.kernel.org/centos-vault/3.9/updates/$basearch/
gpgcheck=1

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=http://archive.kernel.org/centos-vault/3.9/addons/$basearch/
gpgcheck=1

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://archive.kernel.org/centos-vault/3.9/extras/$basearch/
gpgcheck=1
Last Red Hat used: version 6 (~2000), I'm a little rusty with CentOS :oops:

Post Reply

Return to “User Comments”