in reply to Problem while installing a module

Some modules requires g++ to compile.

So you might have mis-understood the error message you've got.

What's your OS & what's the module name you're trying to install?