LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-10-2011, 09:32 AM   #1
luka11
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: 0
Install gcc-2.95.3 in ubuntu 10.04


hi,

I want to install gcc-2.95.3 in ubuntu 10.04, i really need the gcc-2.95.3 not an other version.
After downloading the package gcc-2.95.3.tar.gz, here the steps i follow:
tar zxvf gcc-2.95.3.tar.gz
creat an other folder: objdir
../gcc-2.95.3/configure --prefix=/opt/objdir --enable-shared --enablelanguages=c,c++ --enable-threads=posix
make bootstrap

in that step, i have the following error:
/usr/include/bits/stdio-lock.h:24: lowlevellock.h: No such file or directory
make[2]: *** [iogetline.o] Error 1
make[2]: Leaving directory `/opt/gcc/gcc-2.95.3/i686-pc-linux-gnu/libio'
make[1]: *** [all-target-libio] Error 2
make[1]: Leaving directory `/opt/gcc/gcc-2.95.3'
make: *** [bootstrap] Error 2


i try many other solutions but nothing seems works

please help
thanks
 
Old 05-10-2011, 12:37 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
Welcome to LQ.

The gcc-2.95 from Ubuntu Dapper should work :
http://packages.ubuntu.com/dapper/gcc-2.95
... Will provide /usr/bin/gcc-2.95

A g++-2.95 package will not work.
And : It is not possible to build gcc-2.95 on a contemporary Linux.
( You may be able to compile the binary gcc, but not g++ ).


Which application is requiring gcc-2.95 ? ?
There are most often other solutions. Like compiling on e.g. Debian Etch.
Or patch the application to use a later gcc/g++.

..
 
Old 07-11-2011, 05:41 PM   #3
nicolagiacobbe
LQ Newbie
 
Registered: Nov 2005
Distribution: gentoo/suse/mandriva/...
Posts: 2

Rep: Reputation: 0
Probably he is trying to do the same I am struggling with now: building and installing Ptolemy Classic. A real PITA.
 
Old 07-11-2011, 09:42 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,520

Rep: Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619
gcc 2 ??
on a new and modern system ??? good luck in that

you might on a 10 to 15 year old computer running RH5 or 7 from the same era
 
Old 07-12-2011, 12:10 AM   #5
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
I would suggest using a chroot jail with debian woody or etch. Ubuntu provide the "debbootstrap" utility in the main repository to create mini Ubuntu/Debian in Ubuntu. You can then change root to them and use those old versions. Some old woody repositories probably still exist on the web. If you can't find any, get the 6 or so Debian Woddy CDs and create your own local repository.

It is a very clean way to keep totally outdated, but necessary build system or runtime on a modern Linux base. It will take much more space (~300mb) but at least you can sleep in peace, it will work almost forever. I still have some chroot jails for apps that used to work under Linux 2.2 / RH7 installed on some of my clients servers. Even with kernel 2.6.3*, it still work.
 
Old 07-18-2011, 10:50 AM   #6
nicolagiacobbe
LQ Newbie
 
Registered: Nov 2005
Distribution: gentoo/suse/mandriva/...
Posts: 2

Rep: Reputation: 0
Good Idea

Thanks Elv13,
I'll give a look for sure. Seems a neat way to do what I needed.
 
Old 01-08-2017, 11:51 AM   #7
Mr486
Member
 
Registered: Nov 2013
Posts: 41

Rep: Reputation: 0
Just for the record I did have success building the gcc-2.95.3 c compiler on Ubuntu Trusty:

1. In Makefile, removed the reference to texinfo in:
SUBDIRS
ALL_MODULES
CROSS_CHECKED_MODULES
INSTALL_MODULES

2. I saved as makeinfo and made chmod+x the following into the directory /texinfo/makeinfo:

#!/bin/sh

#nothing to do here

2. In gcc/collect2.c line 1762, change the code to:
redir_handle = open(redir, O_WRONLY, O_TRUNC | O_CREAT );


3. I used the following configure line:
./configure --prefix=/attempt-gcc2953 --enable-languages=c

4. touch gcc/gcc.info
touch gcc/cpp.info

5. make
(at completion there will be some message about objc directory not empty)
then sudo make install - and you will have a working c compiler in directory /attempt-gcc2953
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install pyscard package on Ubuntu : error gcc failed with status 1 astrame Linux - Newbie 3 06-29-2009 04:57 PM
Install GCC 2.9 on Ubuntu 8.10 aznium Linux - Software 3 12-26-2008 10:37 AM
Ubuntu 7.10 how do you install GCC v3.4.6 compiler and use it cctv Linux - Newbie 5 03-25-2008 07:57 PM
how 2 install gcc and other sources on ubuntu? mab_123 Linux - Software 1 03-29-2005 06:11 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration