cannot perform caffe make all to install

130 views
Skip to first unread message

Gonzalo Benito

unread,
Jun 15, 2017, 10:00:27 AM6/15/17
to Caffe Users
Hello, i have been wondering here for a month now and still cannot find a suitable solution for the following problem:

When trying to perform 'make all -j8' following the install and compile instructions for Caffe, i constantly get the following error:

AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so.1.0.0
/usr/bin/ld: no se puede encontrar -lhdf5_serial_h
collect2: error: ld returned 1 exit status
Makefile:573: fallo en las instrucciones para el objetivo '.build_release/lib/libcaffe.so.1.0.0'
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1

When looking for a solution to this, i came across the simlink op:

within /usr/lib/x86_64-linux-gnu

$ sudo ln -s libhdf5_serial.so.8.0.2 libhdf5.so
$ sudo ln -s libhdf5_serial.so.10 libhdf5_serial.so

Still, whenever i try this i get the following message:

$ sudo ln -s /usr/lib/x86_64-linux-gnu/libhdf5_serial.so.10 /usr/lib/x86_64-linux-gnu/libhdf5.so
ln: fallo al crear el enlace simbólico '/usr/lib/x86_64-linux-gnu/libhdf5.so': El archivo ya existe

$ sudo ln -s /usr/lib/x86_64-linux-gnu/libhdf5_serial.so.10 /usr/lib/x86_64-linux-gnu/libhdf5_serial.so
ln: fallo al crear el enlace simbólico '/usr/lib/x86_64-linux-gnu/libhdf5_serial.so': El archivo ya existe

So i am in a loophole where i cannot make caffe and none of the methods seen so far work.

I have python 2.7 and Opencv 3.1 from Anaconda 4.2 on Ubuntu 16.04

Please, does anybody have an idea on this?

Jonathan R. Williford

unread,
Jun 15, 2017, 11:33:52 AM6/15/17
to Gonzalo Benito, Caffe Users
I would unlink those links, you don't need to do this. You need to add the path of hdf5 to your Makefile.config. Look at my config:

If you this doesn't fix the error, perhaps my Youtube video would be helpful:

Cheers,
Jonathan

--
You received this message because you are subscribed to the Google Groups "Caffe Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caffe-users+unsubscribe@googlegroups.com.
To post to this group, send email to caffe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/caffe-users/76b551ef-c988-4881-9cd4-4d4869199e9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages