-
Notifications
You must be signed in to change notification settings - Fork 357
Installation Error while building CaffeOnSpark #75
Comments
Please check similar bug/thread. You need protobuf On Wednesday, June 8, 2016, RedHaur notifications@github.com wrote:
|
but I have installed protobuf. No matter which version I use, 2.6.0 or 2.5 it doesn't work |
I remake the file , and I still get errors. One of lines says
any idea? |
Please check if your LD_LIBRARY_PATH is set correctly or not |
you mean these lines? I suppose they should be done after successfully build export LD_LIBRARY_PATH=${CAFFE_ON_SPARK}/caffe-public/distribute/lib:${CAFFE_ON_SPARK}/caffe-distri/distribute/lib |
It seems I don't have caffe.proto file. Could anyone help me. Can I just copy one and put it in the directory? |
Do you have protoc available in command line ? On Thursday, June 9, 2016, RedHaur notifications@github.com wrote:
|
Well the linker will look for files in LD_LIBRARY_PATH On Wednesday, June 8, 2016, RedHaur notifications@github.com wrote:
|
How could I know whether protoc is available in command line?
|
Ok you are using OS X in which case set DYLD_LIBRARY_PATH On Thursday, June 9, 2016, RedHaur notifications@github.com wrote:
|
I am not familiar with unix and linux system. Could you please explain it in more details. Like setting DYLD_LIBRARY_PATH, and how to specify lib path for protobuf. Thank you |
I add libprotobuf9.dylib to DYLD_LIBRARY_PTH , but it doesn't work. Which path does it search ? |
I should clarify what I have done so far.
Then I follow the steps in Makefile in caffe-public to manually copy and install files to distribute. then when I make build again, it says
Finally, I disable python installation in Makefile.config, an remake it again, then I got the test error I posted above. How should I do? Can I avoid installing python? |
It seems I need to use libprotobuf.9.dylib, but protobuf 2.5.0 uses libprotobuf.8.dylib |
I have run caffe and spark successfully. However, when I am building caffeonspark, it shows many warning and errors. I can't understand what these things mean and have no idea what to do. Could someone helps me?
cd caffe-public; make proto; make -j4 -e distribute; cd ..
make[1]: Nothing to be done for `proto'.
NVCC src/caffe/layers/absval_layer.cu
NVCC src/caffe/layers/base_data_layer.cu
NVCC src/caffe/layers/batch_norm_layer.cu
NVCC src/caffe/layers/batch_reindex_layer.cu
nvcc fatal : The version ('70300') of the host compiler ('Apple clang') is not supported
nvcc fatal : The version ('70300') of the host compiler ('Apple clang') is not supported
nvcc fatal : The version ('70300') of the host compiler ('Apple clang') is not supported
make[1]: *** [.build_release/cuda/src/caffe/layers/batch_reindex_layer.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [.build_release/cuda/src/caffe/layers/base_data_layer.o] Error 1
make[1]: *** [.build_release/cuda/src/caffe/layers/absval_layer.o] Error 1
nvcc fatal : The version ('70300') of the host compiler ('Apple clang') is not supported
make[1]: *** [.build_release/cuda/src/caffe/layers/batch_norm_layer.o] Error 1
export LD_LIBRARY_PATH="/home/y/lib64:/home/y/lib64/mkl/intel64:/Users/Red_Hair/Downloads/CaffeOnSpark/caffe-public/distribute/lib:/Users/Red_Hair/Downloads/CaffeOnSpark/caffe-distri/distribute/lib:/usr/lib64:/lib64 "; mvn -B package
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.yahoo.ml:caffe-grid:jar:0.1-SNAPSHOT
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] caffe
[INFO] caffe-distri
[INFO] caffe-grid
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building caffe 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building caffe-distri 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (proto) @ caffe-distri ---
[INFO] Executing tasks
protoc:
[exec] make[1]: *** No rule to make target
../caffe-public/distribute/proto/caffe.proto', needed by
src/main/java/caffe/Caffe.java'. Stop.[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] caffe .............................................. SUCCESS [ 0.005 s]
[INFO] caffe-distri ....................................... FAILURE [ 3.871 s]
[INFO] caffe-grid ......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.188 s
[INFO] Finished at: 2016-06-08T15:03:14+08:00
[INFO] Final Memory: 8M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (proto) on project caffe-distri: An Ant BuildException has occured: exec returned: 2
[ERROR] around Ant part ...... @ 5:104 in /Users/Red_Hair/Downloads/CaffeOnSpark/caffe-distri/target/antrun/build-protoc.xml
[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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :caffe-distri
make: *** [build] Error 1
The text was updated successfully, but these errors were encountered: