rbgirshick / py-faster-rcnn

Faster R-CNN (Python implementation) -- see https://github.com/ShaoqingRen/faster_rcnn for the official MATLAB version
Other
8.14k stars 4.11k forks source link

ImportError: libboost_system.so.1.61.0: cannot open shared object file: No such file or directory #310

Open monajalal opened 8 years ago

monajalal commented 8 years ago

I get this error with Python2.7, CuDNN v4, Cuda7.5 on Ubuntu 15.10:

jalal@klein:~/computer_vision/py-faster-rcnn$ ./tools/demo.py
Traceback (most recent call last):
  File "./tools/demo.py", line 18, in <module>
    from fast_rcnn.test import im_detect
  File "/home/jalal/computer_vision/py-faster-rcnn/tools/../lib/fast_rcnn/test.py", line 16, in <module>
    import caffe
  File "/home/jalal/computer_vision/py-faster-rcnn/tools/../caffe-fast-rcnn/python/caffe/__init__.py", line 1, in <module>
    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
  File "/home/jalal/computer_vision/py-faster-rcnn/tools/../caffe-fast-rcnn/python/caffe/pycaffe.py", line 13, in <module>
    from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \
ImportError: libboost_system.so.1.61.0: cannot open shared object file: No such file or directory

How can this be fixed? All the other steps before this were successful.

monajalal commented 8 years ago

Solved the issue using this command: export LD_LIBRARY_PATH=~/computer_vision/py-faster-rcnn/caffe-fast-rcnn/boost_1_61_0/stage/lib:$LD_LIBRARY_PATH and I installed the boost from source there.

PapaMadeleine2022 commented 7 years ago

@monajalal I get the sam error as yours,but I have installed 'libboost' through 'apt-get install libboost-dev'. How solve this problem? thank you in advance!