1

CaffeOnSpark をローカルで実行しようとしていますが、caffe を正常にコンパイルして実行しました。また、opencv をインストールしましたが、CaffeOnSpark のコンパイルに失敗しました。

ビルド時のエラースタック全体は次のとおりです。

[INFO] 60 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] caffe .............................................. SUCCESS [  0.009 s]
[INFO] caffe-distri ....................................... FAILURE [ 16.940 s]
[INFO] caffe-grid ......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.841 s
[INFO] Finished at: 2016-11-11T03:50:31+08:00
[INFO] Final Memory: 14M/92M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (compile-generator) on project caffe-distri: Compilation failure: Compilation failure:
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[9919,31] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[8280,24] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[5761,31] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[5238,24] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[16820,31] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[16649,24] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[12460,33] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[21447,31] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[21492,31] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[19484,24] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[19519,24] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[76524,31] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[76553,31] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[76744,31] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[74714,24] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[74733,24] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[74847,24] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[6716,33] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17197,33] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17622,31] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17672,31] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17352,24] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17392,24] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[24932,33] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[25061,33] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[78929,33] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[79022,33] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[79946,33] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[18175,33] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[18324,33] cannot find symbol
[ERROR] symbol:   class ProtocolStringList
[ERROR] location: package com.google.protobuf
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[5655,26] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable input_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[6395,26] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable input_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[6718,22] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable input_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[9429,30] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable testNet_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[11676,30] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable testNet_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[12462,24] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable testNet_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[16751,26] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable stage_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17057,26] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable stage_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17199,22] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable stage_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17508,26] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable stage_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17511,32] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable notStage_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17938,26] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable stage_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17943,32] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable notStage_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[18177,22] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable stage_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[18326,25] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable notStage_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[21274,28] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable bottom_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[21277,22] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable top_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[23940,28] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable bottom_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[23945,22] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable top_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[24934,23] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable bottom_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[25063,20] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable top_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[75951,28] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable bottom_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[75954,22] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable top_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[75975,26] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable param_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[78308,28] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable bottom_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[78313,22] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable top_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[78353,26] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable param_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[78931,23] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable bottom_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[79024,20] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable top_ of type com.google.protobuf.LazyStringList
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[79948,22] cannot find symbol
[ERROR] symbol:   method getUnmodifiableView()
[ERROR] location: variable param_ of type com.google.protobuf.LazyStringList
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :caffe-distri
Makefile:19: recipe for target 'build' failed
make: *** [build] Error 1
4

2 に答える 2

1

これは、Protobuf のバージョンの問題によるものです。CaffeOnSpark は Protobuf 2.5 でうまく機能します。protobuf V2.5 をインストールして、もう一度お試しください。バージョン 2.6 は現在動作しません。

これらを試してください:

wget https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.zip unzip protobuf-2.5.0.zip cd protobuf-2.5.0/ ./configure --prefix=/usr/local/lib make make check sudo make install export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

Protobuf 2.5 がインストールされます。を使って確認してくださいprotoc --version

CaffeOnSpark フォルダーに戻り、 を実行しmake cleanますmake build。それはうまくいくはずです。

于 2017-01-18T04:32:22.790 に答える