Diaoul
Posts: 24
Joined: Thu Jul 12, 2012 9:45 pm

/opt/vc/lib no more in libraries searched paths (bug?)

Fri Aug 31, 2012 6:07 pm

Hi,

I recently updated my RPi and it seems that now /opt/vc/lib isn't in the default searched directory for libraries.
IMO it should be, as Raspbian is shipped with those libraries there should be included. Forcing RPATH is a bad design. I think this is a bug and should be fixed ASAP.

If it's not, could you tell me the correct way to do a .deb with binaries that use stuff in /opt/vc/lib?

Thanks

TarjeiB
Posts: 157
Joined: Thu Jul 12, 2012 3:33 pm

Re: /opt/vc/lib no more in libraries searched paths (bug?)

Sat Sep 01, 2012 3:54 pm

I noticed this too; quite annoying and broke many of my scripts.

I put in "export LD_LIBRARY_PATH=/opt/vc/lib" in my .bashrc and my scripts for a quick and dirty fix...

recliq
Posts: 38
Joined: Wed Jun 13, 2012 4:56 pm

Re: /opt/vc/lib no more in libraries searched paths (bug?)

Mon Sep 03, 2012 10:08 am

I think a maybe cleaner solution is to create a file /etc/ld.so.conf.d/vc.conf
and put the path in there:

Code: Select all

echo '/opt/lib/vc' > /etc/ld.so.conf.d/vc.conf
After that you should reboot or run ldconfig.

TarjeiB
Posts: 157
Joined: Thu Jul 12, 2012 3:33 pm

Re: /opt/vc/lib no more in libraries searched paths (bug?)

Mon Sep 03, 2012 2:13 pm

Thanks, that is a better solution for sure - but why did it break in the first place?

plugwash
Forum Moderator
Forum Moderator
Posts: 3453
Joined: Wed Dec 28, 2011 11:45 pm

Re: /opt/vc/lib no more in libraries searched paths (bug?)

Mon Sep 03, 2012 5:03 pm

asb, can you please comment on this.

asb
Forum Moderator
Forum Moderator
Posts: 853
Joined: Fri Sep 16, 2011 7:16 pm
Contact: Website

Re: /opt/vc/lib no more in libraries searched paths (bug?)

Mon Sep 03, 2012 5:10 pm

I've been unable to reproduce it, but do seem to have had a similar report from Dom. I've certainly not made any changes to /etc/ld.so.conf.d/vmcs.conf

TarjeiB
Posts: 157
Joined: Thu Jul 12, 2012 3:33 pm

Re: /opt/vc/lib no more in libraries searched paths (bug?)

Mon Sep 03, 2012 5:51 pm

I edited 00-vmcs.conf manually, and now it works again. Just deleted it all, retyped and ldconfig.

Did it happen on edit? Did it happen on ldconfig? I don't know - maybe ldconfig isn't doing what it should on reboot?

User avatar
Licaon_Kter
Posts: 240
Joined: Wed Sep 05, 2012 10:12 am
Location: Between the keyboard and the chair.

Re: /opt/vc/lib no more in libraries searched paths (bug?)

Wed Sep 05, 2012 10:21 am

I got this too, sometimes, but I'm messing around with kernel re-compiles so maybe this has something to do with it. A reboot seems to fix it. Strange stuff.
BFQ+BFS or RT on a RPi? 4'real: https://github.com/licaon-kter/ (source and compiled!)

Return to “Raspbian”