Skip Menu |
 

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id: 78457
Status: resolved
Priority: 0/
Queue: Perl-Dist-Strawberry

People
Owner: Nobody in particular
Requestors: smylers [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 3.003
Fixed in: (no value)



Subject: JSON::XS DLL missing in Strawberry Perl 5.16.0.1
Download (untitled) / with headers
text/plain 1.9k
JSON/XS/XS.dll appears to be missing from Strawberry Perl 5.16.0.1. This in turn means that the JSON module won't load, which prevents the cpan command from installing modules (including App::cpanminus). On Windows Server 2003 I installed the Strawberry Perl 5.16.0.1 (32bit) MSI from www.strawberryperl.com into C:\strawberry5.16.0\. For comparison I also installed 5.14.2.1 into C:\strawberry5.14.2\. With 5.16.0 the JSON module doesn't load: Show quoted text
>C:\strawberry5.16.0\perl\bin\perl -MJSON -E "say JSON->VERSION"
Can't locate loadable object for module JSON::XS in @INC (@INC contains: C:/strawberry5.16.0/perl/site/lib C:/strawberry5.16.0/perl/vendor/lib C:/strawberry5.16.0/perl/lib .) at (eval 5) line 2. Compilation failed in require at (eval 5) line 2. BEGIN failed--compilation aborted at (eval 5) line 2. at -e line 0. Compilation failed in require. BEGIN failed--compilation aborted. By comparison it works fine with 5.14.2: Show quoted text
>C:\strawberry5.14.2\perl\bin\perl -MJSON -E "say JSON->VERSION"
2.53 As such, I've been unable to install any Cpan modules on 5.16.0. Using the cpan command gives test failures complaining about JSON not being available, as does using cpanm (after downloading it manually), hence why I've labelled this is critical. The problem appears to be that the file perl/vendor/lib/auto/JSON/XS/XS.dll is missing from 5.16.0 (and present in 5.14.2). Comparing .dll files installed under perl/vendor/lib/auto/ between the two releases, most of the others in 5.14.2 are also in 5.16.0, and indeed modules such as Math::Pari load fine with both. The only couple missing from 5.16.0 are: * DB_File.dll -- but the DB_File module loads fine, so presumably that DLL is no longer required * DBD/mysql/libmysql_.dll (note not mysql.dll, which is there) -- indeed using DBD::mysql doesn't work with 5.16.0; this may require a separate bug if it isn't for the same reason that the JSON DLL is missing. Cheers
On Thu Jul 19 10:50:41 2012, smylers@cpan.org wrote:
Show quoted text
> JSON/XS/XS.dll appears to be missing from Strawberry Perl 5.16.0.1. This
> in turn means that the JSON module won't load, which prevents the cpan
> command from installing modules (including App::cpanminus).
>
> On Windows Server 2003 I installed the Strawberry Perl 5.16.0.1 (32bit)
> MSI from www.strawberryperl.com into C:\strawberry5.16.0\. For
> comparison I also installed 5.14.2.1 into C:\strawberry5.14.2\.
>
> With 5.16.0 the JSON module doesn't load:
>
> >C:\strawberry5.16.0\perl\bin\perl -MJSON -E "say JSON->VERSION"
> Can't locate loadable object for module JSON::XS in @INC (@INC
> contains: C:/strawberry5.16.0/perl/site/lib
> C:/strawberry5.16.0/perl/vendor/lib C:/strawberry5.16.0/perl/lib .) at
> (eval 5) line 2.
> Compilation failed in require at (eval 5) line 2.
> BEGIN failed--compilation aborted at (eval 5) line 2.
> at -e line 0.
> Compilation failed in require.
> BEGIN failed--compilation aborted.

I have tried a clean install of 5.16.0.1 (both MSI installer and ZIP) but on my Windows box c:\strawberry\perl\vendor\lib\auto\JSON\XS\XS.dll is installed without any trouble and perl -MJSON -E "say JSON->VERSION" works as expected.

Could you please give more details how you have installed strawberry perl?

...

Show quoted text
> The only couple missing from 5.16.0 are:
>
> * DB_File.dll -- but the DB_File module loads fine, so presumably that
> DLL is no longer required

It is now in c:\strawberry\perl\lib\auto\DB_File\DB_File.dll

Show quoted text
> * DBD/mysql/libmysql_.dll (note not mysql.dll, which is there) -- indeed
> using DBD::mysql doesn't work with 5.16.0; this may require a separate
> bug if it isn't for the same reason that the JSON DLL is missing.

The DBD/mysql/libmysql_.dll was kind of a hack now we have only c:\strawberry\c\bin\libmysql_.dll and you need to have properly set PATH (containing c:\strawberry\c\bin) to have working DBD::mysql

--
kmx

Show quoted text
>
> Cheers

Please check the latest 5.16.1.1
Download (untitled) / with headers
text/plain 752b
On Tue Jul 31 16:33:30 2012, KMX wrote: Show quoted text
> On Thu Jul 19 10:50:41 2012, smylers@cpan.org wrote: >
> > JSON/XS/XS.dll appears to be missing from Strawberry Perl 5.16.0.1. > > > > On Windows Server 2003 I installed the Strawberry Perl 5.16.0.1 > > (32bit) MSI from www.strawberryperl.com
> > Could you please give more details how you have installed strawberry > perl?
I downloaded this file: http://strawberryperl.com/download/5.16.0.1/strawberry-perl-5.16.0.1-32bit.msi Then double-clicked on it, and pressed Enter a bunch of times to accept the default choices. That was it! Show quoted text
> Please check the latest 5.16.1.1
The same thing happens, unfortunately: C:\strawberry\perl\vendor\lib\auto\JSON\XS\ just contains .packlist and XS.bs. Cheers Smylers
Subject: Re: [rt.cpan.org #78457] JSON::XS DLL missing in Strawberry Perl 5.16.0.1
Date: Mon, 13 Aug 2012 15:46:27 +0200
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: kmx <kmx [...] volny.cz>
Download (untitled) / with headers
text/plain 682b
Show quoted text
> ... > > The same thing happens, unfortunately: > C:\strawberry\perl\vendor\lib\auto\JSON\XS\ just contains .packlist and > XS.bs.
That is really strange, on my box there is: c:\strawberry\perl\vendor\lib\auto\JSON\XS\XS.dll - size 54272 - sha1 b0b7c8a1660a132c475160e677695e3dfc916bf9 What antivirus are you using? (can you temporarily disable it?) If MSI installation fails you can try to get ZIP version: 1/ get http://strawberryperl.com/download/5.16.1.1/strawberry-perl-5.16.1.1-32bit.zip 2/ unpack it into c:\strawberry 3/ run c:\strawberry\relocation.pl.bat 4/ run c:\strawberry\update_env.pl.bat 5/ check for c:\strawberry\perl\vendor\lib\auto\JSON\XS\XS.dll -- kmx
Subject: Re: [rt.cpan.org #78457] JSON::XS DLL missing in Strawberry Perl 5.16.0.1
Date: Tue, 14 Aug 2012 11:50:20 +0100
To: kmx via RT <bug-Perl-Dist-Strawberry [...] rt.cpan.org>
From: Smylers <smylers [...] cpan.org>
Download (untitled) / with headers
text/plain 1.2k
kmx via RT writes: Show quoted text
> What antivirus are you using?
Sorry, this does turn out to be an anti-virus problem. (I had thought no anti-virus software was running. My apologies for being wrong about that. This isn't my computer. I'd seen that something called Kaspersky Anti-Virus was installed, but it said 'This license has expired', which I (wrongly) took that to mean that the software wasn't running any more, now it no longer had a license. Unfortunately it had also been configured to have all notifications disabled, so there was no sign when it had spotted a problem. Windows, anti-virus software, and commercial software (with licenses that might expire) are all outside my comfort zone, and areas I'm quite ignorant about. My apologies for suggesting there was a problem with Strawberry Perl.) Kaspersky Anti-Virus is claiming that JSON/XS/XS.dll is infected with "Trojan program packed.win32.Katusha.n". However, it says its signatures are obsolete. I'll talk to the owner of this computer about getting the signatures updated, then check if the problem still occurs. Show quoted text
> (can you temporarily disable it?)
Yep, with Kaspersky Anti-Virus disabled, Strawberry Perl installs just fine. Thanks Smylers -- http://twitter.com/Smylers2
Subject: Re: [rt.cpan.org #78457] JSON::XS DLL missing in Strawberry Perl 5.16.0.1
Date: Tue, 14 Aug 2012 13:02:01 +0200
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: kmx <kmx [...] volny.cz>
Download (untitled) / with headers
text/plain 217b
Show quoted text
> Yep, with Kaspersky Anti-Virus disabled, Strawberry Perl installs just > fine.
I am happy that we have solved your problem. But it is not a good news that Kaspersky Anti-Virus is blocking JSON/XS.dll :( -- kmx
Subject: Re: [rt.cpan.org #78457] JSON::XS DLL missing in Strawberry Perl 5.16.0.1
Date: Fri, 17 Aug 2012 15:51:51 +0100
To: kmx via RT <bug-Perl-Dist-Strawberry [...] rt.cpan.org>
From: Smylers <smylers [...] cpan.org>
Download (untitled) / with headers
text/plain 298b
kmx via RT writes: Show quoted text
> But it is not a good news that Kaspersky Anti-Virus is blocking > JSON/XS.dll :(
With an up-to-date virus signature database, it might not do. I've asked the owner of the computer to get a newer licence on there, so we can find out. Smylers -- http://twitter.com/Smylers2
Subject: Re: [rt.cpan.org #78457] JSON::XS DLL missing in Strawberry Perl 5.16.0.1
Date: Tue, 4 Sep 2012 15:40:08 +0100
To: kmx via RT <bug-Perl-Dist-Strawberry [...] rt.cpan.org>
From: Smylers <smylers [...] cpan.org>
Download (untitled) / with headers
text/plain 594b
kmx via RT writes: Show quoted text
> it is not a good news that Kaspersky Anti-Virus is blocking > JSON/XS.dll
The computer has been upgraded. It now has the latest Kaspersky Anti-Virus, and XS.dll is no longer detected as inflected. However, the upgrade also involved an OS change (replacing Windows 2003 with Windows 7), so unfortunately it isn't possible to be completely sure it was the Kaspersky update that fixed things. Thanks again for your help. Smylers -- New series of TV puzzle show 'Only Connect' (some questions by me) Mondays at 20:30 on BBC4, or iPlayer: http://www.bbc.co.uk/onlyconnect


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.