in reply to Having a problem with my path

There are various softwares that void a correctly defined $PATH ; things like chroot/SELinux/permissions

So setting $PATH is only the beginning

You can read more about this in Re^3: DBD::mysql fail install check (crontab debugging troubleshooting DYLD_LIBRARY_PATH ldd otool ...)