I 'm unable to compile my program in terminal

General support questions
Post Reply
Amjadhafiz
Posts: 1
Joined: 2018/07/17 12:16:09

I 'm unable to compile my program in terminal

Post by Amjadhafiz » 2018/07/17 12:24:10

I 'm unable to compile my program in terminal.this kind of massage show" bash gcc command not founded ".How can I solve this problem please help me.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: I 'm unable to compile my program in terminal

Post by avij » 2018/07/17 13:11:45

Try yum install gcc

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: I 'm unable to compile my program in terminal

Post by TrevorH » 2018/07/17 13:15:19

Which is a solution you will probably need to repeat several times for the other packages you need to do any sort of development - like make, flex, bison etc. Might be better off starting with yum group install "Development Tools"
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Whoever
Posts: 1361
Joined: 2013/09/06 03:12:10

Re: I 'm unable to compile my program in terminal

Post by Whoever » 2018/07/18 04:45:36

TrevorH wrote:
2018/07/17 13:15:19
Which is a solution you will probably need to repeat several times for the other packages you need to do any sort of development - like make, flex, bison etc. Might be better off starting with yum group install "Development Tools"

Shouldn't that be:

yum groupinstall "Development Tools"

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: I 'm unable to compile my program in terminal

Post by TrevorH » 2018/07/18 06:48:22

Oh, this is el6, yes, then it should. In el7 they changed the command, from `yum groupsomething` to `yum group something`
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply