LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-27-2013, 10:50 AM   #1
aliga8er
LQ Newbie
 
Registered: Feb 2013
Posts: 17

Rep: Reputation: Disabled
how to use gcc-4.1.2 in opensuse 12.1


Hello

I am trying to compile shore-mt storage manager on opensuse 12.1. The problem is when i try to compile it with updated version of gcc i.e. 4.6 its gives an error that this version has optimizer bugs use gcc ver 4.1.2.
Ok then I downloaded repository of gcc-4.1.2 from the following link
http://download.opensuse.org/repositories/ and used "zypper in packagename.rpm" command, but when i tried to compile it gave me an error that "no acceptable c compiler found in $path".
Eventhough I can see gcc-4.1 directory in /usr/bin. but gcc -v does not work

Any suggestions?
 
Old 02-27-2013, 11:23 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

# zypper in gcc-c++ : Then you have a working gcc version 4.7.x.
Other default : # zypper in gcc33-c++

gcc version 4.1.2 ftp://ftp5.gwdg.de/pub/opensuse/repo...cc/SLE-10_SDK/
> gcc41-c++ . Depends on : cpp41 libmudflap41 gcc41 libstdc++41-devel

$ gcc -v : Please do : gcc-4.1 -v


-

Last edited by knudfl; 02-27-2013 at 11:31 AM.
 
Old 02-27-2013, 12:15 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Suse 12.1, x86_64 : shore-sm-6.0.2.

cd <Directory with cpp41-4.1.2_20070115-32.1.x86_64.rpm
gcc41-4.1.2_20070115-32.1.x86_64.rpm
gcc41-c++-4.1.2_20070115-32.1.x86_64.rpm
libmudflap41-4.1.2_20070115-32.1.x86_64.rpm
libstdc++41-devel-4.1.2_20070115-32.1.x86_64.rpm>

# rpm -Uvh * : OK, g++-4.1 works.

$ cd shore-sm-6.0.2/ && export CC=gcc-4.1 CXX=g++-4.1 && ./configure
$ make : No errors.

-
 
Old 02-27-2013, 09:01 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
for 12.1 USE the opensuse BUILD SERVICE!!!!!
http://software.opensuse.org/121/en
there are versions there

DO NOT use random rpms from old versions of suse !
yes they might work but...

search for gcc41
http://software.opensuse.org/search?...upported=false


gcc 4.1 for opensuse 12.1
http://software.opensuse.org/package/gcc41
-- click on "show other versions" if your 12.1 install is not auto detected

Last edited by John VV; 02-27-2013 at 09:03 PM.
 
Old 02-28-2013, 04:52 AM   #5
aliga8er
LQ Newbie
 
Registered: Feb 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thank you for the prompt reply and for the help knudfl & John VV

Its compiling without giving errors now, but the problem now is during compilation it gets stuck. I think the problem is that I am working on virtualOS of opensuse. Eventhough my hardware configuration is ok (core-i5 2nd gen, 4gb memory).

Thank you once again. I will ask for your help if the problem persists.
 
Old 02-28-2013, 01:25 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
well you can build the source
but there is already a built version in the OBS
mind you i have never liked "one click "

i install the repo that programs are in
this one is " devel:gcc"
use the yast "install and remove programs" and in the gui add the repo
http://download.opensuse.org/reposit...openSUSE_12.1/
or
in yast2 use the Software Repo GUI
 
1 members found this post helpful.
  


Reply

Tags
gcc41-c++, shore-sm



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
[SOLVED] Install of gcc-4.1.2 on Opensuse igor012 Linux - Software 3 04-03-2012 05:05 AM
Installing i586-mingw32msvc-gcc on openSUSE anon02 Linux - Software 2 11-05-2011 03:23 PM
Installing Mingw32-gcc on openSUSE 11.4 anon02 SUSE / openSUSE 3 11-04-2011 03:31 PM
no gcc in Opensuse 10.3?? Mufasa Linux - Software 8 08-09-2008 03:32 PM
gcc on opensuse 10.2 linuxmandrake SUSE / openSUSE 1 09-09-2007 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:04 AM.

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