Problem running Cuda 8 graphics examples Ubuntu 16.04

When I try to build any examples from the graphics section 2_Graphics
peter@Cuda:~/NVIDIA_CUDA-8.0_Samples/2_Graphics/Mandelbrot$ make all
“/usr/local/cuda-8.0”/bin/nvcc -ccbin g++ -I…/…/common/inc -m64 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_60,code=compute_60 -o Mandelbrot.o -c Mandelbrot.cpp
nvcc warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
“/usr/local/cuda-8.0”/bin/nvcc -ccbin g++ -I…/…/common/inc -m64 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_60,code=compute_60 -o Mandelbrot_cuda.o -c Mandelbrot_cuda.cu
nvcc warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
“/usr/local/cuda-8.0”/bin/nvcc -ccbin g++ -I…/…/common/inc -m64 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_60,code=compute_60 -o Mandelbrot_gold.o -c Mandelbrot_gold.cpp
nvcc warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
“/usr/local/cuda-8.0”/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_60,code=compute_60 -o Mandelbrot Mandelbrot.o Mandelbrot_cuda.o Mandelbrot_gold.o -L/usr/lib/“nvidia-367” -lGL -lGLU -lX11 -lglut
nvcc warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
/usr/bin/ld: cannot find -lglut
collect2: error: ld returned 1 exit status
Makefile:273: recipe for target ‘Mandelbrot’ failed
make: *** [Mandelbrot] Error 1

gcc version:
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright © 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

echo $LD_LIBRARY_PATH
/usr/local/cuda-8.0/lib64:/usr/lib

This is the problem:

/usr/bin/ld: cannot find -lglut

The graphics examples require additional libraries to be installed on your machine.

This is briefly mentioned in the install guide:

http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#install-libraries

The method to install these libraries varies somewhat by CUDA distro.

You can find examples if you search for them. For example, try googling “install cuda glut” and start reading.