Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Need to Install C++ on LINUX

JhilFeb 26 2017 — edited Feb 27 2017

Dear Experts ,

I want to install C++ on LINUX machine.

To get all dependencies  related to c++ , can i go for yum ?

# uname -a

Linux AUSDEV-1.COM 2.6.18-194.el5 #1 SMP Mon Mar 29 20:06:41 EDT 2010 i686 i686 i386 GNU/Linux

# rpm -qa | grep gcc

compat-libgcc-296-2.96-138

compat-gcc-34-g77-3.4.6-4

libgcc-4.1.2-48.el5

compat-gcc-34-c++-3.4.6-4

gcc-java-4.1.2-48.el5

compat-gcc-34-3.4.6-4

gcc-4.1.2-48.el5

# gcc --version

gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)

Copyright (C) 2006 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# whereis gcc

gcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz

# yum search gcc

Loaded plugins: security

Existing lock /var/run/yum.pid: another copy is running as pid 5232.

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory :  13 M RSS ( 24 MB VSZ)

    Started: Sun Feb 26 20:27:07 2017 - 00:52 ago

    State  : Uninteruptable, pid: 5232

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory :  13 M RSS ( 24 MB VSZ)

    Started: Sun Feb 26 20:27:07 2017 - 00:54 ago

    State  : Uninteruptable, pid: 5232

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory :  13 M RSS ( 24 MB VSZ)

    Started: Sun Feb 26 20:27:07 2017 - 00:56 ago

    State  : Uninteruptable, pid: 5232

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory :  13 M RSS ( 24 MB VSZ)

    Started: Sun Feb 26 20:27:07 2017 - 00:58 ago

    State  : Uninteruptable, pid: 5232

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory :  13 M RSS ( 24 MB VSZ)

    Started: Sun Feb 26 20:27:07 2017 - 01:00 ago

    State  : Uninteruptable, pid: 5232

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory :  13 M RSS ( 24 MB VSZ)

    Started: Sun Feb 26 20:27:07 2017 - 01:02 ago

    State  : Uninteruptable, pid: 5232

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory :  13 M RSS ( 24 MB VSZ)

    Started: Sun Feb 26 20:27:07 2017 - 01:04 ago

    State  : Uninteruptable, pid: 5232

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory :  13 M RSS ( 24 MB VSZ)

    Started: Sun Feb 26 20:27:07 2017 - 01:06 ago

    State  : Uninteruptable, pid: 5232

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory :  13 M RSS ( 24 MB VSZ)

    Started: Sun Feb 26 20:27:07 2017 - 01:08 ago

    State  : Uninteruptable, pid: 5232

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory :  13 M RSS ( 24 MB VSZ)

    Started: Sun Feb 26 20:27:07 2017 - 01:10 ago

    State  : Uninteruptable, pid: 5232

Another app is currently holding the yum lock; waiting for it to exit...

# ps  -ef | grep yum

root      5245  5074  0 20:27 pts/2    00:00:00 /usr/bin/python /usr/bin/yum search gcc

root      5266  4712  0 20:29 pts/1    00:00:00 grep yum

This post has been answered by Alex-D on Feb 27 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 27 2017
Added on Feb 26 2017
16 comments
2,949 views