package required to compile c++ program in opensuse

Hello.
i got two question about compiling a c++code in opensuse:
1- which package exactly required?
2- can i download this packges with my download manager(not by yast software manager)?
Thanks.

-=WELCOME=- new poster!!

> i got two question about compiling a c++code in opensuse:
> 1- which package exactly required?

you need more than one package, you need a specific group of packages
which we here (in openSUSE) call a “pattern”

> 2- can i download this packges with my download manager(not by yast
> software manager)?

i don’t know why you prefer a “download manager” rather than YaST…but,
i think you will be at a great disadvantage if you are for some reason
not able to use YaST…

using YaST, here is how to get the patterns you need:

-open YaST (give root password when asked–if not asked, do NOT proceed
but instead report that back to this thread–because you are logged into
the DE as root, and should not be!)
-click Software Management
-when the new window opens, near the top click on the tab “View”
-from “Views” drop down list, pick “Patterns”
-scroll down (past Desktop Functions and others) until you get to the
section named “Development”, in it you will select two (only, for now)
Patterns
-single left click to place a check mark next to “Base Development” and
“C/C++ Development”

note: i would suggest that at this time you not go exploring and add a
bunch of other stuff…but, it is your machine and your drive
space…just for now lets keep it simple, and

-press the “Accept” button and sit on your hands until the job is done
(depending on your connection speed that might be one minute or 20 or
more minutes…once started you need to let it finish…so, i’d advise
you to not start the process unless you have the time needed to do the job.

the displayed Abort button will NOT give an instant abort, and while
pressing it will eventually cause the process to abort, it could abort
in a condition which is quite unpleasant…or not, i’ve heard of both…

i have no idea how a person could do that using a “download
manager”…as far as i am concerned there is no “download manager” which
is better than YaST Software Management! (except maybe zypper)…


dd http://tinyurl.com/DD-Caveat

Thanks dear DD.

On 12/14/2012 11:36 AM, Bouki wrote:
>
> Thanks dear DD.

welcome, but i wonder if that means it worked for you, or . . . ??


dd

i found C/C++ Development packages but i didnt try to download it.(for internet connection reasons)
i hope work.

If data usage is an issue for you, then I would actually recommend NOT selecting that pattern. It’s going to pull in various packages that are useful for developers but which you might not need; for example, all of Boost, which is probably going to be several times bigger than the rest of them combined. (I’m going off of memory here, but Boost is fairly large.) These are things that you can install individually later on if you determine that you need them.

The only thing you really need to compile a C++ program is the package gcc-c++. YaST will handle its dependencies automatically.

(Also be aware that you’re going to have a really hard time getting a C++ compiler set up if you don’t use YaST to install it.)

On 12/14/2012 06:26 PM, Golbats Everywhere wrote:
> The only thing youreally need to compile a C++ program is the
> package gcc-c++. YaST will handle its dependencies automatically.
>
> (Also be aware that you’re going to have a really hard time getting a
> C++ compiler set up if you don’t use YaST to install it.)

thanks for your input (and, Bouki i suggest you NOT pick the pattern,
and instead download just that rpm and then use yast to install it once
you have it…)


dd

Am a NON-Technical user,

Apologies if off topic.

Despite being NON-Technical admit do find zypper more comfortable than YaST for installing and removing packages and package dependencies.

Is YaST now different to zypper ?

Yes, I missed the line in dd’s early post

there is no “download manager” which
is better than YaST Software Management! (except maybe zypper)…

An old, yet well written article :

It turns out that YaST is also (now) based on ZYpp so you don’t need to worry that you’re missing out on something by using zypper.

Source: Package Management With Zypper | Linux Journal

To do this in terminal log in as root then search for gcc-c+ (yes did leave out one + as was curious)


linux-xfp4:~ # exit
logout
paulparker@linux-xfp4:~> su -
Password: 
linux-xfp4:~ # zypper se gcc-c+
Loading repository data...
Reading installed packages...

S | Name          | Summary                     | Type   
--+---------------+-----------------------------+--------
  | gcc-c++       | The system GNU C++ Compiler | package
  | gcc-c++-32bit | The system GNU C++ Compiler | package
linux-xfp4:~ # 

Then to install use command zypper in gcc-c++

Seems zypper does everything else nicely.

.

Thanks guys.
i guess its better and easier if i use the YAST.
and for compiling c++ codes i should install GCC and C/CPP packges. am i right? or we need something else?

Depends on what you are going to compile. But that is the basic stuff.

If you are missing something make will tell you what is missing if you carefully read the output.

Also most source will have a readme file that should say what you need to build the program.