LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 03-22-2010, 06:56 AM   #1
biplabbijay
Member
 
Registered: Jul 2009
Posts: 81

Rep: Reputation: 15
how to install gcc version 3


hi i am using open suse 11.o with gcc 4.3.2. i am compileing a programme which requires libg2c. where can i find libg2c and how to install it ? can somebody explain me detail. thanks in advance
 
Old 03-22-2010, 09:10 AM   #2
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
For my openSuSE, gcc is installed in /usr/lib/gcc/i586-suse-linux.I think it is same for you also. If you install old version that will create conflict with the new version.
So you have to create with new folder name.
If you a tar file of gcc ver 3, manually specify the path to other location. i.e. for ex --prefix=/usr/lib/gcc3.

while compiling your program, run like this ./configure CC=gcc-3.0
good luck !
 
Old 03-22-2010, 09:29 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,625

Rep: Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529
Quote:
If you install old version that will create conflict with the new version
@ raju.mopidevi : That is not correct, you can have all the available
versions installed at the same time.

The usual solution for 'libg2c' is packages from CentOS 5.4
(( I can see, that the compat-gcc-34-3.4.6 etc. in my Suse 11.0
is from Fedora 10.))
The CentOS packages http://mirror.centos.org/centos/5.4/os/i386/CentOS/
→ libg2c →
http://mirror.centos.org/centos/5.4/...4.6-4.i386.rpm
> compat-libf2c-34 : provides ..
/usr/lib/libg2c.so.0
/usr/lib/libg2c.so.0.0.0
Please do : 1) su , 2) cd /usr/lib/
3) ln -s libg2c.so.0.0.0 libg2c.so
.....
.....

Last edited by knudfl; 03-22-2010 at 09:30 AM.
 
Old 03-22-2010, 09:40 AM   #4
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
@knudfl ; Thanks for your info. Acutally I posted the way that I followed.
To run a mmac protocol with NS2, I searched for google. I find this link-- Running multiple versions of gcc..

Even my /usr/lib/gcc has two versions 4.3 and 4.4
 
Old 03-23-2010, 01:17 AM   #5
biplabbijay
Member
 
Registered: Jul 2009
Posts: 81

Original Poster
Rep: Reputation: 15
Thanks all of you. knudfl you are the boss. I have installed successfully gcc version3 .it is present inside /usr/lib/gcc/i386-redhat-linux/3.4.6 and gcc4.3 is present inside /usr/lib/gcc/i586-suse-linux/4.3.1. also in usr/bin g77, g++, g++-4.3, gcc, gcc34, gcc-4.3 are present.I think gcc is a link to gcc-4.3 and g++ is link to g++-4.3.it has no g++-34.When i tried to install it it is asking for libstdc++ version 4.2.0. Where can i find it ?Now in a environment setup i set
Code:
export FORTRAN77="/usr/bin/g77"
export CFLIBSERV="-L/usr/lib/gcc/i386-redhat-linux/3.4.6 -lg2c"
after that when i tried to compile the programme (concom.c) it gives the error message

Code:
concom.c:1: sorry, unimplemented: 64-bit mode not compiled in
is there anything wrong in the installation ?

with regards Biplab.
 
Old 03-23-2010, 03:10 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,625

Rep: Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529
The compat-gcc-34-c++-3.4.6 :
You will need compat-libstdc++-5.0.7-(121.1) as a dependency.
# zypper se libstdc++
# zypper in compat-libstdc++

If you have any problems with the CentOS packages :
I used the Fedora 10 compat, same names, the minor version is 9
instead of 4 but may be identical ( dated later ) ..
http://download.fedora.redhat.com/pu...6/os/Packages/
.....
.....
Quote:
I tried to compile the programme (concom.c) it gives the error
Why would you compile concom.c ? ?
> > We talked about that 5 months ago > >
http://www.linuxquestions.org/questi...ble.-764705/#2

" 'concom.c' creates no objects, 'concom.c' is supposed to create
all the Makefiles. Please read the text in 'concom.c'. "

concom.c > > ""This is very simple C++ program which helps
to create make-files with the least troubles for user.""

I think, the command is ./concom.b
All the export commands are stipulated in the script 'setup2'.
'setup2' : Suggest : make a copy, e.g. setup3, edit it to your
requirements and run it :
sh (tcsh?) setup3
.....

Last edited by knudfl; 03-23-2010 at 03:19 AM.
 
Old 03-23-2010, 03:33 AM   #7
biplabbijay
Member
 
Registered: Jul 2009
Posts: 81

Original Poster
Rep: Reputation: 15
Thank you . You are right.What i am trying to explain is I have successfully done all the installations,compilations etc in slc4, slc5 (X86 -64) machines and it is working fine.But i want to do it in suse 11.0. It is creating alot of problems.when i type ./concom.b the above mentioned error comes out which i could not solve. Can you please help me what i should do ? Thank you again.
 
Old 03-23-2010, 06:46 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,625

Rep: Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529
" slc4, slc5 (X86 -64) " : Scientific Linux SL4C, SL5C ..

Is your Suse 11.0 install also x86_64 ? ?

.....

Last edited by knudfl; 03-23-2010 at 09:00 AM.
 
Old 03-23-2010, 11:58 PM   #9
biplabbijay
Member
 
Registered: Jul 2009
Posts: 81

Original Poster
Rep: Reputation: 15
no its a 32 bit machine, but some how i solved the problem.if i have any problem i will inform in the forum again. Thank you verymuch. Thanks all of you
 
  


Reply

Tags
libf2c, libg2c


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
how to install dual version gcc nilathinesh Linux - Software 4 10-06-2007 12:42 AM
Install or not install newest GCC version on Solaris 10. Zepiroth Solaris / OpenSolaris 6 05-26-2006 02:42 AM
How do I install an old version of gcc thorney Linux - Newbie 1 11-25-2005 12:10 AM
How to install old Gcc version ? vasilakis Linux - Newbie 5 06-10-2004 11:58 AM
Install older version of gcc s9902245 Linux - Newbie 1 09-16-2003 03:08 PM


All times are GMT -5. The time now is 03:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration