try to give exec permission to the output file:


chmod +x BasicGlut


and then, again


./BasicGlut