Topic: [SOLVED] help with nfc-list error libraries: libnfc.so.1

Hello guys, could you please advice what/where to check. Ubuntu 11.10, ACR122u, pcscd --foreground --debug running, reader reacting, but nfc-list giving this error:

nfc-list: error while loading shared libraries: libnfc.so.1: cannot open shared object file: No such file or directory

nfc 1.4.2

thank you very much, Lukas

Re: [SOLVED] help with nfc-list error libraries: libnfc.so.1

How did you install libnfc on your system ?

IMHO, you simply have installed libnfc in default /usr/local prefix and /usr/local/lib path is not in ld's paths.
If so, add /usr/local/lib to /etc/ld.so.conf then run ldconfig.

Romuald Conty

Re: [SOLVED] help with nfc-list error libraries: libnfc.so.1

libnfc was compiled, from scratch, it starts working now smile

Re: [SOLVED] help with nfc-list error libraries: libnfc.so.1

thx smile

Re: [SOLVED] help with nfc-list error libraries: libnfc.so.1

I have the same Problem: I have installed 1.4.2 on Ubuntu 11.04 this works fine, I had problems working with nfc-eventd so I removed 1.4.2 and installed 1.5.1 and got the error:

nfc-list: error while loading shared libraries: libnfc.so.2: cannot open shared object file: No such file or directory

libnfc.so.2 exists in /usr/local/lib

Can I do the same to solve the problem?
include /usr/local/lib

how can I run ldconfig?

thanks
Sedat

Re: [SOLVED] help with nfc-list error libraries: libnfc.so.1

sediak wrote:

I have the same Problem: I have installed 1.4.2 on Ubuntu 11.04 this works fine

libnfc 1.4.2 is quite old and will become obsolete in few months if I have the time to improve 1.5.x series.

sediak wrote:

I had problems working with nfc-eventd so I removed 1.4.2 and installed 1.5.1 and got the error:

Please note that you need the latest version (0.1.5) of nfc-eventd to run on top of libnfc 1.5.1.

sediak wrote:

nfc-list: error while loading shared libraries: libnfc.so.2: cannot open shared object file: No such file or directory
libnfc.so.2 exists in /usr/local/lib
Can I do the same to solve the problem?

Yes, under Ubuntu 11.04 you could run these commands:

sudo sh -c "echo /usr/local/lib > /etc/ld.so.conf.d/usr-local-lib.conf"
sudo ldconfig

Please note there are packages available for Ubuntu 11.04 and 11.10 in the Thomas Hood's PPA.
http://www.libnfc.org/community/post/2680/#p2680

Romuald Conty

Re: [SOLVED] help with nfc-list error libraries: libnfc.so.1

Hi Romuald,

thanks very much for your help. nfc-eventd work now I did follow your advice today.

But if I start it without a tag inserted I get the error: ERR: NFC device not found

It works fine when I start it with an tag inserted (logs time of insertion and remove). But after I remove the tag, it doesn't work if you wait longer than two minutes to insert a tag again, the tag is not recognized.

Do you know about this problems? Or is it just my system!

regards

Last edited by sediak (2011-11-21 15:40:45)

Re: [SOLVED] help with nfc-list error libraries: libnfc.so.1

Hello,

sediak wrote:

But if I start it without a tag inserted I get the error: ERR: NFC device not found
[...]
Do you know about this problems? Or is it just my system!

You probably have the worst NFC device ever: the famous ACR122... And you are probally an unruly guy that did not read the README file, isn't it ?
If so, you will probably find the answer alone smile

Romuald Conty

Re: [SOLVED] help with nfc-list error libraries: libnfc.so.1

yes i guess i have the worst reader, i got it from a professor to work on a project with it. Which one would you advise?

The README file is empty!! sad
http://code.google.com/p/nfc-tools/sour … 1.5/README

cheers

Re: [SOLVED] help with nfc-list error libraries: libnfc.so.1

Hello,

The ACR122's driver comes from libnfc not nfc-eventd. So the right README is:
http://code.google.com/p/libnfc/source/ … unk/README

Romuald Conty

Re: [SOLVED] help with nfc-list error libraries: libnfc.so.1

thank you very very much, such a quick response time you are awesome.