Something changed... I was running 0.21 or .22 for some time. Did a git
pull and updated. Now it's complaining about libjson-rpc-perl not being
installed. I'm using the native distro package and have even reinstalled
it.

rcampbel@Godzilla~/project/squeezy $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:        14.04
Codename:       trusty

rcampbel@Godzilla~/project/squeezy $ git pull
Already up-to-date.

rcampbel@Godzilla~/project/squeezy $ ./squeezy 
Install JSON support: sudo apt-get install libjson-rpc-perl at ./squeezy
line 113.
JSON features not supported: JSON::RPC::Client not available... Trying
to cope. at ./squeezy line 115.

rcampbel@Godzilla~/project/squeezy $ sudo apt-get install
libjson-rpc-perl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libjson-rpc-perl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Then I looked above line 113 in squeezy...
return 1 if defined $INC{'JSON/RPC/Client.pm'}; 

so, I ran 'locate Client.pm'

rcampbel@Godzilla~/project/squeezy $ locate Client.pm
/usr/lib/perl5/SVN/Client.pm
/usr/share/perl/5.18.2/CPAN/HTTP/Client.pm
/usr/share/perl5/JSON/RPC/Legacy/Client.pm    <-- aha!!
/usr/share/perl5/RPC/PlClient.pm

So, I hacked... and added in "Legacy" in all the right places, and it
appears to work.

rcampbel@Godzilla~/project/squeezy $ diff /usr/local/bin/squeezy
squeezy
58c58
< my $module     = "JSON::RPC::Legacy::Client";
---
> my $module     = "JSON::RPC::Client";
105c105
<     return 1 if defined $INC{'JSON/RPC/Legacy/Client.pm'};
---
>     return 1 if defined $INC{'JSON/RPC/Client.pm'};
108,109c108,109
<         require JSON::RPC::Legacy::Client;
<         JSON::RPC::Legacy::Client->import();
---
>         require JSON::RPC::Client;
>         JSON::RPC::Client->import();
240c240
<    my $client = $server->{JSONC} ? $server->{JSONC} : new
JSON::RPC::Legacy::Client;
---
>    my $client = $server->{JSONC} ? $server->{JSONC} : new
JSON::RPC::Client;


I don't quite know the best way to submit this as a patch that will work
for both cases - otherwise I would have simply submitted a merge request
in github. Hope this helps someone else out :)


------------------------------------------------------------------------
rcampbel3's Profile: http://forums.slimdevices.com/member.php?userid=38284
View this thread: http://forums.slimdevices.com/showthread.php?t=87636

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to