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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-01-2006, 09:43 AM
|
#1
|
LQ Newbie
Registered: Mar 2006
Location: UK and Israel
Distribution: Mandriva
Posts: 13
Rep:
|
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
|
|
|
03-01-2006, 10:53 AM
|
#2
|
Senior Member
Registered: Oct 2003
Posts: 3,018
|
Post the output of:
$ rpm -qa | grep gcc
|
|
|
03-01-2006, 02:07 PM
|
#3
|
Member
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808
Rep:
|
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.
|
|
|
03-02-2006, 02:20 AM
|
#4
|
LQ Newbie
Registered: Mar 2006
Location: UK and Israel
Distribution: Mandriva
Posts: 13
Original Poster
Rep:
|
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.
|
|
|
03-02-2006, 02:26 AM
|
#5
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Are you entering the commands as root? urpmi.addmedia is only availabe if you are root.
|
|
|
03-02-2006, 02:58 AM
|
#6
|
LQ Newbie
Registered: Mar 2006
Location: UK and Israel
Distribution: Mandriva
Posts: 13
Original Poster
Rep:
|
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]#
|
|
|
03-02-2006, 03:10 AM
|
#7
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
You need to install gcc-c++.
|
|
|
03-02-2006, 04:54 AM
|
#8
|
LQ Newbie
Registered: Mar 2006
Location: UK and Israel
Distribution: Mandriva
Posts: 13
Original Poster
Rep:
|
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
|
|
|
03-02-2006, 04:57 AM
|
#9
|
LQ Newbie
Registered: Mar 2006
Location: UK and Israel
Distribution: Mandriva
Posts: 13
Original Poster
Rep:
|
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
|
|
|
03-02-2006, 10:17 AM
|
#10
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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.
|
|
|
03-05-2006, 04:55 AM
|
#11
|
LQ Newbie
Registered: Mar 2006
Location: UK and Israel
Distribution: Mandriva
Posts: 13
Original Poster
Rep:
|
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.
|
|
|
03-05-2006, 07:15 AM
|
#12
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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.
|
|
|
03-05-2006, 09:42 AM
|
#13
|
LQ Newbie
Registered: Mar 2006
Location: UK and Israel
Distribution: Mandriva
Posts: 13
Original Poster
Rep:
|
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!! 
|
|
|
All times are GMT -5. The time now is 12:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|