LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-28-2014, 02:20 PM   #1
Akashpatel1234
LQ Newbie
 
Registered: Aug 2014
Posts: 20

Rep: Reputation: Disabled
Unhappy installing GCC that supports c99 standard


Hi,

I am very (very) new in linux world.
I have Fedora 20 and want to install the C compiler that support C99 standards.

Please suggest me site to download c compiler also help me installing it coz I dont know how to install the s/w in linux.

actully trying to install Metis (Graph partitioner) in fedora 20

Following are the instration given in Metis install file.

These are some preliminary instructions for the 5.0 release of METIS.

1. You need to have a C compiler that supports the C99 standard.
Gcc works just fine, but I have not tested it on many other architectures
(any feedback/patches for different architectures are welcomed)

2. You need to have GNU make and CMake 2.8 (http://www.cmake.org/) installed.


Please help

Last edited by Akashpatel1234; 08-28-2014 at 03:12 PM.
 
Old 08-28-2014, 04:01 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

in most linux distributions you use a package manager to install software. For example on Fedora to install the GNU compiler collection (including a C compiler):
Code:
yum install gcc
To install cmake
Code:
yum install cmake
If you don't know the correct name you can use "yum search" to provide a list of packages and descriptions. Eg
Code:
yum search make
Read yum documentations/tutorials for more information.

Evo2.
 
1 members found this post helpful.
Old 08-28-2014, 04:22 PM   #3
ventsyv
Member
 
Registered: Apr 2006
Posts: 57

Rep: Reputation: 3
In addition you might want to install geany - nice, light weight editor with a GUI that's designed for programming.
 
1 members found this post helpful.
Old 08-28-2014, 04:41 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

I just noticed that you can probably even install metis directly with yum. Try:
Code:
yum search metis
Then if it is there:
Code:
yum install metis
No need to compile and install from source.

Evo2.
 
1 members found this post helpful.
Old 08-29-2014, 03:34 AM   #5
Akashpatel1234
LQ Newbie
 
Registered: Aug 2014
Posts: 20

Original Poster
Rep: Reputation: Disabled
Thank you all for prompt reply.

when I am trying to install gcc via


#yum install gcc


I am getting following error


Loaded plugins: langpacks, refresh-packagekit
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).
--> Running transaction check
---> Package gcc.x86_64 0:4.8.3-1.fc20 will be installed
--> Processing Dependency: cpp = 4.8.3-1.fc20 for package: gcc-4.8.3-1.fc20.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.3-1.fc20.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.3-1.fc20.x86_64
--> Running transaction check
---> Package cpp.x86_64 0:4.8.3-1.fc20 will be installed
---> Package glibc-devel.x86_64 0:2.18-14.fc20 will be installed
--> Processing Dependency: glibc-headers = 2.18-14.fc20 for package: glibc-devel-2.18-14.fc20.x86_64
--> Processing Dependency: glibc = 2.18-14.fc20 for package: glibc-devel-2.18-14.fc20.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.18-14.fc20.x86_64
---> Package libmpc.x86_64 0:1.0.1-2.fc20 will be installed
--> Running transaction check
---> Package glibc.x86_64 0:2.18-11.fc20 will be updated
--> Processing Dependency: glibc = 2.18-11.fc20 for package: glibc-common-2.18-11.fc20.x86_64
---> Package glibc.x86_64 0:2.18-12.fc20 will be updated
--> Processing Dependency: glibc = 2.18-12.fc20 for package: glibc-common-2.18-12.fc20.x86_64
---> Package glibc.x86_64 0:2.18-14.fc20 will be an update
---> Package glibc-headers.x86_64 0:2.18-14.fc20 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.18-14.fc20.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.18-14.fc20.x86_64
--> Running transaction check
---> Package glibc.i686 0:2.18-11.fc20 will be installed
--> Processing Dependency: glibc-common = 2.18-11.fc20 for package: glibc-2.18-11.fc20.i686
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.18-11.fc20.i686
--> Processing Dependency: libfreebl3.so for package: glibc-2.18-11.fc20.i686
---> Package glibc-common.x86_64 0:2.18-11.fc20 will be updated
--> Processing Dependency: glibc-common = 2.18-11.fc20 for package: glibc-2.18-11.fc20.i686
---> Package glibc-common.x86_64 0:2.18-12.fc20 will be updated
---> Package glibc-common.x86_64 0:2.18-14.fc20 will be an update
---> Package kernel-headers.x86_64 0:3.15.10-200.fc20 will be installed
--> Running transaction check
---> Package glibc.i686 0:2.18-11.fc20 will be installed
--> Processing Dependency: glibc-common = 2.18-11.fc20 for package: glibc-2.18-11.fc20.i686
---> Package glibc-common.x86_64 0:2.18-11.fc20 will be updated
--> Processing Dependency: glibc-common = 2.18-11.fc20 for package: glibc-2.18-11.fc20.i686
---> Package nss-softokn-freebl.x86_64 0:3.15.2-2.fc20 will be updated
---> Package nss-softokn-freebl.x86_64 0:3.16.2-1.fc20 will be updated
---> Package nss-softokn-freebl.i686 0:3.17.0-1.fc20 will be installed
---> Package nss-softokn-freebl.x86_64 0:3.17.0-1.fc20 will be an update
--> Finished Dependency Resolution

Error: Package: glibc-2.18-11.fc20.i686 (fedora)
Requires: glibc-common = 2.18-11.fc20
Removing: glibc-common-2.18-11.fc20.x86_64 (@koji-override-0/$releasever)
glibc-common = 2.18-11.fc20
Updated By: glibc-common-2.18-14.fc20.x86_64 (updates)
glibc-common = 2.18-14.fc20
Removing: glibc-common-2.18-12.fc20.x86_64 (installed)
glibc-common = 2.18-12.fc20
Updated By: glibc-common-2.18-14.fc20.x86_64 (updates)
glibc-common = 2.18-14.fc20

You could try using --skip-broken to work around the problem
** Found 5 pre-existing rpmdb problem(s), 'yum check' output follows:
glibc-2.18-12.fc20.x86_64 is a duplicate with glibc-2.18-11.fc20.x86_64
glibc-common-2.18-12.fc20.x86_64 is a duplicate with glibc-common-2.18-11.fc20.x86_64
libgcc-4.8.3-1.fc20.x86_64 is a duplicate with libgcc-4.8.2-1.fc20.x86_64
nss-softokn-freebl-3.16.2-1.fc20.x86_64 is a duplicate with nss-softokn-freebl-3.15.2-2.fc20.x86_64
tzdata-2014f-1.fc20.noarch is a duplicate with tzdata-2013h-1.fc20.noarch

Cmake installed properly though

Please help.
 
Old 08-29-2014, 08:34 AM   #6
ventsyv
Member
 
Registered: Apr 2006
Posts: 57

Rep: Reputation: 3
Try doing what yum tells you to do:

Quote:
Loaded plugins: langpacks, refresh-packagekit
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).
 
1 members found this post helpful.
Old 08-31-2014, 01:47 PM   #7
Akashpatel1234
LQ Newbie
 
Registered: Aug 2014
Posts: 20

Original Poster
Rep: Reputation: Disabled
Smile

Thank you all for help!!!!!!
Its working now.
 
  


Reply



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
What versions of g++ and gcc come standard with RHEL 5.3 Mark8812 Linux - General 1 02-23-2011 03:38 PM
[SOLVED] 5.5 GCC-4.5.1 - Pass 1 - c99 mode compilation error - openSUSE (host) linuxquestions2010 Linux From Scratch 5 11-17-2010 07:58 AM
How to let MAKE invoke gcc with "-std=c99" cryincold Programming 16 03-10-2008 09:31 AM
Standard function problems with gcc lgi123 Programming 2 06-23-2006 03:17 PM
error in gcc / g++ standard file maheshbmane Programming 6 09-02-2005 08:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:56 PM.

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
Open Source Consulting | Domain Registration