Cannot install cuda 5 samples on Ubuntu 12.04

I install cuda 5 until I can install its samples as

Missing required library libglut.so 

I'm looking for interlocutors, someone said

 sudo ln -s /usr/lib/x86_64-linux-gnu/libglut.so /usr/lib/libglut.so 

for x64 architecture. But how to do this for x32 architecture?

+4
source share
2 answers

To make sure you have GLUT installed, you should try

 sudo apt-get install freeglut3 

which will install GLUT on Ubuntu 12.04. If it is not installed, it will install it, otherwise it will tell you that

 freeglut3-dev is already the newest version. 

If after that it still doesn't work, you can link it here: /usr/lib/i386-linux-gnu/libglut.so.3 (which is the location of the library in Ubuntu 12.04 32bit ) with something like

 sudo ln -s /usr/lib/i386-linux-gnu/libglut.so.3 /usr/lib/libglut.so 
+4
source

I found something like this:

If OpenGL and / or GLUT are not installed on your system, you can set both parameters:

yum install freeglut-devel

which should install all dependent packages, including OpenGL.

Instead of yum try sudo aptitude or sudo apt-get , but that depends on your linux distribution.

+2
source

Source: https://habr.com/ru/post/1442249/


All Articles