LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 06-20-2004, 01:37 PM   #1
Daz_Man2803
LQ Newbie
 
Registered: Jun 2004
Location: Nottingham
Distribution: Ubuntu 5.04
Posts: 23

Rep: Reputation: 15
help with gcc install on suse 9.1


i have been trying to install stuff so that i can compile and execute c++. i have installed make and i have also installed gcc from (gcc340-3.4.0-1suse90.i686.rpm). when i type in gcc or g++ in the console it says "bash : g++: command not found" the same for gcc. when i look in yast it says that gcc is installed and is located in /opt/gcc-3.4.0/bin. how do i get this to work?
 
Old 06-20-2004, 02:01 PM   #2
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
How 'bout indicating the path? (/opt/gcc.../bin/gcc)
 
Old 06-20-2004, 02:05 PM   #3
Daz_Man2803
LQ Newbie
 
Registered: Jun 2004
Location: Nottingham
Distribution: Ubuntu 5.04
Posts: 23

Original Poster
Rep: Reputation: 15
what do you mean by indicating the path? do u mean typing g++ /opt/gcc.../bin?
 
Old 06-20-2004, 02:50 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: At home: Arch, OpenBSD, Solaris. At work: CentOS, Debian, Ubuntu
Posts: 3,625

Rep: Reputation: 101Reputation: 101
Try

/opt/gcc-3.4.0/bin/gcc

You will want to add this to your PATH. Open up your .bashrc file in your home directory and add the following line at the bottom:

PATH=$PATH:/opt/gcc-3.4.0/bin
 
Old 06-21-2004, 03:25 AM   #5
Daz_Man2803
LQ Newbie
 
Registered: Jun 2004
Location: Nottingham
Distribution: Ubuntu 5.04
Posts: 23

Original Poster
Rep: Reputation: 15
ok that worked but now g++ doesnt work properly. i have a program called program.cpp and it contains:

#include <iostream>
using namespace std;

int main()
{
cout << "hello there Darren" << endl;

return 0;
}

i then type in the console "g++ program.cpp -o program" and it brings up loads of text in the console window and in this text seems to be a lot of errors the main one being "no type named `int_type' in `struct std::char_traits<wchar_t>'"

what does this mean? is my c++ code wrong or have i not got the libraries installed or is it something else?
 
Old 08-01-2004, 04:16 AM   #6
cclukins
LQ Newbie
 
Registered: May 2004
Location: Stuttgart, Germany
Distribution: SuSE 9.1 -- finally found the right distro
Posts: 3

Rep: Reputation: 0
try:
g++ -o program ./program.cpp
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't install gcc 3.3.3-4 on SUSE 9.1 prince121 Linux - Software 0 11-29-2005 07:52 PM
how to install GCC 3.3 on Suse 10? Gianni_T Suse/Novell 0 10-20-2005 02:23 AM
no gcc in suse 9.1...how do i install a compiler? set235 Linux - Newbie 2 07-28-2005 11:34 PM
Suse 9.1 Personal and Install of gcc. Delusions Linux - Newbie 1 10-21-2004 09:22 AM
GCC-3.3.3 Install on Suse crowmanic Linux - Software 1 03-20-2004 10:48 AM


All times are GMT -5. The time now is 01:27 AM.

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
Open Source Consulting | Domain Registration