Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 372
Mona Jalal Avatar asked Nov 28 '22 22:11

Mona Jalal


1 Answers

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

in ~/computer_vision/py-faster-rcnn/lib/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.

like image 73
Mona Jalal Avatar answered Dec 01 '22 13:12

Mona Jalal