UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old April 30th, 2004, 03:20 AM
skguha13 skguha13 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 112 skguha13 User rank is Lance Corporal (50 - 100 Reputation Level)skguha13 User rank is Lance Corporal (50 - 100 Reputation Level)skguha13 User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 8 h 8 m 58 sec
Reputation Power: 5
Help installing gcc

Hi,
I am new to linux and have just installed fedora 9 version a few days back.

I was trying to install gcc and i am really confused by the document Install

Quote:
To configure GCC:

% mkdir objdir
% cd objdir
% srcdir/configure [options] [target]


Actually i am not sure what is the option and the target here. Also what is the best location for objdir ??

I tried following the instructions and ended up with the following error
Quote:
[root@beenb eng11104]# /home/eng11104/gcc*/configure
Configuring for a i686-pc-linux-gnuoldld host.
Created "Makefile" in /home/eng11104 using "mt-frag"
/home/eng11104/gcc-3.3.3/configure: line 8: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.


Can someone pls tell me what i need to do to install gcc properly because i need it to install some c programs. Also is there any other compiler (for linux) which can compile C programs??

Any help will be greatly appreciated.

Thanks...

Reply With Quote
  #2  
Old May 3rd, 2004, 05:12 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,337 Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 13 h 7 m 38 sec
Reputation Power: 674
You're following commands to compile gcc from source. You can't do that if you don't have a C compiler installed to start with .

The only option for you is to install the binaries for gcc (say from an rpm file). Then you can use it to recompile a later version of gcc, if necessary.

1. Go to http://www.rpmfind.net/ and search for gcc rpms and pick the one that you want to use (I prefer latest stable version).

2. Download the relevant RPM file(s) to your hard disk

3. Install the rpm(s) using rpm -ivh *.rpm

Alternatively, if you have the Fedora CDs, you can also install the packages from the CD.
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month

Reply With Quote
  #3  
Old May 4th, 2004, 02:29 AM
skguha13 skguha13 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 112 skguha13 User rank is Lance Corporal (50 - 100 Reputation Level)skguha13 User rank is Lance Corporal (50 - 100 Reputation Level)skguha13 User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 8 h 8 m 58 sec
Reputation Power: 5
Hi,
Thanks for clarifying. I have installed gcc rpm from rpmfind.net.

Now the problem is
Quote:
[eng11104@beenb eng11104]$ rpm -q gcc
gcc-3.3.3-2.0.0
[eng11104@beenb eng11104]$ gcc -o file file.c
bash: gcc: command not found


So what shud i do?? I desperately need to compile some C programs.

Reply With Quote
  #4  
Old May 4th, 2004, 02:47 AM
skguha13 skguha13 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 112 skguha13 User rank is Lance Corporal (50 - 100 Reputation Level)skguha13 User rank is Lance Corporal (50 - 100 Reputation Level)skguha13 User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 8 h 8 m 58 sec
Reputation Power: 5
Exclamation

Hi,
Do i need to set the path or something to make gcc work. If so how do i go about setting the path? Is the path a sort of a link which lets the comp know what to do when i type gcc ??

Any help will be greatly appreciated.

Thanks...

Reply With Quote
  #5  
Old May 5th, 2004, 12:27 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,337 Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level)Scorpions4ever User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 13 h 7 m 38 sec
Reputation Power: 674
Try doing a whereis gcc and/or a find / -name gcc to see where it is installed and then try calling it explicitly by path name. Also, some shells (such as tcsh) don't see new binaries in the path immediately (you have to run rehash before the shell will find it).

Reply With Quote
  #6  
Old June 2nd, 2004, 12:19 AM
ayie ayie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 ayie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question

i got an error while try to install gcc that i get from www.rpmfind.net

[root@fedora root]# rpm -ivh gcc-3.3.3-7.i386.rpm
warning: gcc-3.3.3-7.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
binutils >= 2.14.90.0.4-4 is needed by gcc-3.3.3-7
cpp = 3.3.3-7 is needed by gcc-3.3.3-7
glibc-devel >= 2.2.90-12 is needed by gcc-3.3.3-7
libgcc >= 3.3.3-7 is needed by gcc-3.3.3-7

my server is :
Linux fedora 2.4.24_20040521113115e-2um #5 Fri May 21 11:44:35 PDT 2004 i686 i686 i386 GNU/Linux

what file should i use either i686 or i386 or both is same ???

Reply With Quote
  #7  
Old June 2nd, 2004, 12:41 AM
ayie ayie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 ayie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[root@fedora root]# rpm -ivh gcc-3.3.3-7.src.rpm
warning: gcc-3.3.3-7.src.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
1:gcc ########################################### [100%]

i install gcc for Fedora Core Development Sources, but when i try to install for Fedora Core Development for i386 it still got error
[root@fedora root]# rpm -ivh gcc-3.3.2-1.i386.rpm
warning: gcc-3.3.2-1.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
binutils >= 2.14.90.0.4-4 is needed by gcc-3.3.2-1
cpp = 3.3.2-1 is needed by gcc-3.3.2-1
glibc-devel >= 2.2.90-12 is needed by gcc-3.3.2-1


how to install this 3 file ???

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Help installing gcc


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway