LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-24-2009, 05:18 AM   #1
Hydrazin
LQ Newbie
 
Registered: Sep 2009
Posts: 9

Rep: Reputation: 0
problems with g++ compiling


Hi all,

I have a problem compiling c++ programs using g++. I have installed gcc 3.4.3-9EL4 on a red hat 2.6.9-5.ELsmp.
When trying to compile the simple 'helloworld.cpp' I get error messages for every line.
the problems appeared after I tried to install two different versions of gcc (did not work, and now nothing works when compiling c++)

g++ hello.cpp

hello.cpp:1:19: iostream: No such file or directory
hello.cpp: In function `int main()':
hello.cpp:7: error: `cout' undeclared (first use this function)
hello.cpp:7: error: (Each undeclared identifier is reported only once for each function it appears in.)


it looks like c++ code is not recognized properly.
I have tried to install gcc again (3.4.3), configuration works, but when typing 'make' I get the following error message:

if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/home/klaus/Desktop/gcc-3.4.3/gcc/xgcc -B/home/klaus/Desktop/gcc-3.4.3/gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/32/libgcc.map -o 32/libgcc_s.so.1.tmp -m32 libgcc/32/_muldi3.o libgcc/32/_negdi2.o libgcc/32/_lshrdi3.o libgcc/32/_ashldi3.o libgcc/32/_ashrdi3.o libgcc/32/_cmpdi2.o libgcc/32/_ucmpdi2.o libgcc/32/_floatdidf.o libgcc/32/_floatdisf.o libgcc/32/_fixunsdfsi.o libgcc/32/_fixunssfsi.o libgcc/32/_fixunsdfdi.o libgcc/32/_fixdfdi.o libgcc/32/_fixunssfdi.o libgcc/32/_fixsfdi.o libgcc/32/_fixxfdi.o libgcc/32/_fixunsxfdi.o libgcc/32/_floatdixf.o libgcc/32/_fixunsxfsi.o libgcc/32/_fixtfdi.o libgcc/32/_fixunstfdi.o libgcc/32/_floatditf.o libgcc/32/_clear_cache.o libgcc/32/_enable_execute_stack.o libgcc/32/_trampoline.o libgcc/32/__main.o libgcc/32/_absvsi2.o libgcc/32/_absvdi2.o libgcc/32/_addvsi3.o libgcc/32/_addvdi3.o libgcc/32/_subvsi3.o libgcc/32/_subvdi3.o libgcc/32/_mulvsi3.o libgcc/32/_mulvdi3.o libgcc/32/_negvsi2.o libgcc/32/_negvdi2.o libgcc/32/_ctors.o libgcc/32/_ffssi2.o libgcc/32/_ffsdi2.o libgcc/32/_clz.o libgcc/32/_clzsi2.o libgcc/32/_clzdi2.o libgcc/32/_ctzsi2.o libgcc/32/_ctzdi2.o libgcc/32/_popcount_tab.o libgcc/32/_popcountsi2.o libgcc/32/_popcountdi2.o libgcc/32/_paritysi2.o libgcc/32/_paritydi2.o libgcc/32/_divdi3.o libgcc/32/_moddi3.o libgcc/32/_udivdi3.o libgcc/32/_umoddi3.o libgcc/32/_udiv_w_sdiv.o libgcc/32/_udivmoddi4.o libgcc/32/unwind-dw2.o libgcc/32/unwind-dw2-fde-glibc.o libgcc/32/unwind-sjlj.o libgcc/32/gthr-gnat.o libgcc/32/unwind-c.o -lc && rm -f libgcc_s_32.so && if [ -f 32/libgcc_s.so.1 ]; then mv -f 32/libgcc_s.so.1 32/libgcc_s.so.1.`basename `; else true; fi && mv 32/libgcc_s.so.1.tmp 32/libgcc_s.so.1 && ln -s 32/libgcc_s.so.1 libgcc_s_32.so
/usr/bin/ld: crti.o: No such file: No such file or directory
collect2: ld returned 1 exit status
make[2]: *** [32/libgcc_s_32.so] Error 1
make[2]: Leaving directory `/home/klaus/Desktop/gcc-3.4.3/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/home/klaus/Desktop/gcc-3.4.3/gcc'
make: *** [all-gcc] Error 2

... since I am also quite new in Linux, I don't really know what to do...


thanks in advance,
klaus
 
Old 09-24-2009, 05:53 AM   #2
JamesChamberlain
Member
 
Registered: Sep 2009
Location: Wirral, UK
Distribution: Red Hat Enterprise Linux / Fedora 11
Posts: 47

Rep: Reputation: 18
Removed. Just understood question.

Last edited by JamesChamberlain; 09-24-2009 at 05:57 AM.
 
Old 09-24-2009, 05:56 AM   #3
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,549

Rep: Reputation: 212Reputation: 212Reputation: 212
Post your hello world code. It should look something like:

#include <iostream>

int main()
{
using namespace std;
cout << "Hello World" << endl;

return 0;
}

The error you are getting is usually indicative of forgetting to put in the "using namespace std" line.
 
Old 09-24-2009, 06:06 AM   #4
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by Hydrazin View Post
Hi all,

I have a problem compiling c++ programs using g++. I have installed gcc 3.4.3-9EL4 on a red hat 2.6.9-5.ELsmp.
When trying to compile the simple 'helloworld.cpp' I get error messages for every line.
the problems appeared after I tried to install two different versions of gcc (did not work, and now nothing works when compiling c++)

g++ hello.cpp

hello.cpp:1:19: iostream: No such file or directory
hello.cpp: In function `int main()':
hello.cpp:7: error: `cout' undeclared (first use this function)
hello.cpp:7: error: (Each undeclared identifier is reported only once for each function it appears in.)


it looks like c++ code is not recognized properly.
Where is the source? It's not possible to say where the error lies without seeing the code. And it's very likely you are making a coding error.

This program should compile and run successfully:

Code:
#include <iostream>

int main()
{
	std::cout << "Hello World!" << std::endl;
	return 0;
}
Create a file named "program.cpp" from the above, then do this:

Code:
$ make program
g++     program.cpp   -o program
$ ./program
Hello World!
 
Old 09-24-2009, 06:25 AM   #5
Hydrazin
LQ Newbie
 
Registered: Sep 2009
Posts: 9

Original Poster
Rep: Reputation: 0
hi,

thank you all in advance!

I have a helloworld file like

#include<iostream>

using namespace std;

int main()
{
cout<<"hello world";

}

Generally, I can not compile any c++ program, I just wanted to test it with a simple one.

if I do:
[klaus@ICHE198 ~/Desktop]$ make programm %%as suggested
g++ programm.cpp -o programm
programm.cpp:1: error: expected constructor, destructor, or type conversion before '<' token
programm.cpp:1: error: expected `,' or `;' before '<' token
make: *** [programm] Error 1

A friend told me, if nothing works with c++, I should remove gcc. Do you know, how I can do that? I did not install it with rpm...

thank you for your suggestions!
klaus
 
Old 09-24-2009, 06:52 AM   #6
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by Hydrazin View Post
hi,

thank you all in advance!

I have a helloworld file like

#include<iostream>

using namespace std;

int main()
{
cout<<"hello world";

}

Generally, I can not compile any c++ program, I just wanted to test it with a simple one.

if I do:
[klaus@ICHE198 ~/Desktop]$ make programm %%as suggested
g++ programm.cpp -o programm
programm.cpp:1: error: expected constructor, destructor, or type conversion before '<' token
programm.cpp:1: error: expected `,' or `;' before '<' token
make: *** [programm] Error 1

A friend told me, if nothing works with c++, I should remove gcc. Do you know, how I can do that? I did not install it with rpm...

thank you for your suggestions!
klaus
Code:
#include<iostream>
Syntax error: There must be a space between "#include" and "<iostream>".

Code:
cout<<"hello world";
Syntax error: There must be spaces between "cout" and "<<", and "<<" and "hello world".

If you will fix your syntax errors and follow standard coding practices, chances are your program will compile and run.

I emphasize these are issues that should be addressed, they aren't necessarily the cause of your present problems.

Quote:
A friend told me, if nothing works with c++, I should remove gcc. Do you know, how I can do that? I did not install it with rpm...
How did you install it? If you installed it using yum or apt-get, uninstall it the same way, then reinstall it -- in fact, an uninstall/reinstall cycle is likely to solve the problems.
 
Old 09-24-2009, 07:12 AM   #7
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
Quote:
Originally Posted by Hydrazin View Post
I have installed gcc 3.4.3-9EL4 on a red hat 2.6.9-5.ELsmp.
That is just the compiler. It does not include the headers and libraries you need for actually compiling anything useful. Those are in other packages.

I'm not at a Centos system now to check the name of the overall package that will install the header and library packages you need.

In another thread at LQ, talking about a different distribution, I just saw someone say that package is build-essential. That might be correct an might apply to Red Hat as well.

Alternately, as you discover individual files missing, such as iostream, you can switch to root and give the yum command to find out what package that file is in:
Code:
yum provides "*/iostream"
Then install that package. Then retest and see what else is still missing.

Last edited by johnsfine; 09-24-2009 at 07:18 AM.
 
Old 09-24-2009, 07:33 AM   #8
Hydrazin
LQ Newbie
 
Registered: Sep 2009
Posts: 9

Original Poster
Rep: Reputation: 0
hi again,

thanks for your suggestions. I corrected the helloworld, but errors stayed the same.
Well, when the red hat was installed, 'we' put the gcc also there. It looks like it is installed via rpm, doesnt it?:

[klaus@ICHE198 ~]$ rpm -q gcc
gcc-3.4.3-9.EL4

I removed the gcc package via --nodeps
Now gcc is removed, I can not find it anymore, but looks like g++ is still there?:

[root@ICHE198 klaus]# gcc
bash: gcc: command not found
[root@ICHE198 klaus]# g++
g++: no input files
[root@ICHE198 klaus]#


[root@ICHE198 Desktop]# rpm -q gcc
package gcc is not installed
[root@ICHE198 Desktop]# rpm -q g++*
package g++* is not installed
[root@ICHE198 Desktop]#

g++ yields the same errors as before. Should I just install a new gcc now?

thanks in advance,
klaus
 
Old 09-24-2009, 07:49 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,683

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
'gcc' should not be removed !

# yum provides */iostream

# yum install gcc-c++
.. will do.

'gcc-c++' provides /usr/include/c++/3.x.x/iostream .
.....
 
Old 09-24-2009, 08:28 AM   #10
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
Quote:
Originally Posted by knudfl View Post
'gcc-c++' provides /usr/include/c++/3.x.x/iostream
I tried on a Centos system. It looks to me like
libstdc++ provides /usr/include/c++/VariousVersions/iostream

I'm not exactly an expert in Yum. But I can't see how gcc-c++ provides iostream.

If the OP removed gcc-c++, he should certainly reinstall it. But I'm not convinced that is enough.

I suggest
Code:
yum install gcc-c++
yum install libstdc++

Last edited by johnsfine; 09-24-2009 at 08:31 AM.
 
Old 09-24-2009, 08:38 AM   #11
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
Code:
 gcc 3.4.3-9EL4 on a red hat 2.6.9-5.ELsmp
He's on RHEL4, not RHEL5. yum doesn't exist.

OP, do the following:

Code:
up2date -i "@ Development Tools"
 
Old 09-24-2009, 09:00 AM   #12
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
Quote:
Originally Posted by AlucardZero View Post
He's on RHEL4, not RHEL5. yum doesn't exist.
I guess someone added Yum to the two RHEL4 systems I occasionally use, because it works for me.

I've never installed any RHEL system, (just Centos 5.1 and 5.3) and I'm not involved in maintaining those RHEL4 systems. So I have no real guess how far they have diverged from normal RHEL4. At some point soon they will be reinstalled as Centos.

Last edited by johnsfine; 09-24-2009 at 09:02 AM.
 
Old 09-24-2009, 10:05 AM   #13
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,549

Rep: Reputation: 212Reputation: 212Reputation: 212
Hydrazin, post the output of:

$ rpm -qa | grep gcc

that should list all the packages installed with gcc in their name. Typically, you should have gcc itself, a preprocessor package having "gcc-cpp" in the package name, a libgcc package and for c++ support, a gcc-c++ package. In most distros, it's not possible to have g++ installed without the supporting c++ standard libraries, i.e. they're included in the gcc-c++ package. At least that's the case in mandriva but RH may package differently.
 
Old 09-24-2009, 10:16 AM   #14
Hydrazin
LQ Newbie
 
Registered: Sep 2009
Posts: 9

Original Poster
Rep: Reputation: 0
hi all again,

as written, I removed the gcc...
if I do the up2date command, I get some error
(Error Class Code: 70
Error Class Info:
All available subscriptions for the requested channel have been exhausted.
Please contact a Red Hat Network Sales associate.
Explanation:
An error has occurred while processing your request. If this problem
persists please enter a bug report at bugzilla.redhat.com.
If you choose to submit the bug report, please be sure to include
details of what you were trying to do when this error occurred and
details on how to reproduce this problem.)

I think the system is now to old and there is no service included anymore?
I tried the following (hopefully harmless) procedure:

Code:
[klaus@ICHE198 ~/Desktop]$ rpm -Uhv gcc-3.4.3-4.i386.rpm
warning: gcc-3.4.3-4.i386.rpm: V3 DSA signature: NOKEY, key ID e01260f1
error: Failed dependencies:
        cpp = 5:3.4.3-4 is needed by gcc-3.4.3-4.i386
        libgcc = 5:3.4.3-4 is needed by gcc-3.4.3-4.i386
[root@ICHE198 Desktop]# rpm -Uhv cpp-3.4.3-4.i386.rpm
warning: cpp-3.4.3-4.i386.rpm: V3 DSA signature: NOKEY, key ID e01260f1
Preparing...                ########################################### [100%]
        file /usr/share/man/ja/man1/cpp.1.gz from install of cpp-3.4.3-4 conflicts with file from package man-pages-ja-20040915-1
[root@ICHE198 Desktop]# rpm -Uhv --replacefiles cpp-3.4.3-4.i386.rpm
warning: cpp-3.4.3-4.i386.rpm: V3 DSA signature: NOKEY, key ID e01260f1
Preparing...                ########################################### [100%]
   1:cpp                    ########################################### [100%]
but now, with the missing libgcc

Code:
[root@ICHE198 Desktop]# rpm -Uhv libgcc-3.4.3-3.i586.rpm
warning: libgcc-3.4.3-3.i586.rpm: V3 DSA signature: NOKEY, key ID e01260f1
error: Failed dependencies:
        libgcc_s.so.1()(64bit) is needed by (installed) libstdc++-3.4.3-9.EL4.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) db4-4.2.52-7.1.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) gmp-4.1.4-3.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) aspell-0.50.5-3.fc3.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) groff-1.18.1.1-3.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) lftp-3.0.6-3.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) libwvstreams-3.75.0-2.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) iptstate-1.3-4.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) wvdial-1.54.0-3.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) cups-1.1.22-0.rc1.9.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) redhat-lsb-1.3-5.2.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) mysql-4.1.7-4.RHEL4.1.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) Omni-0.9.1-7.1.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) ttmkfdir-3.0.9-14.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) hpijs-1.6-2.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) dvd+rw-tools-5.21.4.10.8-4.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) compat-libstdc++-33-3.2.3-47.3.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) libmusicbrainz-2.0.2-11.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) flac-1.1.0-7.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) firefox-1.0-12.EL4.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) pwlib-1.6.5-11.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) pilot-link-0.11.8-8.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) openjade-1.3.2-14.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) openh323-1.13.4-7.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) xorg-x11-Mesa-libGLU-6.8.1-23.EL.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) qt-3.3.3-9.3.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) arts-1.3.1-2.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) gstreamer-plugins-0.8.5-1.EL.0.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) vnc-server-4.0-8.1.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) dia-0.94-5.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) gnomemeeting-1.0.2-8.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) sound-juicer-0.5.14-2.EL.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) gpdf-2.8.0-7.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) kdelibs-3.3.1-3.2.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) kdebase-3.3.1-5.5.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) kdepim-3.3.1-2.1.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) k3b-0.11.14-2.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) kdemultimedia-3.3.1-2.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) kdegraphics-3.3.1-2.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) doxygen-1.3.9.1-1.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) boost-1.32.0-1.rhel4.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) swig-1.3.21-6.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) libgcj-3.4.3-9.EL4.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) oprofile-0.8.1-11.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) tetex-2.0.2-21RH4.1.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) mozilla-1.7.3-18.EL4.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) devhelp-0.9.2-2.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) autorun-3.14-2.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) htdig-3.2.0b6-3.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) kdeartwork-3.3.1-2.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) kdenetwork-3.3.1-2.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) kdeaddons-3.3.1-2.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) kdeutils-3.3.1-2.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) arts-devel-1.3.1-2.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) sip-4.1-1.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) PyQt-3.13-1.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) qt-devel-3.3.3-9.3.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) qt-designer-3.3.3-9.3.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) kdbg-1.2.9-6.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) kdelibs-devel-3.3.1-3.2.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) kdepim-devel-3.3.1-2.1.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) kdesdk-3.3.1-2.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) kdevelop-3.1.1-2.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) iiimf-x-12.1-10.EL.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) miniChinput-0.0.3-58.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) iiimf-server-12.1-10.EL.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) iiimf-le-chinput-0.3-16.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) octave-2.1.57-7.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) gnome-games-2.8.0-4.x86_64
        libgcc_s.so.1()(64bit) is needed by (installed) nmap-3.70-1.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) libstdc++-3.4.3-9.EL4.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) db4-4.2.52-7.1.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) gmp-4.1.4-3.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) aspell-0.50.5-3.fc3.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) groff-1.18.1.1-3.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) lftp-3.0.6-3.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) iptstate-1.3-4.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) wvdial-1.54.0-3.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) cups-1.1.22-0.rc1.9.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) Omni-0.9.1-7.1.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) ttmkfdir-3.0.9-14.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) hpijs-1.6-2.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) compat-libstdc++-33-3.2.3-47.3.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) libmusicbrainz-2.0.2-11.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) flac-1.1.0-7.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) pwlib-1.6.5-11.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) pilot-link-0.11.8-8.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) openjade-1.3.2-14.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) openh323-1.13.4-7.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) xorg-x11-Mesa-libGLU-6.8.1-23.EL.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) gstreamer-plugins-0.8.5-1.EL.0.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) vnc-server-4.0-8.1.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) gnomemeeting-1.0.2-8.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) sound-juicer-0.5.14-2.EL.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) gpdf-2.8.0-7.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) kdelibs-3.3.1-3.2.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) kdegraphics-3.3.1-2.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) boost-1.32.0-1.rhel4.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) swig-1.3.21-6.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) libgcj-3.4.3-9.EL4.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) oprofile-0.8.1-11.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) tetex-2.0.2-21RH4.1.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) devhelp-0.9.2-2.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) autorun-3.14-2.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) kdenetwork-3.3.1-2.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) kdeaddons-3.3.1-2.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) PyQt-3.13-1.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) qt-devel-3.3.3-9.3.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) kdesdk-3.3.1-2.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) kdevelop-3.1.1-2.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) iiimf-x-12.1-10.EL.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) miniChinput-0.0.3-58.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) iiimf-server-12.1-10.EL.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) iiimf-le-chinput-0.3-16.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) octave-2.1.57-7.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) gnome-games-2.8.0-4.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by (installed) nmap-3.70-1.x86_64
        libgcc_s.so.1(GCC_3.3)(64bit) is needed by (installed) libstdc++-3.4.3-9.EL4.x86_64
        libgcc_s.so.1(GCC_3.3)(64bit) is needed by (installed) lftp-3.0.6-3.x86_64
        libgcc_s.so.1(GCC_3.3)(64bit) is needed by (installed) wvdial-1.54.0-3.x86_64
        libgcc_s.so.1(GCC_3.3)(64bit) is needed by (installed) Omni-0.9.1-7.1.x86_64
        libgcc_s.so.1(GCC_3.3)(64bit) is needed by (installed) compat-libstdc++-33-3.2.3-47.3.x86_64
        libgcc_s.so.1(GCC_3.3)(64bit) is needed by (installed) libgcj-3.4.3-9.EL4.x86_64
... and now I don't really know...
thanks again for your help, as you see, I don't really know what i am doing when installing these libraries...

thanx
klaus
 
Old 09-24-2009, 10:44 AM   #15
Hydrazin
LQ Newbie
 
Registered: Sep 2009
Posts: 9

Original Poster
Rep: Reputation: 0
sorry, i did not see the last post before mine,

Code:
[klaus@ICHE198 ~/Desktop]$ rpm -qa | grep gcc
libgcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.EL4
libgcc-3.4.3-9.EL4
gcc-g77-3.4.3-9.EL4
compat-libgcc-296-2.96-132.7.2
gcc-c++-3.4.3-9.EL4
gcc-java-3.4.3-9.EL4
wow?!
but still, I got

Code:
[klaus@ICHE198 ~/Desktop]$ which gcc
gcc: Command not found.
[klaus@ICHE198 ~/Desktop]$ gcc --version
gcc: Command not found.
[klaus@ICHE198 ~/Desktop]$
I think I have got to learn a lot in this world of linux
 
  


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
Problems Compiling Problems With GCC And C++ phnxbn Linux - Software 0 11-02-2004 05:49 PM
Problems installing amsn (TK compiling problems) JNewton Linux - Software 0 05-24-2004 12:07 PM
2.6.3 compiling problems blackmask Linux - Newbie 1 04-19-2004 09:21 AM
Problems compiling! akasantos Fedora 8 11-13-2003 03:10 PM
compiling problems cameronknives Linux - General 31 02-10-2002 09:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:43 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration