LoginSignup
0
0

More than 3 years have passed since last update.

CaffeをBuildする時のライブラリエラー(`inflateValidate@ZLIB_1.2.9' に対する定義されていない参照です)

Last updated at Posted at 2018-06-05

Ubuntu16.04にCaffeをビルドしてインストールする際のエラーについてのメモです。

環境

  • Ubuntu 16.04
  • CUDA 8.0
  • cuDNN 6.0
  • Anaconda3

エラー内容

公式ガイドに従ってmake (make all)した時、

CXX tools/finetune_net.cpp
CXX/LD -o .build_release/tools/finetune_net.bin
CXX tools/train_net.cpp
CXX/LD -o .build_release/tools/train_net.bin
CXX tools/upgrade_net_proto_text.cpp
CXX/LD -o .build_release/tools/upgrade_net_proto_text.bin
/(anacondaがインストールされているディレクトリ)/anaconda3/lib/libpng16.so.16: `inflateValidate@ZLIB_1.2.9' に対する定義されていない参照です
collect2: error: ld returned 1 exit status
Makefile:625: ターゲット '.build_release/tools/upgrade_net_proto_text.bin' のレシピで失敗しました
make: *** [.build_release/tools/upgrade_net_proto_text.bin] エラー 1

となることがあります。

手順通り進めているのであれば、

export LD_LIBRARY_PATH="/(anacondaがインストールされているディレクトリ)/anaconda3/lib:$LD_LIBRARY_PATH"

を一行 ~/.bashrc に追加して再度ターミナルを起動すれば大丈夫です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0