uuencode: command not found when sending mail in LINUX

HI all,

When i run this command below i get this error:

(cat /root/body.txt ; uuencode -m Summaryfile.zip) | mailx -s "completed" sandeep@help.com

bash: uuencode: command not found

Does anyone know why this is happening?

Or is there any alternative to send mail with an attachment in LINUX?

Any help on this will be appreciated

Thanks,
Sandeep

Just like the message says, it can't find uuencode on the path. Either you have it and it's not on the path, or you don't have it.

Presumably you then have the option to install it.

I'm not sure if uuencode is available for GNU, but you may substitute with this.