Mona Jalal Mona Jalal - 3 months ago 23
Python Question

OSError: The CUDA lib64 path could not be located in /usr/lib64

How can I fix this?

(cv) jalal@klein:~/computer_vision/py-faster-rcnn/lib$ make
python setup.py build_ext --inplace
Traceback (most recent call last):
File "setup.py", line 58, in <module>
CUDA = locate_cuda()
File "setup.py", line 55, in locate_cuda
raise EnvironmentError('The CUDA %s path could not be located in %s' % (k, v))
OSError: The CUDA lib64 path could not be located in /usr/lib64
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 1


I am using this:
https://github.com/rbgirshick/py-faster-rcnn

Answer

Solved this problem using the following change for those who might end of using this popular software (for Cuda ~5):

jalal@klein:~/computer_vision/py-faster-rcnn/lib$ vi setup.py 
change:
    cudaconfig = {'home':home, 'nvcc':nvcc,
                  'include': pjoin(home, 'include'),
                  'lib64': pjoin(home, 'lib64')}

to:

cudaconfig = {'home':home, 'nvcc':nvcc,
              'include': pjoin(home, 'include'),
              'lib64': pjoin(home, 'lib')}

If you are using Cuda7.5 you might need to leave it as lib64 or you might get an error.

Comments