Thanks for all replies,
Autobuild error linked to the long path was solved based on the suggestion of Ben Eisenbraun (thanks Ben).
I reinstalled tcsh, but only that did not solve the problem. So, I deleted csh from the path and kept only the newly installed tcsh after that everything is running perfectly.

Youssef