LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 08-09-2008, 10:53 AM   #1
Mufasa
Member
 
Registered: Nov 2004
Posts: 101

Rep: Reputation: 15
x86_64: no gcc in Opensuse 10.3??


Hello all,

I am trying to install a package (using rpm). It then said that "gcc is needed" and that because it was not there, then this is a "Failed Dependency".

I did look and sure enough, "gcc" (which allowed me to compile C programs in the past) indeed does not exist.

Was this removed? Where do you get it from?

I am running an x86_64 system.

TIA

Last edited by Mufasa; 08-09-2008 at 12:13 PM.
 
Old 08-09-2008, 11:22 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,508

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
gcc and other development tools are not available in the Desktop CDs, but if you add internet source repositories it would be available. What repositories did you set, anyway?
 
Old 08-09-2008, 12:06 PM   #3
Mufasa
Member
 
Registered: Nov 2004
Posts: 101

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
gcc and other development tools are not available in the Desktop CDs, but if you add internet source repositories it would be available. What repositories did you set, anyway?
Hello and thanks for the response.

When I do rpm -qa | grep gcc, I get:

_______ BEGIN OUTPUT _____________
libgcc42-4.2.1_20070724-17
gcc42-4.2.1_20070724-17
gcc42-c++-4.2.1_20070724-17
gcc42-gij-4.2.1_20070724-26
gcc42-32bit-4.2.1_20070724-17
libgcc42-32bit-4.2.1_20070724-17
gcc-gij-4.2-24
_______ END OUTPUT _____________

When I go to /usr/bin and find "gcc-4.2"

If I do "file gcc-4.2", I get:
gcc-4.2: ELF 64-bit LSB (executable), x86_64 Version 1 (SYSV), for GNU/Linux 2.6.4 dynamically linked (uses shared libs), stripped

When I do a test compile with gcc-4.2
Ex: gcc-4.2 test.c -o testme <-- I get a "testme" executable that WORKS

So...

I try :
alias gcc='/usr/bin/gcc-4.2' <-- RESULT: doesn't work, still get error with RPM
ln -s /usr/bin/gcc-4.2 /usr/bin/gcc <-- RESULT: doesn't work, still get error with RPM

BTW, /usr/bin ~is~ in the $PATH.

Any hints on the problem are appreciated ...

TIA

Last edited by Mufasa; 08-09-2008 at 12:16 PM.
 
Old 08-09-2008, 12:08 PM   #4
Mufasa
Member
 
Registered: Nov 2004
Posts: 101

Original Poster
Rep: Reputation: 15
Hello again,

Just forgot to mention that YAST doesn't work either. I still get the error messags that "gcc" is required as a dependency ...

The package I am trying to install is:
orarun-1.90-21.24.x86_64.rpm

downloaded from :
ftp//ftp.novell.com/partners/oracle/sles-10

TIA

Last edited by Mufasa; 08-09-2008 at 12:12 PM.
 
Old 08-09-2008, 12:28 PM   #5
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,508

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
I'm on an OpenSuSE 10.3 box (32 bit), right now. I have the gcc command in /usr/bin which actually is a link to gcc-4.2:
Code:
ls -l lrwxrwxrwx 1 root root 7 2007-10-30 13:19 /usr/bin/gcc -> gcc-4.2
and it is provided by the gcc-4.2-24 package. Maybe the gcc installed on your system is broken. You can try to verify the integrity of the package using
Code:
rpm -V gcc
Also what is the output of the following command?
Code:
zypper info gcc
What if you try to uninstall gcc and reinstall it again? Does Yast complains about it?
 
Old 08-09-2008, 12:37 PM   #6
Mufasa
Member
 
Registered: Nov 2004
Posts: 101

Original Poster
Rep: Reputation: 15
Thanks for the response

My report is as follows:
1) rpm -V gcc:
package not installed


2) zypper info gcc:
* Reading repository OpenSUSE-10.3-OSS Gnome-10.3 cache
* Reading repository 'Download RPMS' cache
* Reading installed packages [100%]

package gcc not found


I installed OpenSuse 10.3. Are there problems like this with the distribution? I have been downloading items from this repository:
http://download.opensuse.org/distrib...s/suse/x86_64/

What files make up the "gcc"?

TIA

Last edited by Mufasa; 08-09-2008 at 01:01 PM.
 
Old 08-09-2008, 01:10 PM   #7
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,508

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Hmmm... maybe the rpm cache is damaged: if you have gcc-4.2 the package should have been installed, unless you've compiled from source. What is the output of:
Code:
rpm -qf /usr/bin/gcc-4.2
this should tell which package provides the executable. I don't know how to rebuild the rpm cache, if broken. Anyway, you should review and eventually add some repositories. The "OpenSUSE-10.3-OSS Gnome-10.3" does not provide gcc, nor the 'Download RPMS' as evidence of facts.

On my system I have the following:
Code:
$ zypper repos
# | Enabled | Refresh | Type   | Alias                                      | Name
--+---------+---------+--------+--------------------------------------------+-----------------------
1 | Yes     | Yes     | rpm-md | Packman-RPMs                               | Packman-RPMs
2 | No      | No      | yast2  | openSUSE-10.3-DVD 10.3                     | openSUSE-10.3-DVD 10.3
3 | Yes     | No      | yast2  | OpenSUSE_10.3_Non-oss_1                    | OpenSUSE 10.3 Non-oss
4 | Yes     | Yes     | rpm-md | OpenSUSE_10.3_Update_1                     | OpenSUSE 10.3 Update
5 | Yes     | No      | rpm-md | http://download.nvidia.com/opensuse/10.3_1 | NVIDIA Repository
6 | Yes     | No      | yast2  | OpenSUSE_10.3_Oss_1                        | OpenSUSE 10.3 Oss
I have disabled the installation DVD repo and added a OSS, a NON-OSS and an UPDATE repository. Also I have PACKMAN and the NVIDIA drivers repository. You can add new repos either using Yast --> Software --> Software Repository or through the command line using zypper addrepo (see man zypper for details).

Also check the OpenSuSE site too find out official and additional repositories and suitable mirrors.
 
Old 08-09-2008, 02:43 PM   #8
Mufasa
Member
 
Registered: Nov 2004
Posts: 101

Original Poster
Rep: Reputation: 15
Hi colucix,

Thanks for all your help

Taking a hint you made earlier, I went back to the distribution site for 10.3 Opensuse. I just downloaded everything with "gcc" in the filename :| Well, one of them had just regular "gcc" as a title. I installed it and all was working OK

Cheers!
Mufasa
 
Old 08-09-2008, 03:32 PM   #9
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,508

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Hi Mufasa, I'm glad to hear the good news!
 
  


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
OpenSuSE 10.3 failing to uninstall openSuSE installer from the windows boot Lucens Linux - Newbie 5 10-11-2008 08:08 AM
OpenSUSE 10.3 GCC/Make Installation Paradox Alset Linux - Software 2 05-10-2008 11:58 PM
gcc on opensuse 10.2 linuxmandrake Suse/Novell 1 09-09-2007 11:28 PM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare Suse/Novell 3 11-29-2004 02:13 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 12:07 AM


All times are GMT -5. The time now is 11: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