I get an error like "error while loading shared libraries: libstdc++" using Linux!
Different Linux distributions use different system librarys. You can try to install the missing library package, but the easier way is to use the "rar_static" binary instead of rar.
It is included in the Linux RAR archive.