Posted: Fri Dec 07, 2018 11:37 Post subject: [solved] Kong Build r37900m - opkg / JSON.pm
Hello,
now it's possible to install perl via kongs opkg, but I can't find/install JSON.pm (which I also need for fhem, I already installed all json-related packages from there). Could someone help me?
Thanks!
Last edited by martin-h on Mon Dec 10, 2018 15:49; edited 1 time in total
Joined: 18 Mar 2014 Posts: 12878 Location: Netherlands
Posted: Fri Dec 07, 2018 11:50 Post subject:
Kong has its own repository (available if you run bootstrap in his builds)
You could of course also use the Entware repository.
I think they have jansson available which is a C library for encoding, decoding and manipulating JSON data.
Never used it, so I do not know if this is any help. _________________ Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399 Install guide R7800/XR500:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614 Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Cant find jansson there, and I already installed the few json-related packages without success. I think it has to be added by him (as he did lately with perl)? Without any knowledge as me it's difficult to solve it for myself..
Ah, of course, thanks, I somehow missed that. Worked, I already could install another missing package (zlib) and for json I'll have to look which is the corresponding package, but I think it'll work. (but perhaps I now run into problems because of now two opkg-installations and some missmatch, but if, I'll begin from scratch..)
ok, I began from scratch, but this problem remains:
Code:
2018.12.07 15:14:31 1: reload: Error:Modul 31_HUEDevice deactivated:
Can't locate JSON.pm in @INC (you may need to install the JSON module) (@INC contains: . /opt/lib/perl5/5.28 ./FHEM) at ./FHEM/31_HUEDevice.pm line 16, <$fh> line 187.
BEGIN failed--compilation aborted at ./FHEM/31_HUEDevice.pm line 16, <$fh> line 187.
although I installed quite a few modules with reference to json.
Ah, of course, thanks, I somehow missed that. Worked, I already could install another missing package (zlib) and for json I'll have to look which is the corresponding package, but I think it'll work. (but perhaps I now run into problems because of now two opkg-installations and some missmatch, but if, I'll begin from scratch..)
Are you sure you need JSON.pm or just a json parser in perl?
Thanks Richard! No, perlbase-json-pp seems not enough, I did install this already.. (I now only have entware direct, could this lead to problems with your mod?)