You may need to set LD_LIBRARY_PATH - or DYLD_LIBRARY_PATH on OS X - 
to allow the system find the CUDA libraries. They are often installed
in /usr/local/cuda/lib.