Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 01-06-2007, 08:34 PM   #1 (permalink)
In The Zone
 
Join Date: Jul 2005
Posts: 363
Question Configuring GCC & G++ on FC6 x86_64


I installed FC 6 with default package selection, But G++ isn't working

though gcc -v display that it is configured for c,c++, java etc....But even a simple c hello program gives error while compiling...


also i am not able to use add/remove program....
I am kind of accustomed to Ubuntu's synaptic manager. What is the equivalent pakage manager in FC6...?

so all fedora guys can you help me how to configure gcc & g++,
dabster is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 01-06-2007, 09:11 PM   #2 (permalink)
1337 |)00|) \m/
 
kaustav_geek's Avatar
 
Join Date: Nov 2005
Location: Cyber Space
Posts: 472
Default Re: Configuring GCC & G++ on FC6 x86_64

The package manager in FC is Yum.... Type :
Code:
man yum
For details.

As for gcc and g++ on X86_64.... I have no clue. I guess you'll have to get u'r self a x86_64 gcc ver... Get an rpm from http://rpmfind.net/linux/RPM/fedora/...-6.x86_64.html or other similar sites and see if they work.
__________________
My Blog : www.vatsuak.blogspot.com
My DA page : www.burningsilver.deviantart.com

OK..ok..... Ads are bad.. ;)
kaustav_geek is offline  
Old 05-06-2007, 01:00 AM   #3 (permalink)
In The Zone
 
Join Date: Jul 2005
Posts: 363
Default Re: Configuring GCC & G++ on FC6 x86_64

okay so gcc is completely working , But what about g++....
debian based ubuntu had super package manager, Just typing apt-get install build-essentials installed all the dependent .deb's

How to make g++ work in FC6...?
dabster is offline  
Old 05-06-2007, 02:13 AM   #4 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Default Re: Configuring GCC & G++ on FC6 x86_64

as root,did u tried system-config-packages or in menu's package management.
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 05-06-2007, 05:11 PM   #5 (permalink)
In The Zone
 
Join Date: Jul 2005
Posts: 363
Default Re: Configuring GCC & G++ on FC6 x86_64

I tried the Add/Remove programs and it gives error and doesn't open...
It fails to refresh repository data, which I am astonished as to how can that be.
dabster is offline  
Old 06-06-2007, 02:50 AM   #6 (permalink)
El mooooo
 
eddie's Avatar
 
Join Date: Jan 2006
Location: India
Posts: 1,414
Default Re: Configuring GCC & G++ on FC6 x86_64

Would you now be giving us the exact errors you are facing or all of us should try and use our psychic powers to know them? Give us the exact errors my dear friend...else starting this thread is of no use to anyone.
__________________
Windows users shouldn't get to use the real computers. They know just enough to be dangerous.
eddie is offline  
Old 07-06-2007, 02:16 PM   #7 (permalink)
In The Zone
 
Join Date: Jul 2005
Posts: 363
Default Re: Configuring GCC & G++ on FC6 x86_64

I thought Any one of you wud tell me to just configure g++ on FC6, Anyways the Output is below.

[anurag@localhost cHello]$ cat cHello.cpp
#include<iostream>
using namespace std;
int main()
{
cout<<"It works";
return 0;
}
[anurag@localhost cHello]$ g++ cHello.cpp
bash: g++: command not found
[anurag@localhost cHello]$ gcc cHello.cpp
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
[anurag@localhost cHello]$

Though I can compile the simple c Program.
dabster is offline  
Old 07-06-2007, 08:07 PM   #8 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Smile

First just check if g++ is already there:
Code:
:~$whereis g++
I think u've yet to configure internet or YUM in fedora:
the rpm for g++ is called as gcc-c++-4.1.1-30.i386.rpm
so try it manually
remember u have to manually install dependencies.go to fedora repo and download g++ .then in a terminal as root(su -) install as rpm -Uvh g++.xx.rpm.then if some deps are not found it errs.then check the o/p for which rpms are needed.again go to fedora repo.download dependencies and lastly finish installation.
Yes.if you got a FC6 DVD-search for g++.rpm -it can save time
alternately use ur internet connection.configure YUM synonymous to Windows OS's Windows Update service.
http://www.fedorafaq.org/
http://www.ucs.ed.ac.uk/fmd/unix/pla...um_config.html
And one more info there is a gui editor for c/cpp codes in Linux called Anjuta.

ps:did u got internet connxn working in fedora?
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org

Last edited by praka123; 07-06-2007 at 08:13 PM.
praka123 is offline  
Old 08-06-2007, 04:26 PM   #9 (permalink)
In The Zone
 
Join Date: Jul 2005
Posts: 363
Default Re: Configuring GCC & G++ on FC6 x86_64

I had tried earlier "locate g++" and it wasn't there. I have the FC6 x86_64 DVD will look on that and install g++ RPM, But FC doesn't have any good Package manager....? Ubuntu has Synaptic and Suse has YAST which are excellent, specially the latter one.

What do we have on FC...?
will try figuring YUM...
Also I wasn't able to configure dataone using "setup-adsl" though I saw lots of posts here.
dabster is offline  
Old 08-06-2007, 06:13 PM   #10 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: Configuring GCC & G++ on FC6 x86_64

yum, apt-rpm and smart are 3 package managers for Fedora that I know of.
mehulved is offline  
Old 18-06-2007, 07:52 PM   #11 (permalink)
In The Zone
 
Join Date: Jul 2005
Posts: 363
Default Re: Configuring GCC & G++ on FC6 x86_64

I get message "unable to refresh repositories: core" due to no network connection and then it fails, similarily some message comes for yum and it doesn't work.
can't I just control the packages that I have on DVD thru any package manager.

Finally I searched packages on DVD gcc-c++ and libstdc++-devel and installed directly, now g++ is working. Its an irony that during installation i opted for development tools but g++ didn't get installed by default.
dabster is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Core x86_64 purujitb Open Source 7 22-04-2007 11:36 PM
Zod-dvd-x86_64 on Pentium Dual core sam_1710 Open Source 1 11-03-2007 12:33 PM
Configuring UPS in Windows XP prasad_den PC Components / Configurations 1 26-11-2005 07:19 PM
fedora core2 x86_64 on amd64 there_is_no_spoon CPU / Motherboards 1 18-10-2004 04:51 PM

 
Latest Threads
- by Sujeet
- by soumya
- by clmlbx
- by Charan
- by reddick

Advertisement




All times are GMT +5.5. The time now is 12:37 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2