I don't know that thread you refer to but my guess is you typed the character '$' at the beginning of your command, like this :
Instead simply type:
In the thread you are reading the '$' sign represents part of the "bash prompt" for a regular user and is an output of the bash interpreter, not an input of the user.
And yes, opensuse is a "kind" of Linux (what is usually called a "distribution") so the same commands should be used (mostly).
EDIT. I've found the post you are referring to
and I confirm: do not type the leading '$' in any of these commands.
PS As a side note, I advise you not to install from source anything if you can avoid it: better install already built packages intended for your version of your distribution using tools included in it for that purpose, otherwise you will be messing up you system very fast.