caffe icon indicating copy to clipboard operation
caffe copied to clipboard

libprotobuf error in "make runtest"

Open lixin7895123 opened this issue 12 years ago • 8 comments

i am installing caffe in rhel6.2, an libprotobuf ERROR arised when i was running the "make runtest" i reinstalled protobuf*, but nothing changed,what's happened? how can i solve this libprotobuf error? I'm going to copy paste this below.

[ RUN ] NetTest/0.TestUnsharedWeightsDataNet libprotobuf ERROR google/protobuf/text_format.cc:169] Error parsing text-format caffe.NetParameter: 1:348: Expected identifier. F0827 18:10:03.513089 28999 test_net.cpp:27] Check failed: google::protobuf::TextFormat::ParseFromString(proto, &param) *** Check failure stack trace: *** @ 0x7f263752ea5d google::LogMessage::Fail() @ 0x7f2637532c57 google::LogMessage::SendToLog() @ 0x7f2637530ad9 google::LogMessage::Flush() @ 0x7f2637530ddd google::LogMessageFatal::~LogMessageFatal() @ 0x601a2d caffe::NetTest<>::InitNetFromProtoString() @ 0x61d460 caffe::NetTest<>::InitUnsharedWeightsNet() @ 0x612993 caffe::NetTest_TestUnsharedWeightsDataNet_Test<>::TestBody() @ 0x663dad testing::internal::HandleExceptionsInMethodIfSupported<>() @ 0x655b01 testing::Test::Run() @ 0x655be7 testing::TestInfo::Run() @ 0x655d27 testing::TestCase::Run() @ 0x65ac2f testing::internal::UnitTestImpl::RunAllTests() @ 0x66395d testing::internal::HandleExceptionsInMethodIfSupported<>() @ 0x65512a testing::UnitTest::Run() @ 0x4674a1 main @ 0x7f2633b5ad1d __libc_start_main @ 0x467209 (unknown) make: *** [runtest] Aborted (core dumped)

lixin7895123 avatar Aug 27 '14 17:08 lixin7895123

can somebody help me ...

lixin7895123 avatar Aug 28 '14 05:08 lixin7895123

Please ask on caffe-users. Issues are for development discussion. Thanks!

The core developers don't have RHEL machines, so I'm sorry we can't help with this question. Try installing protobuf from source?

shelhamer avatar Sep 15 '14 16:09 shelhamer

@lixin7895123 I got the same error and google directed me here. Did you have any luck fixing this?

ghost avatar Sep 24 '14 21:09 ghost

@Russell91 NO, I give up on fixing it. using another computer now.

lixin7895123 avatar Sep 25 '14 00:09 lixin7895123

@lixin7895123 The problem on my machine ended up being that the version of libprotobuf available through yum was out of date. I installed it by hand from https://github.com/google/protobuf/ using the simple instructions in the readme and got all the tests to pass.

ghost avatar Sep 29 '14 18:09 ghost

I was just banging my head against this same problem. Maybe a minimum version of protobuf should be specified in the installation instructions? It will compile fine against v2.3.0, but apparently won't run with it.

davidbrodbeck avatar Apr 15 '15 18:04 davidbrodbeck

When using protobuf version 2.3.1, I ran into the same problem. Then I compiled v2.6.1 and the problem solved.

rookiepig avatar Jan 19 '16 09:01 rookiepig

The problem should be the old version of protobuf on RHEL. I have same issue and solved by compiling with a new version of protobuf.

ZijingMao avatar Mar 17 '16 18:03 ZijingMao