Ok, I apologize for wating bandwidth, but maybe someone can learn from my lack of patience.
There is a section in the /etc/sudoers file called "Defaults". In my Gentoo box, it was set to reset environment variables. But in my Slack box, it was not. I removed it from the Gentoo box, and it works like a charm. I hope this may help someone.