LinuxQuestions.org
Help answer threads with 0 replies.
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
  Search this Thread
Old 03-01-2006, 09:43 AM   #1
hoshen
LQ Newbie
 
Registered: Mar 2006
Location: UK and Israel
Distribution: Mandriva
Posts: 13

Rep: Reputation: 0
C++ in Mandriva


Hi All
I am new to Mandriva (using Discovery 2006) and I am trying to get c/c++ to work.
It was not very clear where it was at all, and I had to form links, but that is behind me now.
The problem is that the include files don't seem to be there. At least they are not opened by rpm (either command line or rpmdrake using the manager).
Is there a smart way to open or acquire such files? I can find what seem to be the files for C, stdlib.h etc., but they are individually compressed as bz2 files.
Thanks
Moshe
 
Old 03-01-2006, 10:53 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 3,018

Rep: Reputation: 400Reputation: 400Reputation: 400Reputation: 400Reputation: 400
Post the output of:

$ rpm -qa | grep gcc
 
Old 03-01-2006, 02:07 PM   #3
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
Pay a visit to Easy Urpmi. Follow the instructions on the page, selecting *at least* main, update, and PLF repositories (I recommend selecting contrib, as well). When you get to Step 3, when you click the button, you will be given a sequence of urpmi commands to enter in a Konsole window as root. When they have run, you will have access to what you need, either from the command line (urpmi) or via rpmdrake.
 
Old 03-02-2006, 02:20 AM   #4
hoshen
LQ Newbie
 
Registered: Mar 2006
Location: UK and Israel
Distribution: Mandriva
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Padma
Pay a visit to Easy Urpmi. Follow the instructions on the page, selecting *at least* main, update, and PLF repositories (I recommend selecting contrib, as well). When you get to Step 3, when you click the button, you will be given a sequence of urpmi commands to enter in a Konsole window as root. When they have run, you will have access to what you need, either from the command line (urpmi) or via rpmdrake.


Thanks
However I receive an error message on urpmi.addmedia

bash: urpmi.addmedia: command not found

So that does not work

I have tried using the Control Center and then rpmdrake
but the software is thought to have been installed, and thus I do not have C or C++ to select


I have tried to download libraries, but I was informed at the end of the download that they had already been installed
So it seems the issue is activating the files.
 
Old 03-02-2006, 02:26 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Are you entering the commands as root? urpmi.addmedia is only availabe if you are root.
 
Old 03-02-2006, 02:58 AM   #6
hoshen
LQ Newbie
 
Registered: Mar 2006
Location: UK and Israel
Distribution: Mandriva
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kilgoretrout
Post the output of:

$ rpm -qa | grep gcc

[root@pc427 moshe]# /bin/rpm -qa |grep gcc
gcc-cpp-4.0.1-5mdk
libgcc1-4.0.1-5mdk
gcc2.96-cpp-2.96-0.83mdk
[root@pc427 moshe]#


 
Old 03-02-2006, 03:10 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You need to install gcc-c++.
 
Old 03-02-2006, 04:54 AM   #8
hoshen
LQ Newbie
 
Registered: Mar 2006
Location: UK and Israel
Distribution: Mandriva
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by reddazz
Are you entering the commands as root? urpmi.addmedia is only availabe if you are root.
Thanks
Yes
I discovered that one.
For some reason the paths were not setup right. It has to be from /usr/sbin which was not on the path.
So I found the sites.
I used rpmdrake uing the manager
and nothing basically. I am not finding all the include files, such as stddef.h

I was not able to install all files due to clashes, for C, but for C++ is should have been fine, and isn't
 
Old 03-02-2006, 04:57 AM   #9
hoshen
LQ Newbie
 
Registered: Mar 2006
Location: UK and Israel
Distribution: Mandriva
Posts: 13

Original Poster
Rep: Reputation: 0
gcc-c++

Quote:
Originally Posted by reddazz
You need to install gcc-c++.
Yes
But exactly how.
It must be trivial, but I don't know how to get over it
 
Old 03-02-2006, 10:17 AM   #10
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by hoshen
Yes
But exactly how.
It must be trivial, but I don't know how to get over it
Are your repos now stup? If so, just start a terminal emulator e.g. konsole, switch to root then do "urpmi gcc-c++". If you are not too keen on the command line, start the Mandriva Control Center, go to the software installation section and search for gcc-c++, select the version you wish to install and click the install button.
 
Old 03-05-2006, 04:55 AM   #11
hoshen
LQ Newbie
 
Registered: Mar 2006
Location: UK and Israel
Distribution: Mandriva
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks reddazz

Quote:
Are your repos now stup? If so, just start a terminal emulator e.g. konsole, switch to root then do "urpmi gcc-c++". If you are not too keen on the command line, start the Mandriva Control Center, go to the software installation section and search for gcc-c++, select the version you wish to install and click the install button.
I am not manging to setup the repositories
I am receiving notices such as

Quote:
curl: (18) transfer closed with 405720 bytes remaining to read
Any idea what it is about?

I have not managed to access the libraries for the includes I need.

Is there a way around downloading and installing from Gnu?

Last edited by hoshen; 03-05-2006 at 06:05 AM.
 
Old 03-05-2006, 07:15 AM   #12
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You can use your installation discs. Just start the Mandriva Control Center, go to the software installation section, search for gcc-c++ and select it for installation and you will be prompted for one or more of your installation discs.
 
Old 03-05-2006, 09:42 AM   #13
hoshen
LQ Newbie
 
Registered: Mar 2006
Location: UK and Israel
Distribution: Mandriva
Posts: 13

Original Poster
Rep: Reputation: 0
Wink

Quote:
Originally Posted by reddazz
You can use your installation discs. Just start the Mandriva Control Center, go to the software installation section, search for gcc-c++ and select it for installation and you will be prompted for one or more of your installation discs.
Well, I re installed LINUX, and then when accessing remote sites I used the compressed option. And then it worked.
Thanks for all the good advice!!
 
  


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
LXer: Mandriva and HP launch new computers pre-loaded with Mandriva Linux 2006 in 37 Countries in Latin America LXer Syndicated Linux News 0 01-18-2006 10:01 AM
mandriva rc2 to mandriva 2005? greythorne Mandriva 1 04-18-2005 08:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:59 PM.

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