Skip Menu |

This queue is for tickets about the Alien-JPCRE2 CPAN distribution.

Report information
The Basics
Id: 122563
Status: resolved
Priority: 0/
Queue: Alien-JPCRE2

People
Owner: WBRASWELL [...] cpan.org
Requestors: twata_1 [...] yahoo.co.jp
Cc:
AdminCc:

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

Attachments
result-search-keyword-jpcre.txt
Strawberry-P5-20-3-Alien-JPCRE2-0_006000.log
Strawberry-P5-20-3-cpanm-v-Alien-JCPRE2_0.008000-command-prompt.log
Strawberry-P5-20-3-Manual-install-result-Alien-JPCRE2-0_006000_tar_gz.log
Strawberry-P5-20-3-Manual-install-result-Alien-JPCRE2-0_008000_tar_gz.log



Subject: fatal error: jpcre2.hpp: No such file or directory
Hi, Under Strawberry Perl 5.20.3 etc on Windows 7. I noticed an error when trying to install to Alien-JPCRE2-0.006000.tar.gz. Here is a log at that time. Thank you, -- twata
Subject: Strawberry-P5-20-3-Alien-JPCRE2-0_006000.log

Message body not shown because it is not plain text.

Twata, I don't have Windows, but I can tell you that JPCRE2 is passing in Windows on the AppVeyor platform: https://ci.appveyor.com/project/wbraswell/alien-jpcre2/build/1.0.79 I noticed 2 things which may be related to your issue: #1) I think dmake is becoming obsolete and gmake is the preferred solution, I was unable to get JPCRE2 to build on AppVeyor using dmake so you probably need to install gmake. You can install Alien::MSYS and Alien::gmake, then `set MAKE=gmake` or the like, then make sure gmake is begin called instead of dmake. #2) I think there is quite a bit of output hidden from your log, for example I don't see anywhere that the actual JPCRE2 C++ tarball is being downloaded. Please do not use `cpan Alien::JPCRE2` but instead use `cpanm -v Alien::JPCRE2`. Please try these 2 suggestions and let me know. Thanks, ~ Will On Sat Jul 22 00:55:23 2017, twata_1@yahoo.co.jp wrote: Show quoted text
> Hi, > > Under Strawberry Perl 5.20.3 etc on Windows 7. > > I noticed an error when trying to install to Alien-JPCRE2-0.006000.tar.gz. > > Here is a log at that time. > > Thank you, > -- > twata >
From: twata_1 [...] yahoo.co.jp
Hi Will, Thank you for your advice. I tried #1. I have already installed Alien::MSYS and Alien::gmake on Strawberry Perl 5.20.3. I tried `set MAKE=gmake`, but I couldn't tell perl to use gmake instead of dmake. So, I tried as follows, but it didn't work well. * download Alien-JPCRE2-0.006000.tar.gz * ptar -zxvf Alien-JPCRE2-0.006000.tar.gz * cd Alien-JPCRE2-0.006000 * perl Makefile.PL MAKE=gmake * gmake Here is a log at that time. I could install Alien-JPCRE2-0.006000 on Strawberry Perl 5.26.0. So, When I use Alien::JPCRE2, I use Strawberry Perl 5.26.0. Thank you, -- twata On 2017-7月-22 土 12:27:47, WBRASWELL wrote: Show quoted text
> Twata, > > I don't have Windows, but I can tell you that JPCRE2 is passing in > Windows on the AppVeyor platform: > > https://ci.appveyor.com/project/wbraswell/alien-jpcre2/build/1.0.79 > > I noticed 2 things which may be related to your issue: > > #1) I think dmake is becoming obsolete and gmake is the preferred > solution, I was unable to get JPCRE2 to build on AppVeyor using dmake > so you probably need to install gmake. You can install Alien::MSYS > and Alien::gmake, then `set MAKE=gmake` or the like, then make sure > gmake is begin called instead of dmake. > > #2) I think there is quite a bit of output hidden from your log, for > example I don't see anywhere that the actual JPCRE2 C++ tarball is > being downloaded. Please do not use `cpan Alien::JPCRE2` but instead > use `cpanm -v Alien::JPCRE2`. > > Please try these 2 suggestions and let me know. > > Thanks, > ~ Will > > > > On Sat Jul 22 00:55:23 2017, twata_1@yahoo.co.jp wrote:
> > Hi, > > > > Under Strawberry Perl 5.20.3 etc on Windows 7. > > > > I noticed an error when trying to install to Alien-JPCRE2- > > 0.006000.tar.gz. > > > > Here is a log at that time. > > > > Thank you, > > -- > > twata > >
Subject: Strawberry-P5-20-3-Manual-install-result-Alien-JPCRE2-0_006000_tar_gz.log

Message body not shown because it is not plain text.

twata, I believe this error may happening because you already have libjpcre2 installed independently of Alien::JPCRE2, is this correct? If so, then the reason it happens is because Alien::JPCRE2 successfully finds libjpcre2 which then triggers the Alien installer to automatically go into "system" install mode which means it will use your already-installed JPCRE2 software, instead of "share" install mode which will download and build JPCRE2 itself from source. Then, once "system" install mode is triggered, the failure occurs because you do not have the libjpcre2 development source code files in a location which is located by the compiler. The easiest way around this issue is to simply uninstall your existing JPCRE2 software and let Alien::JPCRE2 download and build JPCRE2 again for you automatically. The not-so-easy solution is to find out if you have jpcre2.hpp anywhere on your computer, then tell the compiler where to find that file. Please let me know if the easy solution works, so that we can mark this bug as fixed. Thanks! ~ Will
From: twata_1 [...] yahoo.co.jp
Hi Will, On 2017-7月-22 土 23:05:48, WBRASWELL wrote: Show quoted text
> twata, > > I believe this error may happening because you already have libjpcre2 > installed independently of Alien::JPCRE2, is this correct?
Probably, No. I searched for files containing "jpcre2" in file name on my computer. Here is a search result file. I am sorry if I misunderstood something. Thank you, -- twata Show quoted text
> > If so, then the reason it happens is because Alien::JPCRE2 > successfully finds libjpcre2 which then triggers the Alien installer > to automatically go into "system" install mode which means it will use > your already-installed JPCRE2 software, instead of "share" install > mode which will download and build JPCRE2 itself from source. Then, > once "system" install mode is triggered, the failure occurs because > you do not have the libjpcre2 development source code files in a > location which is located by the compiler. > > The easiest way around this issue is to simply uninstall your existing > JPCRE2 software and let Alien::JPCRE2 download and build JPCRE2 again > for you automatically. > > The not-so-easy solution is to find out if you have jpcre2.hpp > anywhere on your computer, then tell the compiler where to find that > file. > > Please let me know if the easy solution works, so that we can mark > this bug as fixed. > > Thanks! > ~ Will
Subject: result-search-keyword-jpcre.txt
C:\home\bath\perl5\lib\perl5\MSWin32-x86-multi-thread-64int\auto\share\dist\Alien-JPCRE2 C:\home\grape\Alien-JPCRE2-0.006000 C:\home\grape\.cpanm\work\1500768390.9396\Alien-JPCRE2-0.006000 C:\home\grape\.cpanm\work\1500768951.9628\Alien-JPCRE2-0.006000 C:\home\bath\perl5\lib\perl5\MSWin32-x86-multi-thread-64int\Alien\JPCRE2 C:\home\bath\perl5\lib\perl5\MSWin32-x86-multi-thread-64int\auto\Alien\JPCRE2 C:\home\bath\perl5\lib\perl5\MSWin32-x86-multi-thread-64int\auto\share\dist\Alien-JPCRE2\share\doc\jpcre2 C:\home\grape\.cpanm\work\1500768390.9396\Alien-JPCRE2-0.006000\blib\arch\auto\Alien\JPCRE2 C:\home\grape\.cpanm\work\1500768390.9396\Alien-JPCRE2-0.006000\blib\lib\auto\Alien\JPCRE2 C:\home\grape\.cpanm\work\1500768951.9628\Alien-JPCRE2-0.006000\blib\arch\auto\Alien\JPCRE2 C:\home\grape\.cpanm\work\1500768951.9628\Alien-JPCRE2-0.006000\blib\lib\auto\Alien\JPCRE2 C:\Strawberry-5-18\cpan\sources\authors\id\W\WB\WBRASWELL\Alien-JPCRE2-0.002000.tar.gz C:\Strawberry-5-14\cpan\sources\authors\id\W\WB\WBRASWELL\Alien-JPCRE2-0.003000.tar.gz C:\Strawberry-5-18\cpan\sources\authors\id\W\WB\WBRASWELL\Alien-JPCRE2-0.003000.tar.gz C:\Strawberry-5-20\cpan\sources\authors\id\W\WB\WBRASWELL\Alien-JPCRE2-0.003000.tar.gz C:\Strawberry-5-22\cpan\sources\authors\id\W\WB\WBRASWELL\Alien-JPCRE2-0.003000.tar.gz C:\Strawberry-5-24\cpan\sources\authors\id\W\WB\WBRASWELL\Alien-JPCRE2-0.003000.tar.gz C:\strawberry-5-26\cpan\sources\authors\id\W\WB\WBRASWELL\Alien-JPCRE2-0.003000.tar.gz C:\Strawberry-5-14\cpan\sources\authors\id\W\WB\WBRASWELL\Alien-JPCRE2-0.005000.tar.gz C:\Strawberry-5-18\cpan\sources\authors\id\W\WB\WBRASWELL\Alien-JPCRE2-0.005000.tar.gz C:\Strawberry-5-20\cpan\sources\authors\id\W\WB\WBRASWELL\Alien-JPCRE2-0.005000.tar.gz C:\Strawberry-5-22\cpan\sources\authors\id\W\WB\WBRASWELL\Alien-JPCRE2-0.005000.tar.gz C:\Strawberry-5-24\cpan\sources\authors\id\W\WB\WBRASWELL\Alien-JPCRE2-0.005000.tar.gz C:\strawberry-5-26\cpan\sources\authors\id\W\WB\WBRASWELL\Alien-JPCRE2-0.005000.tar.gz C:\home\grape\Alien-JPCRE2-0.006000.tar.gz C:\home\grape\.cpanm\work\1500768390.9396\Alien-JPCRE2-0.006000.tar.gz C:\home\grape\.cpanm\work\1500768951.9628\Alien-JPCRE2-0.006000.tar.gz C:\Strawberry-5-14\cpan\sources\authors\id\W\WB\WBRASWELL\Alien-JPCRE2-0.006000.tar.gz C:\Strawberry-5-18\cpan\sources\authors\id\W\WB\WBRASWELL\Alien-JPCRE2-0.006000.tar.gz C:\Strawberry-5-20\cpan\sources\authors\id\W\WB\WBRASWELL\Alien-JPCRE2-0.006000.tar.gz C:\Strawberry-5-22\cpan\sources\authors\id\W\WB\WBRASWELL\Alien-JPCRE2-0.006000.tar.gz C:\Strawberry-5-24\cpan\sources\authors\id\W\WB\WBRASWELL\Alien-JPCRE2-0.006000.tar.gz C:\strawberry-5-26\cpan\sources\authors\id\W\WB\WBRASWELL\Alien-JPCRE2-0.006000.tar.gz C:\home\bath\perl5\lib\perl5\MSWin32-x86-multi-thread-64int\auto\share\dist\Alien-JPCRE2\include\jpcre2.hpp C:\home\bath\perl5\lib\perl5\MSWin32-x86-multi-thread-64int\Alien\JPCRE2.pm C:\home\grape\.cpanm\work\1500768390.9396\Alien-JPCRE2-0.006000\lib\Alien\JPCRE2.pm C:\home\grape\.cpanm\work\1500768951.9628\Alien-JPCRE2-0.006000\lib\Alien\JPCRE2.pm C:\home\grape\Alien-JPCRE2-0.006000\lib\Alien\JPCRE2.pm C:\home\bath\perl5\lib\perl5\MSWin32-x86-multi-thread-64int\auto\Alien\JPCRE2\JPCRE2.txt C:\home\journey\Strawberr-P5-18-4-Alien-JPCRE2-0_006000.log C:\home\grape\Strawberry-P5-20-3-Alien-JPCRE2-0_006000.log C:\home\grape\Strawberry-P5-20-3-Manual-install-result-Alien-JPCRE2-0_006000_tar_gz.log C:\home\heaven\StrawberryP5-14-4-WBRASWELL_Alien-JPCRE2-0_006000.log
twata, Please uninstall and/or delete all JPCRE2 and PCRE2 files off of your computer. Then try again in a day or two when you see that Alien::JPCRE2 v0.007 (or newer) has been released. I am currently in the process of fixing lots of Windows bugs. https://metacpan.org/pod/Alien::JPCRE2 Then, when the new version becomes available, install with this command: cpanm -v Alien::JPCRE2 Thanks, ~ Will
From: twata_1 [...] yahoo.co.jp
Hi Will, Sure. ( I am glad that you can install it using cpan instead of cpanm because I usually use CPAN::Reporter. cpanm-reporter have rt#100467(https://rt.cpan.org/Public/Bug/Display.html?id=100467). ) Thank you, -- twata On 2017-7月-23 日 01:14:13, WBRASWELL wrote: Show quoted text
> twata, > > Please uninstall and/or delete all JPCRE2 and PCRE2 files off of your > computer. > > Then try again in a day or two when you see that Alien::JPCRE2 v0.007 > (or newer) has been released. I am currently in the process of fixing > lots of Windows bugs. > > https://metacpan.org/pod/Alien::JPCRE2 > > Then, when the new version becomes available, install with this > command: > > cpanm -v Alien::JPCRE2 > > Thanks, > ~ Will
From: twata_1 [...] yahoo.co.jp
Hi Will, I tried as follows, but it didn't still work well. * I deleted all JPCRE2 and PCRE2 files off of my computer. * cpanm -v Alien::JPCRE2 --> Successfully installed Alien-PCRE2-0.013000 but Installing Alien::JPCRE2 failed. Here is the output buffer content of the file(File name: Strawberry-P5-20-3-cpanm-v-Alien-JCPRE2_0.008000-command-prompt.log). Thank you, -- twata On 2017-7月-23 日 01:14:13, WBRASWELL wrote: Show quoted text
> twata, > > Please uninstall and/or delete all JPCRE2 and PCRE2 files off of your > computer. > > Then try again in a day or two when you see that Alien::JPCRE2 v0.007 > (or newer) has been released. I am currently in the process of fixing > lots of Windows bugs. > > https://metacpan.org/pod/Alien::JPCRE2 > > Then, when the new version becomes available, install with this > command: > > cpanm -v Alien::JPCRE2 > > Thanks, > ~ Will
Subject: Strawberry-P5-20-3-cpanm-v-Alien-JCPRE2_0.008000-command-prompt.log

Message body not shown because it is not plain text.

twata, This is NOT an error: "fatal error: jpcre2.hpp: No such file or directory" Although it certainly looks like an error, and I agree that it is deceptively error-like, this is actually one of the steps in Alien's build process where it tries to compile a file using jpcre2.hpp in order to test if JPCRE2 is installed, and since it fails to compile then it correctly proceeds to the download-and-build stage. This is the REAL error: dmake.exe: Error executing 'rem': No such file or directory dmake.exe: Error code -1, while making 'blibdirs' As far as I understand, dmake no longer works for building Perl-related software, so now you must use gmake only. I am not an expert in Windows so I could be mistaken, all I know is that dmake simply does not work. You can hopefully achieve this by making sure gmake is installed, either manually or via `cpanm Alien::gmake`, then set you MAKE environmental variable to equal "gmake". So, please try the whole process again with gmake and let me know if it works. Thanks, ~ Will
From: twata_1 [...] yahoo.co.jp
Hi Will, Thank you for your advice. I will try in the near future. ( I have already installed Alien::MSYS and Alien::gmake on Strawberry Perl 5.20.3. Now, I think that must be tried in consideration of the following. https://metacpan.org/pod/Alien::gmake#CAVEATS ) Thank you, -- twata On 2017-7月-26 水 15:25:07, WBRASWELL wrote: Show quoted text
> twata, > > This is NOT an error: > > "fatal error: jpcre2.hpp: No such file or directory" > > Although it certainly looks like an error, and I agree that it is > deceptively error-like, this is actually one of the steps in Alien's > build process where it tries to compile a file using jpcre2.hpp in > order to test if JPCRE2 is installed, and since it fails to compile > then it correctly proceeds to the download-and-build stage. > > This is the REAL error: > > dmake.exe: Error executing 'rem': No such file or directory > dmake.exe: Error code -1, while making 'blibdirs' > > As far as I understand, dmake no longer works for building Perl- > related software, so now you must use gmake only. I am not an expert > in Windows so I could be mistaken, all I know is that dmake simply > does not work. > > You can hopefully achieve this by making sure gmake is installed, > either manually or via `cpanm Alien::gmake`, then set you MAKE > environmental variable to equal "gmake". > > So, please try the whole process again with gmake and let me know if > it works. > > Thanks, > ~ Will
From: twata_1 [...] yahoo.co.jp
Hi Will, After all, I tried as follows, and tests passed!!! * download Alien-JPCRE2-0.008000.tar.gz * ptar -zxvf Alien-JPCRE2-0.008000.tar.gz * cd Alien-JPCRE2-0.008000 * perl Makefile.PL MAKE=gmake * gmake * gmake test Here is a log at that time(File name: Strawberry-P5-20-3-Manual-install-result-Alien-JPCRE2-0_008000_tar_gz.log). I appreciate your kind response. Thank you, -- twata On 2017-7月-26 水 15:25:07, WBRASWELL wrote: Show quoted text
> twata, > > This is NOT an error: > > "fatal error: jpcre2.hpp: No such file or directory" > > Although it certainly looks like an error, and I agree that it is > deceptively error-like, this is actually one of the steps in Alien's > build process where it tries to compile a file using jpcre2.hpp in > order to test if JPCRE2 is installed, and since it fails to compile > then it correctly proceeds to the download-and-build stage. > > This is the REAL error: > > dmake.exe: Error executing 'rem': No such file or directory > dmake.exe: Error code -1, while making 'blibdirs' > > As far as I understand, dmake no longer works for building Perl- > related software, so now you must use gmake only. I am not an expert > in Windows so I could be mistaken, all I know is that dmake simply > does not work. > > You can hopefully achieve this by making sure gmake is installed, > either manually or via `cpanm Alien::gmake`, then set you MAKE > environmental variable to equal "gmake". > > So, please try the whole process again with gmake and let me know if > it works. > > Thanks, > ~ Will
Subject: Strawberry-P5-20-3-Manual-install-result-Alien-JPCRE2-0_008000_tar_gz.log

Message body not shown because it is not plain text.

Okay great, I am marking this issue as "resolved". Thanks, ~ Will On Thu Jul 27 11:09:05 2017, twata_1@yahoo.co.jp wrote: Show quoted text
> Hi Will, > > After all, I tried as follows, and tests passed!!! > > * download Alien-JPCRE2-0.008000.tar.gz > * ptar -zxvf Alien-JPCRE2-0.008000.tar.gz > * cd Alien-JPCRE2-0.008000 > * perl Makefile.PL MAKE=gmake > * gmake > * gmake test > > Here is a log at that time(File name: Strawberry-P5-20-3-Manual- > install-result-Alien-JPCRE2-0_008000_tar_gz.log). > > I appreciate your kind response. > > Thank you, > > -- > twata > > > On 2017-7月-26 水 15:25:07, WBRASWELL wrote:
> > twata, > > > > This is NOT an error: > > > > "fatal error: jpcre2.hpp: No such file or directory" > > > > Although it certainly looks like an error, and I agree that it is > > deceptively error-like, this is actually one of the steps in Alien's > > build process where it tries to compile a file using jpcre2.hpp in > > order to test if JPCRE2 is installed, and since it fails to compile > > then it correctly proceeds to the download-and-build stage. > > > > This is the REAL error: > > > > dmake.exe: Error executing 'rem': No such file or directory > > dmake.exe: Error code -1, while making 'blibdirs' > > > > As far as I understand, dmake no longer works for building Perl- > > related software, so now you must use gmake only. I am not an expert > > in Windows so I could be mistaken, all I know is that dmake simply > > does not work. > > > > You can hopefully achieve this by making sure gmake is installed, > > either manually or via `cpanm Alien::gmake`, then set you MAKE > > environmental variable to equal "gmake". > > > > So, please try the whole process again with gmake and let me know if > > it works. > > > > Thanks, > > ~ Will