why I got the error that said "Caffe version 0.11.0 required. libcaffe-nv.so.0 does not match"?

76 views
Skip to first unread message

胡展維

unread,
Oct 9, 2015, 12:40:28 PM10/9/15
to DIGITS Users
why I got the error that said "Caffe version 0.11.0 required. libcaffe-nv.so.0 does not match"?
I have libcaffe-nv.a  libcaffe-nv.so  libcaffe-nv.so.0  libcaffe-nv.so.0.11.0 in my caffe/build/lib
thanks!

Luke Yeager

unread,
Oct 9, 2015, 1:09:19 PM10/9/15
to DIGITS Users
I would expect you to have a symlink at libcaffe-nv.so.0.11 as well.

$ ls -l build/lib/
total
6932
lrwxrwxrwx
1 lyeager git-user      14 Oct  2 09:50 _caffe.so -> _caffe.so.0.13
lrwxrwxrwx
1 lyeager git-user      16 Oct  2 09:50 _caffe.so.0.13 -> _caffe.so.0.13.2
-rwxr-xr-x 1 lyeager git-user 1273673 Oct  2 09:50 _caffe.so.0.13.2
lrwxrwxrwx
1 lyeager git-user      19 Oct  2 09:49 libcaffe-nv.so -> libcaffe-nv.so.0.13
lrwxrwxrwx
1 lyeager git-user      21 Oct  2 09:49 libcaffe-nv.so.0.13 -> libcaffe-nv.so.0.13.2
-rwxr-xr-x 1 lyeager git-user 4792476 Oct  2 09:49 libcaffe-nv.so.0.13.2
-rw-r--r-- 1 lyeager git-user 1024940 Oct  2 09:48 libproto.a

If you inspect the library, you should see that the SONAME is libcaffe-nv.0.11:

$ readelf -a build/lib/libcaffe-nv.so | grep SONAME
 
0x000000000000000e (SONAME)             Library soname: [libcaffe-nv.so.0.13]

胡展維

unread,
Oct 9, 2015, 1:19:14 PM10/9/15
to DIGITS Users
Hello Luke! Thanks for answering :)
0x000000000000000e (SONAME)             Library soname: [libcaffe-nv.so.0]

It's my result!
but how can I upgrade it to libcaffe-nv.so.0.13?
Thanks

胡展維於 2015年10月10日星期六 UTC+8上午12時40分28秒寫道:

Luke Yeager

unread,
Oct 9, 2015, 6:57:18 PM10/9/15
to DIGITS Users
Oh... looks like we've got a bug in the Makefile versioning. That's supposed to be libcaffe-nv-so.0.11.

I've fixed it in the v0.13 branch with this pull request - I suggest you upgrade to v0.13 if you want to continue using Make. I usually use CMake, personally.

Oddly, DIGITS is still working for me when I build v0.11.0 with Make, like you did.

What version of DIGITS do you have? Check digits/__init__.py.

chanwei Hu

unread,
Oct 10, 2015, 1:39:12 AM10/10/15
to DIGITS Users
thanks for answering :)
finally I can execute DIGITS with the right version!
but I got the other problem like this:

 ___ ___ ___ ___ _____ ___
 |   \_ _/ __|_ _|_   _/ __|
 | |) | | (_ || |  | | \__ \
 |___/___\___|___| |_| |___/

Something went wrong when loading libcudart.so
Traceback (most recent call last):
  File "digits/digits-devserver", line 40, in <module>
    from digits.webapp import app, socketio, scheduler
  File "/home/huchanwei123/digits-1.1/digits/digits/webapp.py", line 6, in <module>
    from flask import Flask
  File "/home/huchanwei123/digits-1.1/venv/lib/python2.7/site-packages/flask/__init__.py", line 17, in <module>
    from werkzeug.exceptions import abort
  File "/home/huchanwei123/digits-1.1/venv/lib/python2.7/site-packages/werkzeug/__init__.py", line 154, in <module>
    __import__('werkzeug.exceptions')
  File "/home/huchanwei123/digits-1.1/venv/lib/python2.7/site-packages/werkzeug/exceptions.py", line 67, in <module>
    from werkzeug._internal import _get_environ
  File "/home/huchanwei123/digits-1.1/venv/lib/python2.7/site-packages/werkzeug/_internal.py", line 15, in <module>
    from datetime import datetime, date
ImportError: No module named datetime

and I don't know what it means LOL
thanks!

chanwei Hu於 2015年10月10日星期六 UTC+8上午12時40分28秒寫道:

chanwei Hu

unread,
Oct 10, 2015, 1:40:06 AM10/10/15
to DIGITS Users
My DIGITS version is DIGITS-1.1

chanwei Hu於 2015年10月10日星期六 UTC+8上午12時40分28秒寫道:

Luke Yeager

unread,
Oct 12, 2015, 1:01:00 PM10/12/15
to DIGITS Users
You don't have datetime? That's weird. Is python installed on your system? What OS are you using?

FYI, you can always just install datetime with pip install datetime.

My DIGITS version is DIGITS-1.1

You'll probably be happier if you update DIGITS as well. v2.0 should be very stable. Or you can be a little more adventurous and get v2.2.  

Sameer Khan

unread,
Jun 14, 2016, 6:00:26 AM6/14/16
to DIGITS Users

AR -o .build_release/lib/libcaffe-nv.a
LD -o .build_release/lib/libcaffe-nv.so.0.11.0
/usr/bin/ld:/usr/local/cuda/lib64/libcudnn.so: file format not recognized; treating as linker script
/usr/bin/ld:/usr/local/cuda/lib64/libcudnn.so:1: syntax error
collect2: error: ld returned 1 exit status
make: *** [.build_release/lib/libcaffe-nv.so.0.11.0] Error 1

i am getting this error please help me out

Luke Yeager

unread,
Jun 17, 2016, 12:43:36 PM6/17/16
to DIGITS Users
Reply all
Reply to author
Forward
0 new messages