Cuda 6.5找不到-libGLU。(在ubuntu 14.04 64位上)

Cuda 6.5找不到-libGLU。(在ubuntu 14.04 64位上),ubuntu,cuda,Ubuntu,Cuda,我已经在我的ubuntu上安装了CUDA6.5。 我的视频卡是GTX titan 当我想制作一个cuda样本时(…/模拟/粒子) 我得到这个信息: >>> WARNING - libGLU.so not found, refer to CUDA Samples release notes for how to find and install them. <<< [@] /usr/local/cuda-6.5/bin/nvcc -ccbin g++ -I../

我已经在我的ubuntu上安装了CUDA6.5。 我的视频卡是GTX titan

当我想制作一个cuda样本时(…/模拟/粒子) 我得到这个信息:

>>> WARNING - libGLU.so not found, refer to CUDA Samples release notes for how to find and install them. <<<
[@] /usr/local/cuda-6.5/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_11,code=sm_11 -gencode arch=compute_13,code=sm_13 -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_50,code=compute_50 -o particleSystem.o -c particleSystem.cpp
[@] /usr/local/cuda-6.5/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_11,code=sm_11 -gencode arch=compute_13,code=sm_13 -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_50,code=compute_50 -o particleSystem_cuda.o -c particleSystem_cuda.cu
[@] /usr/local/cuda-6.5/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_11,code=sm_11 -gencode arch=compute_13,code=sm_13 -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_50,code=compute_50 -o particles.o -c particles.cpp
[@] /usr/local/cuda-6.5/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_11,code=sm_11 -gencode arch=compute_13,code=sm_13 -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_50,code=compute_50 -o render_particles.o -c render_particles.cpp
[@] /usr/local/cuda-6.5/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_11,code=sm_11 -gencode arch=compute_13,code=sm_13 -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_50,code=compute_50 -o shaders.o -c shaders.cpp
[@] /usr/local/cuda-6.5/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_11,code=sm_11 -gencode arch=compute_13,code=sm_13 -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_50,code=compute_50 -o particles particleSystem.o particleSystem_cuda.o particles.o render_particles.o shaders.o -L../../common/lib/linux/x86_64 -L/usr/lib/nvidia-340 -lGL -lGLU -lX11 -lXi -lXmu -lglut -lGLEW
[@] mkdir -p ../../bin/x86_64/linux/release
[@] cp particles ../../bin/x86_64/linux/release
我明白了:

build-essential is already the newest version.
libglu1-mesa is already the newest version.
libx11-dev is already the newest version.
libx11-dev set to manually installed.
libxi-dev is already the newest version.
libxmu-dev is already the newest version.
libgl1-mesa-glx is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 freeglut3-dev : Depends: libgl1-mesa-dev but it is not going to be installed or
                          libgl-dev
 libglu1-mesa-dev : Depends: libgl1-mesa-dev but it is not going to be installed or
                             libgl-dev
E: Unable to correct problems, you have held broken packages.
请参阅第节,其中说明:

如果希望构建所有示例,包括具有图形界面而非命令行界面的示例,则可能需要额外的系统库或标题。虽然每个Linux发行版在包名称和包安装过程方面略有不同,但最有可能需要的库和头是OpenGL(例如,台面)、Glu、GLUT和X11(包括席、XMU和GLX)。 在Ubuntu上,可以按如下方式安装:

应该足以在不引起任何冲突的情况下提取所有依赖项


我今天刚刚在Ubuntu 14.04上用Titan X Pascal和CUDA 7.5做了这件事,你试过什么?也许有64位的替代方案。可能会有帮助。所需软件包的版本比我想的要旧
build-essential is already the newest version.
libglu1-mesa is already the newest version.
libx11-dev is already the newest version.
libx11-dev set to manually installed.
libxi-dev is already the newest version.
libxmu-dev is already the newest version.
libgl1-mesa-glx is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 freeglut3-dev : Depends: libgl1-mesa-dev but it is not going to be installed or
                          libgl-dev
 libglu1-mesa-dev : Depends: libgl1-mesa-dev but it is not going to be installed or
                             libgl-dev
E: Unable to correct problems, you have held broken packages.
$ sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev
apt-get install freeglut3-dev libglu1-mesa-dev