LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 02-27-2009, 11:11 AM   #1
Paul_RH
LQ Newbie
 
Registered: Feb 2009
Posts: 6

Rep: Reputation: 0
g++ problem compiling Barry on RHEL


I am trying to compile barry http://www.netdirect.ca/software/packages/barry/ on RHEL 5.2. ./configure runs fine but when I try to compile I get the following error:

Code:
$ make
make  all-recursive
make[1]: Entering directory `/home/myhome/Desktop/barry-0.14'
Making all in .
make[2]: Entering directory `/home/myhome/Desktop/barry-0.14'
rm -f ./barry
ln -s ./src ./barry
make[2]: Leaving directory `/home/myhome/Desktop/barry-0.14'
Making all in src
make[2]: Entering directory `/home/myhome/Desktop/barry-0.14/src'
source='time.cc' object='time.lo' libtool=yes \
        DEPDIR=.deps depmode=none /bin/sh ../depcomp \
        /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.. -I/usr/include   -ansi -Wall -fno-strict-aliasing -g   -c -o time.lo time.cc
libtool: ignoring unknown tag CXX
 g++ -DHAVE_CONFIG_H -I.. -I/usr/include -ansi -Wall -fno-strict-aliasing -g -c time.cc  -fPIC -DPIC -o .libs/time.o
../libtool: line 1281: g++: command not found
make[2]: *** [time.lo] Error 1
make[2]: Leaving directory `/home/myhome/Desktop/barry-0.14/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/myhome/Desktop/barry-0.14'
make: *** [all] Error 2
$
My question is which package provides g++? I have both the 32bit and 64bit gcc packages installed as well as libstdc++.
 
Old 02-27-2009, 11:18 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,498

Rep: Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956
It should be gcc-c++.
 
Old 02-27-2009, 11:59 AM   #3
Paul_RH
LQ Newbie
 
Registered: Feb 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Hmmmm... that's interesting because when I search there is no gcc-g++ package. The only thing it comes is mingw32-gcc-c++ but of course that's a windows cross compiler.
Could there be something wrong with my installation?

Code:
$ yum search gcc-c++
Loading "rhnplugin" plugin
Loading "security" plugin
*Note* Red Hat Network repositories are not listed below. You must run this command as root to access RHN repositories.
RHN support will be disabled.
mingw32-gcc-c++.x86_64 : MinGW Windows cross-compiler for C++
$
 
Old 02-27-2009, 12:40 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
You realize that you have to pay RH a subscription to access their repos? Without a repo all yum is going to find is what is already installed on your machine.
 
Old 02-27-2009, 01:26 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,621

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
Paul_RH #3
Quote:
You must run this command as root to access RHN repositories
1) 'su' ..
2) # 'yum search gcc-c++'

....
 
Old 02-27-2009, 02:13 PM   #6
Paul_RH
LQ Newbie
 
Registered: Feb 2009
Posts: 6

Original Poster
Rep: Reputation: 0
We have paid for a subscription but I will do some googling and make sure that is set up right. I'm used to running Gentoo where one can search the repositories without being root. I ran yum as root and got the same single search result.

Code:
# yum search gcc-c++
Loading "rhnplugin" plugin
Loading "security" plugin
rpmfusion-nonfree-updates 100% |=========================| 2.4 kB    00:00     
epel                      100% |=========================| 2.1 kB    00:00     
rpmfusion-free-updates-te 100% |=========================| 2.4 kB    00:00     
rhel-x86_64-client-supple 100% |=========================| 1.3 kB    00:00     
rpmfusion-nonfree-updates 100% |=========================| 2.4 kB    00:00     
rhel-x86_64-client-5      100% |=========================| 1.3 kB    00:00     
rpmfusion-free-updates    100% |=========================| 2.4 kB    00:00     
mingw32-gcc-c++.x86_64 : MinGW Windows cross-compiler for C++
#
 
Old 02-27-2009, 04:29 PM   #7
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Since you have a subscription call RH and ask them for help, this is what you are actually paying for. I think there may be one more RHEL repo that you do not have enabled(RH proper not an addon like rpmfusion).

As su was mentioned earlier I thought I would clarify a little. su is root power with user path. su - (su space dash) is root power and root path. You are almost always better off using su - rather than su. If you get a file not found (or similar) try with the dash.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Compiling PHP on RHEL 5 64 bit Noodles25 Linux - Software 4 05-13-2010 05:06 PM
gfortran compiling problem, RHEL 4 The_Watcher Linux - Enterprise 1 08-22-2008 11:57 AM
install Thai fonts - thanks LQ and Barry Kauler pppaaarrrkkk Linux - Newbie 0 09-24-2007 06:37 PM
Compiling recent mysql version in RHEL tanveer Linux - Server 2 09-04-2007 08:10 AM
Will you ebay sellers please acknowledge Barry? darinbolson Puppy 27 10-19-2006 05:40 PM


All times are GMT -5. The time now is 10:29 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration