Fedora Linux Support Community & Resources Center
Old 6th June 2012, 12:59 AM
jackBryan Offline
Registered User
Join Date: Jun 2012
Location: USA
Posts: 1
Need help for installing GCC4.7 on Linux redhat.

I am trying to include atomic in my C++ pthread program.

#include <atomic>
But, i got error:

error: atomic: No such file or directory

I tried :

#include <asm/atomic>
#include <atomic.h>
#include <linux/atomic>
#include <util/atomic>
#include <stdcatomic>
#include <catomic>
No one works.

My gcc is gcc version 4.1.2 20080704 (Red Hat 4.1.2-52)

The post :

#include <cstdatomic> "no such file" in ubuntu

std::atomic support in g++ 4.4.3

do not work either.

And #include <thread> also got : No such file or directory

So, I am trying to install GCC 4.7 on Linux, but in "make check", I got error,

autogen -T /remote/mypath/gcc_4_7_2012_5_28/gcc_4_7_new_2012_5_29/trunk/fixincludes/check.tpl , remote/mypath/gcc_4_7_2012_5_28/gcc_4_7_new_2012_5_29/trunk/fixincludes/inclhack.def ,

make[2]: execvp: autogen: Permission denied, then I tried to install autogen, but
got: I need to install guile-devel, then when I installed guile-2.0.5-2.1.src.rpm ,

I got rpm -ivh guile-2.0.5-2.1.src.rpm, warning: guile-2.0.5-2.1.src.rpm: Header V3
RSA/SHA256 signature: NOKEY, key ID 3dbdc284

error: cannot write to %sourcedir /usr/src/redhat/SOURCES, I cannot get root

Any help will be appreciated. thanks !

Reply With Quote
Old 6th June 2012, 03:02 AM
bob Offline
Administrator (yeah, back again)
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 72
Posts: 23,213
Re: Need help for installing GCC4.7 on Linux redhat.

Moved to Linux Chat (Red Hat or maybe Ubuntu post - well, it isn't Fedora, apparently)
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651

Don't use any of my solutions on working computers or near small children.
Reply With Quote

gcc47, installing, linux, redhat

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing gcc4.3.0 without root daviddoria Linux Chat 3 6th July 2008 02:00 PM
Help Installing RedHat 9 Linux Paddyman Using Fedora 5 2nd March 2007 08:32 AM
I need help installing my network adapter on redhat linux 8.0 WvEagle Hardware & Laptops 3 5th December 2005 09:17 PM

Current GMT-time: 09:51 (Thursday, 17-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

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

FedoraForum is Powered by RedHat