[solved] Kong Build r37900m - opkg / JSON.pm

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
martin-h
DD-WRT User


Joined: 06 Jun 2006
Posts: 125

PostPosted: Fri Dec 07, 2018 11:37    Post subject: [solved] Kong Build r37900m - opkg / JSON.pm Reply with quote
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
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12836
Location: Netherlands

PostPosted: Fri Dec 07, 2018 11:50    Post subject: Reply with quote
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
martin-h
DD-WRT User


Joined: 06 Jun 2006
Posts: 125

PostPosted: Fri Dec 07, 2018 12:04    Post subject: Reply with quote
Thanks, yes it's his own repository, I just copied the list:
https://docs.google.com/document/d/1RS5BeDBSYqFNDHUo5rmswmiyAiXYGQETqw6F5GDsVLI/edit?usp=drivesdk

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..
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12836
Location: Netherlands

PostPosted: Fri Dec 07, 2018 12:14    Post subject: Reply with quote
Install from the Enware repository
see: https://wiki.dd-wrt.com/wiki/index.php/Installing_Entware

Basically run the following commands:
Code:
cd /opt
wget http://bin.entware.net/armv7sf-k3.2/installer/generic.sh
sh generic.sh

opkg update
opkg upgrade

_________________
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
martin-h
DD-WRT User


Joined: 06 Jun 2006
Posts: 125

PostPosted: Fri Dec 07, 2018 12:38    Post subject: Reply with quote
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..)
martin-h
DD-WRT User


Joined: 06 Jun 2006
Posts: 125

PostPosted: Fri Dec 07, 2018 14:44    Post subject: Reply with quote
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.

any hints?
<Kong>
DD-WRT Guru


Joined: 15 Dec 2010
Posts: 4339
Location: Germany

PostPosted: Fri Dec 07, 2018 14:45    Post subject: Reply with quote
martin-h wrote:
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?

opkg update
opkg install perlbase-json-pp

gives you a json parser in perl when using my repo

_________________
KONG PB's: http://www.desipro.de/ddwrt/
KONG Info: http://tips.desipro.de/
martin-h
DD-WRT User


Joined: 06 Jun 2006
Posts: 125

PostPosted: Fri Dec 07, 2018 14:47    Post subject: Reply with quote
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?)
martin-h
DD-WRT User


Joined: 06 Jun 2006
Posts: 125

PostPosted: Mon Dec 10, 2018 15:48    Post subject: Reply with quote
ok, I was succesfull with a manual installation via cpan. (as described here in the "manual" section: https://github.com/Entware/Entware-ng/wiki/Self-installation-of-perl-modules
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum