2

I am trying to install caffe model on Mac. When I run make test, I get this error. How do I fix it?

Hsus-MacBook-Pro:caffe HTS$ make test
CXX src/caffe/test/test_random_number_generator.cpp
In file included from src/caffe/test/test_random_number_generator.cpp:5:
./include/caffe/common.hpp:4:10: fatal error: 'boost/shared_ptr.hpp' file not found
#include <boost/shared_ptr.hpp>
 ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [.build_release/src/caffe/test/test_random_number_generator.o] Error 1
i alarmed alien
  • 9,412
  • 3
  • 27
  • 40
  • The error message indicates you're lacking a file from the `boost` library. Have you installed boost? – i alarmed alien Jul 11 '18 at 10:27
  • Possible duplicate of [Error: boost/scoped\_ptr.hpp: No such file or directory while using libkml](https://stackoverflow.com/questions/19480020/error-boost-scoped-ptr-hpp-no-such-file-or-directory-while-using-libkml) – i alarmed alien Jul 11 '18 at 10:28
  • thanks . but now the error is changed..PROTOC src/caffe/proto/caffe.proto CXX .build_release/src/caffe/proto/caffe.pb.cc In file included from .build_release/src/caffe/proto/caffe.pb.cc:5: .build_release/src/caffe/proto/caffe.pb.h:9:10: fatal error: 'google/protobuf/stubs/common.h' file not found #include ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. make: *** [.build_release/src/caffe/proto/caffe.pb.o] Error 1 – Hsuthiri Soe Jul 12 '18 at 03:08
  • Are you following the OS X installation instructions at http://caffe.berkeleyvision.org/install_osx.html? – i alarmed alien Jul 12 '18 at 09:24
  • The current error message suggests you're missing protobuf. If you follow the installation instructions, the libraries that you're missing (boost, protobuf) are installed prior to installing caffe, so you should not get these errors. – i alarmed alien Jul 12 '18 at 09:30

0 Answers0