LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   problem with g++ (https://www.linuxquestions.org/questions/mandriva-30/problem-with-g-347796/)

ohade 07-28-2005 04:29 PM

problem with g++
 
hi all,

i need help with installation of g++.

how can i instal g++ in my mandrake?

i found and installed gcc but i didn't find g++ in the software package installation,
so i be happy for some help

tnx,
ohad.

Matir 07-28-2005 04:40 PM

g++ is part of the gcc collection.

abattoir 07-29-2005 12:24 AM

If you have urpmi set up, all you have to do is(as root).
Code:

urpmi gcc-c++
For setting up urpmi, visit
http://easyurpmi.zarb.org
For more info on urpmi visit
http://wiki.linuxquestions.org/wiki/URPMI

ohade 07-29-2005 01:28 AM

when you say that g++ is part of the gcc collection you mean that i can compile with gcc c++ files or that i should install something?

abattoir 07-29-2005 01:46 AM

You need to install the package gcc-c++, yes gcc-c++(g++) is part of the gcc project, but the package gcc-c++ is not necessarily included with gcc.

ohade 07-29-2005 02:40 AM

I found two packages call "gcc-cpp-2.96-0.83mdk" & "gcc-cpp-3.4.1-3mdk". i hope this will help.

tnx to you all for the help.

reddazz 07-29-2005 03:36 AM

Quote:

Originally posted by ohade
I found two packages call "gcc-cpp-2.96-0.83mdk" & "gcc-cpp-3.4.1-3mdk". i hope this will help.

tnx to you all for the help.

The correct way to install gcc-c++ is what abattoir posted above.
Code:

#urpmi gcc-c++
This will install g++ and all its dependencies automatically.

ohade 07-29-2005 03:46 AM

can you explain more about

#urpmi gcc-c++

what should i do exactly?

tnx.

reddazz 07-29-2005 03:55 AM

Quote:

Originally posted by ohade
can you explain more about

#urpmi gcc-c++

what should i do exactly?

tnx.

Urpmi is the Mandrake/Mandriva package manager and it can install packages from your CD's, hard drive or from the web. To find out more about it go to zebulon.org.uk and to seup more sources for your release, follow the instructions at easyurpmi.

The command I posted above is done as root (# means root).

ohade 07-29-2005 04:16 AM

can you give me a link so i can download the gcc-c++ package?

reddazz 07-29-2005 04:19 AM

Quote:

Originally posted by ohade
can you give me a link so i can download the gcc-c++ package?
I have already shown you how to install it correctly in my previous posts.


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