LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-12-2003, 08:20 PM   #1
mjkramer
Member
 
Registered: Sep 2003
Location: Orem, Ut
Distribution: Mandrake-9
Posts: 48

Rep: Reputation: 15
Installing gcc/cant install packages


I dont have a compiler to compile the sources for gcc. Know where I can get a binary copy?

Last edited by mjkramer; 10-12-2003 at 09:29 PM.
 
Old 10-12-2003, 08:33 PM   #2
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 46
Whatever distribution you have should come with a GCC package. Install it.

RPM:

rpm -Uvh /path/to/package.rpm
 
Old 10-12-2003, 09:09 PM   #3
mjkramer
Member
 
Registered: Sep 2003
Location: Orem, Ut
Distribution: Mandrake-9
Posts: 48

Original Poster
Rep: Reputation: 15
This is what I get when I do that:

error: cannot open Packages Index using db3 - Operation not permitted (1)
error: cannot open Packages database in /var/lib/rpm


I have 2 gcc related packages, didnt know which one to use so I tried the above entry on both and got the same errors. The two packages were:

gcc-cpp-------.--------.--------.-------.rpm
gcc2.96-cpp-2.-------.--------.-------.rpm

Last edited by mjkramer; 10-12-2003 at 09:14 PM.
 
Old 10-12-2003, 09:48 PM   #4
mjkramer
Member
 
Registered: Sep 2003
Location: Orem, Ut
Distribution: Mandrake-9
Posts: 48

Original Poster
Rep: Reputation: 15
Ok, it suddenly occured to me that I might be trying to do things that I cannot do under the user I was logged in with. So I tried installing those packages under the root user and it replied by saying that the packages were already installed.

However, when I use the rpm -q gcc command it can't find it! Nor can it be found when trying to compile source files! Whats the deal man? How do I find out where my compiler is located?


Last edited by mjkramer; 10-12-2003 at 09:50 PM.
 
Old 10-12-2003, 09:53 PM   #5
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
whereis gcc

or if you want more output

locate gcc
 
Old 10-12-2003, 10:10 PM   #6
mjkramer
Member
 
Registered: Sep 2003
Location: Orem, Ut
Distribution: Mandrake-9
Posts: 48

Original Poster
Rep: Reputation: 15
ohmygosh!

i think, i am supposed to type whereis 'path' gcc, right?

i typed, whereis '/' gcc. What do you think about that?

i get this big list of locations. How do I know which location is specific to the exact location of the compiler?

I assumed I should look in the location listed as:
/usr/src/RPM

when I went there, there was only one directory which was:
/RPMS
and this directory had many directories of gcc files ive seen along this challeging escapade of trying to download, locate, and run my compiler, such as:

athlon
i386
i486
i586
k6
noarch

all of these files are empty! What does that mean? I dont even know if Im on the right track. What should my next step be?


Last edited by mjkramer; 10-12-2003 at 10:28 PM.
 
  


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
copy constructor causing confusing error message. (gcc c++) qwijibow Programming 6 09-21-2005 08:34 PM
Looking for a GCC binary for Turbo Linux 10F Thaidog Linux - General 0 07-23-2005 09:42 PM
Installing binary packages GSX Linux - General 2 03-16-2005 02:04 AM
need binary gcc phoenix_wolf Linux - Software 1 12-02-2004 03:16 AM
creating a flat binary file with gcc wsimmons Programming 2 01-08-2002 11:33 AM


All times are GMT -5. The time now is 05:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration