Frank_Rizzo

msg:4129677 | 11:17 am on May 9, 2010 (gmt 0) |
Have you tried installing via yum? First see what is already installed yum list gcc* then just yum the package that is missing or try yum install gcc* That may install other things such as dependencies so just check the list before you press Y.
|
dhardisty

msg:4129740 | 3:31 pm on May 9, 2010 (gmt 0) |
Thanks for the reply. I tried yum already (this turned up very often when I searched other forums). Here's the result:
-bash: yum: command not found So, sadly, it looks like yum isn't available.
|
Frank_Rizzo

msg:4129753 | 4:16 pm on May 9, 2010 (gmt 0) |
That makes it a bit more tricky. You could either install yum from rpm and then use yum to install gcc-? or go back to installing gcc-? from source. I notice you are using redhat 4.1. That could be a bit tricky. Are you sure the version you downloaded was compatible with the linux install? The error message you state seems pretty common according to google. Would need to see the full list of errors before the configure: error to see what is breaking it.
|
dhardisty

msg:4129782 | 6:03 pm on May 9, 2010 (gmt 0) |
Thanks again for your help. I just tried to install yum. Python is version 2.2.3, so that means we need yum version 2.0.X. I followed the instructions here: < forum link removed >[/1 Everything went fine until executing make, which produced a bunch of errors:
[root@#*$!X yum-2.0.7]# make for subdir in bin etc docs po ; do \ make -C $subdir ; \ done make[1]: Entering directory `/root/yum/yum-2.0.7/bin' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/yum/yum-2.0.7/bin' make[1]: Entering directory `/root/yum/yum-2.0.7/etc' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/yum/yum-2.0.7/etc' make[1]: Entering directory `/root/yum/yum-2.0.7/docs' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/yum/yum-2.0.7/docs' make[1]: Entering directory `/root/yum/yum-2.0.7/po' for cat in cs.po es.po ru.po uk.po; do \ lang=`basename $cat .po`; \ if msgmerge -v $lang.po yum.pot > $lang.pot ; then \ mv -f $lang.pot $lang.po ; \ echo "msgmerge -v of $lang succeeded" ; \ else \ echo "msgmerge -v of $lang failed" ; \ rm -f $lang.pot ; \ fi \ done /bin/sh: line 1: msgmerge: command not found msgmerge -v of cs failed /bin/sh: line 1: msgmerge: command not found msgmerge -v of es failed /bin/sh: line 1: msgmerge: command not found msgmerge -v of ru failed /bin/sh: line 1: msgmerge: command not found msgmerge -v of uk failed msgfmt --statistics --verbose -o cs.mo cs.po make[1]: msgfmt: Command not found make[1]: *** [cs.mo] Error 127 make[1]: Leaving directory `/root/yum/yum-2.0.7/po' make: *** [all] Error 2
Are you sure the version you downloaded was compatible with the linux install? |
| No, I'm not sure, nor do I know how to find out what the correct version of g++ would be for my linux install. Do you know how I can find out what the right version is? Would need to see the full list of errors before the configure: error to see what is breaking it. |
| There aren't any errors that I know of before the configure. Here's what I did to attempt to install gcc-g++:
[root@#*$!X root]# ls gcc-4.4.4 gcc-g++-4.4.tar.gz yum [root@#*$!X root]# cd gcc-4.4.4 [root@#*$!X gcc-4.4.4]# ls gcc libstdc++-v3 [root@#*$!X gcc-4.4.4]# cd libstdc++-v3/ [root@#*$!X libstdc++-v3]# ls ChangeLog ChangeLog-2004 acinclude.m4 crossconfig.m4 scripts ChangeLog-1998 ChangeLog-2005 aclocal.m4 doc src ChangeLog-1999 ChangeLog-2006 config fragment.am testsuite ChangeLog-2000 ChangeLog-2007 config.h.in include ChangeLog-2001 Makefile.am configure libsupc++ ChangeLog-2002 Makefile.in configure.ac linkage.m4 ChangeLog-2003 README configure.host po [root@yankback libstdc++-v3]# ./configure configure: error: cannot find install-sh or install.sh in . ./.. ./../.. [root@#*$!X libstdc++-v3]#
Thanks! [1][edited by: tedster at 12:58 am (utc) on May 11, 2010]
|
dhardisty

msg:4129784 | 6:06 pm on May 9, 2010 (gmt 0) |
Also, note that when I browse to the gcc directory, there isn't a configure file:
[root@#*$!X root]# ls gcc-4.4.4 gcc-g++-4.4.tar.gz yum [root@#*$!X root]# cd gcc-4.4.4/ [root@#*$!X gcc-4.4.4]# ls gcc libstdc++-v3 [root@#*$!X gcc-4.4.4]# cd gcc [root@#*$!X gcc]# ls cp [root@#*$!X gcc]# cd cp [root@#*$!X cp]# ls ChangeLog ChangeLog-2008 cvt.c method.c ChangeLog-1993 ChangeLog.ptr cxx-pretty-print.c name-lookup.c ChangeLog-1994 ChangeLog.tree-ssa cxx-pretty-print.h name-lookup.h ChangeLog-1995 Make-lang.in decl.c operators.def ChangeLog-1996 NEWS decl.h optimize.c ChangeLog-1997 call.c decl2.c parser.c ChangeLog-1998 cfns.gperf dump.c pt.c ChangeLog-1999 cfns.h error.c ptree.c ChangeLog-2000 class.c except.c repo.c ChangeLog-2001 config-lang.in expr.c rtti.c ChangeLog-2002 cp-gimplify.c friend.c search.c ChangeLog-2003 cp-lang.c g++spec.c semantics.c ChangeLog-2004 cp-objcp-common.c init.c tree.c ChangeLog-2005 cp-objcp-common.h lang-specs.h typeck.c ChangeLog-2006 cp-tree.def lex.c typeck2.c ChangeLog-2007 cp-tree.h mangle.c [root@#*$!X cp]#
|
graeme_p

msg:4130007 | 7:32 am on May 10, 2010 (gmt 0) |
frank's suggest was to install yum from an rpm, like this: [phy.duke.edu ] Is there any reason you cannot install from RPM? There are lots of instructions on the web for doing this, but you will have to search a bit for current download sites for yum 2.0 and instructions in initial configuration.
|
dhardisty

msg:4130174 | 3:15 pm on May 10, 2010 (gmt 0) |
Got g++ working! I found the appropriate version of gcc-c++ for my system: 3.3.2. I then found the rpm and got it installed. Thanks for your help! Sorry for all the dumb questions -- I'm a Linux Newbie, so I didn't know anything about rpms.
|
graeme_p

msg:4131225 | 6:33 am on May 12, 2010 (gmt 0) |
Glad you got it working. As you are a newbie, one more piece of advice: one of the best things about Linux are the package managers like yum, urpmi, apt-get etc. Use one, it makes installing software very, very easy, and it automated updates. It might be a bit late to install it on what I assume is an old RH install, but next time either install a distro that comes with a package manager (most of them) or install one first thing. This might not be a good idea on a really mission critical system as you may want to have perfect control of every change (which, I assume, is why RH does not have yum installed by default), but for your average web server the risk of a problem is low enough to be acceptable.
|
|