linux-nfc / neard

NFC Daemon for Linux
GNU General Public License v2.0
30 stars 11 forks source link

Unable to find NFC netlink family #18

Open kannan-sosaley opened 2 years ago

kannan-sosaley commented 2 years ago

May 23 16:06:28 raspberrypi neard[2379]: neard[2379]: NEAR daemon version 0.18 May 23 16:06:28 raspberrypi neard[2379]: NEAR daemon version 0.18 May 23 16:06:28 raspberrypi neard[2379]: neard[2379]: Unable to find NFC netlin> May 23 16:06:28 raspberrypi neard[2379]: Unable to find NFC netlink family May 23 16:06:28 raspberrypi neard[2379]: neard[2379]: netlink init failed May 23 16:06:28 raspberrypi neard[2379]: neard[2379]: NETLINK INITIALIZATIO> May 23 16:06:28 raspberrypi neard[2379]: netlink init failed May 23 16:06:28 raspberrypi neard[2379]: NETLINK INITIALIZATION FAILED *** May 23 16:06:28 raspberrypi systemd[1]: neard.service: Main process exited, cod> May 23 16:06:28 raspberrypi systemd[1]: neard.service: Failed with result 'exit

kannan-sosaley commented 2 years ago

rpi@raspberrypi:~ $ nfctool -l Unable to find NFC netlink family netlink init failed No such file or directory I use libnl-3-dev libnl-nf-3-dev, as opposed to what stated libnl2 kindly please address my issue

mgreeraz commented 2 years ago

I will try to get to this and several other issues this weekend.

Mark

On 5/23/22 4:01 AM, kannan-sosaley wrote:

@.***:~ $ nfctool -l Unable to find NFC netlink family netlink init failed No such file or directory

kindly please address my issue

— Reply to this email directly, view it on GitHub https://github.com/linux-nfc/neard/issues/18#issuecomment-1134526311, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAON5EWBL3ER3335EO7OA2LVLNQPLANCNFSM5WVMA5LA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

advent-embedded commented 2 years ago

Thanks and i greatly look forward for a fix

advent-embedded commented 2 years ago

Install all dependencies libnl-3-dev libnl-nf-3-dev libnl-route-3-dev sudo npm i netlink-nfc

npm WARN enoent ENOENT: no such file or directory, open '/home/sosdt002/package.json' npm WARN sosdt002 No description npm WARN sosdt002 No repository field. npm WARN sosdt002 No README data npm WARN sosdt002 No license field.

Errror still persists

mgreeraz commented 2 years ago

Erm, you ran 'npm'...  Are you sure you wanted to use that???

Mark

On 5/31/22 12:45 AM, Kannan wrote:

i did sudo npm i netlink-nfc

npm WARN enoent ENOENT: no such file or directory, open '/home/sosdt002/package.json' npm WARN sosdt002 No description npm WARN sosdt002 No repository field. npm WARN sosdt002 No README data npm WARN sosdt002 No license field.

Errror still persists

— Reply to this email directly, view it on GitHub https://github.com/linux-nfc/neard/issues/18#issuecomment-1141781340, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAON5ET35LXF6MECV45NCDTVMW7RZANCNFSM5WVMA5LA. You are receiving this because you commented.Message ID: @.***>

kannan-sosaley commented 2 years ago

netlink-nfc couldn't be found anywhere except from npm

https://www.npmjs.com/package/netlink-nfc

Any other means to overcome this issue

krzk commented 2 years ago

The neard does not use anything from npm, so you still miss libraries.

kannan-sosaley commented 2 years ago

can u list what am i missing apart from libnl-3-dev libnl-nf-3-dev libnl-route-3-dev Screenshot from 2022-06-01 12-39-36

krzk commented 2 years ago

I don't what system do you have, what packages did you install, so I have no clue what you are missing. The README file has a list of dependencies. Optionally you can check CI installation scripts for specific Ubuntu flavor in https://github.com/linux-nfc/neard/tree/master/ci .

kannan-sosaley commented 2 years ago

I tried and tested on both Ubuntu on X86_64 and Raspiberry pi4, both results to same error Digging the source from netlink.c i found kinda socket init error i use Ubuntu environment. Screenshot from 2022-06-01 12-55-28

krzk commented 2 years ago

Do you have all the required packages as described by CI installation scripts?