debian: /usr/local/cuda/lib/libcudart.so: file not recognized

I’m getting the error:

make[1]: entrant dans le répertoire « /home/arturo/NVDIA_CUDA_SDK/projects/histogram64 »
/usr/local/cuda/lib/libcudart.so: file not recognized: Format de fichier non reconnu

When running make at sdk path.

This were already done:
1- PATH and LD_LIBRARY_PATH set.
2- ldconfig run after changed config.

After reading different threads I tried the following:

3 - Selinux disabled.

Yet the problem persists. Any ideas?

Did you install the right bitness? Do you have a new enough glibc for whichever version you installed?

After reinstalling most packets I could compile the examples. Unfortunately after that many changes I lost the track of them, so I cannot say which steps where crucial.