Downloading and installing a very old version of gcc


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Downloading and installing a very old version of gcc
# 1  
Old 03-25-2019
Downloading and installing a very old version of gcc

I would like to acquire a very old version of gcc: 4.4.3 and set it up in such a way that I can use the
Code:
update-alternatives

command to switch between my current version and the older version. I believe I may have found a website where I can download 4.4.3 from. However, I am not sure what all I need from that website or where exactly I should be installing too. If I search my kernel for gcc it would seem my current version is a symbolic link located @
Code:
/usr/lib/gcc/x86_64-linux-gnu/7.3.0

and is linked to Folder
Code:
inode/directory

There are actually three folders in that directory: 7, 7.3.0 and 8 (empty folder).


So I am hoping someone might be able to help me understand both what I should be downloading and where I should be unpacking it such that I can run the command:
Code:
sudo update-alternatives --config gcc

to select which version of gcc I want my computer to default to for a compilation. Also, if this is not the right website to download from, then where would be the correct place to download gcc version 4.4.3 from. I would start tinkering but I certainly dont want to break anything.
# 2  
Old 03-25-2019
The usual problem is that this "update-alternatives" command may not have existed when 4.4.3 was being used and hence nobody has integrated it into your distro that way.

What is your distribution?
# 3  
Old 03-26-2019
The version of update-alternatives is 1.19.0.5 and my distribution is Ubuntu 18.04. If I can't use the update-alternatives command maybe I could just make a symbolic link for gcc and switch them manually in a terminal? I also have another distribution on this computer: Ubuntu 16.04.
# 4  
Old 03-26-2019
Depends on your build process. A lot of things using "configure", etc will let you do CC=/path/to/gcc CXX=/path/to/g++ ./configure
# 5  
Old 03-26-2019
Any idea on which of those downloads I am looking for in that link I provided? My guess would be:


Code:
Imagegcc-4.4.3.tar.bz22010-01-21 08:32   60M  Imagegcc-4.4.3.tar.bz2.sig2010-01-21 08:32   72   Imagegcc-4.4.3.tar.gz2010-01-21 08:32   78M  Imagegcc-4.4.3.tar.gz.sig2010-01-21 08:33   72

# 6  
Old 03-26-2019
The two large files are functionally equivalent, using different methods of compression.

The two small ones are just checksums for the big ones.
This User Gave Thanks to Corona688 For This Post:
# 7  
Old 03-26-2019
Be sure its prefix is /usr/local when you compile it, not /usr, so as to avoid overwriting your existing gcc and include files.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Downloading and installing (new to Ubuntu OS)

I've done a whole days work of researching how to install a program on ubuntu.. so first I downloaded python.. unpackaged it from .tar.xz now its just python-3.4.2 then I navigated to the dir in terminal.. then ran the ./configure make make test sudo make install commands which took like 10 minutes... (2 Replies)
Discussion started by: Marniwild
2 Replies

2. Solaris

GCC installing

dear, please just didn't understand the problem that appears when i try to install ./configure here is the message that appears in unix when installing gcc root@ccbtest # ./configure checking build system type... /bin/bash: ./config.guess: No such file or directory configure: error: cannot... (3 Replies)
Discussion started by: semaan
3 Replies

3. Solaris

downloading gcc package manually

hello everyone can anyone tell me how do download gcc package for opensolaris manually? i am behind a firewall and it's not letting me download gcc package from the package manager thank you (3 Replies)
Discussion started by: holla4ni
3 Replies

4. Solaris

Installing gcc - recieve error message gcc : cannot execute

AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies

5. Red Hat

GCC version problem

I have a host PC and a target system . Host System -> gcc (3.2) Redhat linux kernel 2.4.20-8 , glibc 2.3 Target System -> gcc (4.1) Fedora linux kernel 2.6.18-1.2798.fc6, glibc 2.5 I would like to build test program that can be run on both systems --------------------------- ... (0 Replies)
Discussion started by: mugdha
0 Replies

6. UNIX for Dummies Questions & Answers

how to know the gcc version

Please someone can say me how to know the gcc version installed on my sunsolaris? Thanks (2 Replies)
Discussion started by: Minguccio75
2 Replies

7. UNIX for Dummies Questions & Answers

Problems Downloading and Installing Stuff

HI to everyone, I have been for a very long time in my life a GUI user, and now that i have to use a Solaris 5 terminal, i am not sure how to do some things: Downloading stuff from the internet: How do i do that? in a GUI you just click on the link and start downloading automatic, but i have... (4 Replies)
Discussion started by: sx3v1l_1n51de
4 Replies

8. Programming

Installing gcc

Hi all I'm trying to install the latest version of gcc but I keep getting this message on make; gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I./../zlib -I./../include -W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2 -c jartool.c jartool.c:234: getopt.h: No... (3 Replies)
Discussion started by: squeakywheel
3 Replies

9. UNIX for Dummies Questions & Answers

Downloading vs buying latest version of os

I am currently taking a Unix programming class in school, I want ot know which is more efficient and quicker, downloading the os or buying the os (4 Replies)
Discussion started by: lavonte
4 Replies

10. Programming

Help!(Installing GCC.)

(Installing GCC: Configuration) In the document of Installing GCC, there is a sentence I don't understand: " Second, when configuring a native system, either cc or gcc must be in your path or you must set CC in your environment before running configure. Otherwise the configuration scripts... (2 Replies)
Discussion started by: wwz
2 Replies
Login or Register to Ask a Question