CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Installing module on Strawberry perl takes 2+ hours

 



bulrush
User

Dec 5, 2015, 7:09 AM

Post #1 of 14 (5131 views)
Installing module on Strawberry perl takes 2+ hours Can't Post

I have Windows 8. I have installed Strawberry perl Portable 5.20.3 on a flash drive. It's a Sandisk 16gb drive with 11gb left, and it has a drive in use light, which is on constantly. Unzipping the zip file to the flash drive to install Strawberry Perl took 10 minutes, which is reasonable because there are 10,000 files.

Now I'm using the provided cpanm to intall a module on the flash drive, Text::MultiMarkdown. It's been running 2.5+ hours and still going.

- Is this normal for a flash drive? The last message is "Building and testing Text-Markdown-1.000031" which is part of the Text::MultiMarkdown package. Is there a lot of file reading and writing during this test phase?

- I can see this taking a while on a flash drive but not 2 hours.

- How can I see if the process in the cmd window has locked up? What should I look for in the Resource Monitor?

- I was able to hit Control-C to break the install batch file.

- I already had a chat with Sandisk and they said someone would call me yesterday, but they never did.

- Perhaps I will try a different version of Strawberry Perl Portable.

- Also, is there a forum just for Strawberry perl? A bug report email address?

I found the build.log on the flash drive for installing Text::MultiMarkdown, here is the last part of it.


Code
Generating a dmake-style Makefile 
Writing Makefile for Text::Markdown
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Text::Balanced 0 ... Yes (2.03)
Checking if you have Encode 0 ... Yes (2.76)
Checking if you have Test::Differences 0 ... Yes (0.63)
Checking if you have List::MoreUtils 0 ... Yes (0.413)
Checking if you have FindBin 0 ... Yes (1.51)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.10)
Checking if you have Test::Exception 0 ... Yes (0.40)
Checking if you have Digest::MD5 0 ... Yes (2.54)
Checking if you have Test::More 0.42 ... Yes (1.001014)
Building and testing Text-Markdown-1.000031


I broke that process and tried installing Time::HiRes and here's the last part of the build.log.


Code
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/Time-HiRes-1.9728.tar.gz 
-> OK
Unpacking Time-HiRes-1.9728.tar.gz
Entering Time-HiRes-1.9728
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.10)
Configuring Time-HiRes-1.9728
Running Makefile.PL
Configuring Time::HiRes...
System is MSWin32, skipping full configure...
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Time::HiRes
Writing MYMETA.yml and MYMETA.json
Now you may issue 'dmake'. Do not forget also 'dmake test'.
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have DynaLoader 0 ... Yes (1.25)
Checking if you have Carp 0 ... Yes (1.36)
Checking if you have strict 0 ... Yes (1.08)
Checking if you have Config 0 ... Yes (5.020003)
Checking if you have Test::More 0.82 ... Yes (1.001014)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.10)
Checking if you have Exporter 0 ... Yes (5.72)
Building and testing Time-HiRes-1.9728

-----


(This post was edited by bulrush on Dec 5, 2015, 7:37 AM)


bulrush
User

Dec 5, 2015, 7:43 AM

Post #2 of 14 (5122 views)
Re: [bulrush] Installing module on Strawberry perl takes 2+ hours [In reply to] Can't Post

While trying to delete the current Strawberry from the flash drive, I have learned the dmake.exe file was locked, if that helps any.

I'm trying to install an earlier version of Strawberry perl as installing modules worked before my other 2 flash drives with perl started acting wonky (programs would lock up when run from the flash drive).
-----


FishMonger
Veteran / Moderator

Dec 5, 2015, 8:06 AM

Post #3 of 14 (5121 views)
Re: [bulrush] Installing module on Strawberry perl takes 2+ hours [In reply to] Can't Post

I've had the same problem when using cpanm. In each case the install was waiting for a response from a prompt. You can use the -v (verbose) option to get more info and enable interactive mode.

Or, you can use cpan instead of cpanm, which is what I often do. Falling back to cpan is what clued me in on what was the problem/solution.


bulrush
User

Dec 5, 2015, 8:17 AM

Post #4 of 14 (5119 views)
Re: [FishMonger] Installing module on Strawberry perl takes 2+ hours [In reply to] Can't Post

Ok, I did 'cpan Time::HiRes' and it seems to be stuck again. Here are the last few messages.


Code
CPAN: Module::CoreList loaded ok (v2.83) 

CPAN.pm: Building R/RJ/RJBS/Time-HiRes-1.9728.tar.gz

Configuring Time::HiRes...
System is MSWin32, skipping full configure...
Checking if your kit is complete...
Looks good
Writing Makefile for Time::HiRes
Writing MYMETA.yml and MYMETA.json
Now you may issue 'dmake'. Do not forget also 'dmake test'.

-----


FishMonger
Veteran / Moderator

Dec 5, 2015, 8:27 AM

Post #5 of 14 (5115 views)
Re: [bulrush] Installing module on Strawberry perl takes 2+ hours [In reply to] Can't Post

Time::HiRes is a core module and should already be installed.

So, it's stuck there and doesn't accept any input? Or, does it drop you to the system prompt?


bulrush
User

Dec 5, 2015, 9:01 AM

Post #6 of 14 (5112 views)
Re: [FishMonger] Installing module on Strawberry perl takes 2+ hours [In reply to] Can't Post

The prompt is stuck, it doesn't accept input, even when I just hit RETURN, but I can hit CTL-C to break out of it.

I just removed Strawberry 5.20 and installed Strawberry 5.16.3 and just running 'dmake /?' locks up the prompt too. Hitting RETURN does nothing.

dmake has a -v option for being verbose. Where would I set that? Is there a shell variable for windows where I can set that option?

EDIT: I just noticed that I also have c:\perl64 installed, and I wonder if cpan and cpanm is using the wrong dmake.
-----


(This post was edited by bulrush on Dec 5, 2015, 9:38 AM)


FishMonger
Veteran / Moderator

Dec 5, 2015, 11:12 AM

Post #7 of 14 (5104 views)
Re: [bulrush] Installing module on Strawberry perl takes 2+ hours [In reply to] Can't Post


In Reply To
I just noticed that I also have c:\perl64 installed, and I wonder if cpan and cpanm is using the wrong dmake.


That is very likely especially if that perl installation is in your path.


bulrush
User

Dec 5, 2015, 11:20 AM

Post #8 of 14 (5102 views)
Re: [FishMonger] Installing module on Strawberry perl takes 2+ hours [In reply to] Can't Post

I reset the path to not include c:\perl64 and I also renamed c:\perl64 to c:\perl64xx, and I also deleted the Strawberry Perl from the flash drive, and reinstalled a 64-bit Strawberry perl, and I'm still having the same problems. I can check my path now and it does not include c:\perl64xx or c:\perl64.

I'm at a loss what is going on.
-----


FishMonger
Veteran / Moderator

Dec 5, 2015, 11:32 AM

Post #9 of 14 (5097 views)
Re: [bulrush] Installing module on Strawberry perl takes 2+ hours [In reply to] Can't Post

Are you doing a normal install, or downloading and unzipping the prebuilt zip package?

I have not worked with the zip version or installed to a flash drive so I'm not familiar with any gotchas going that route.


bulrush
User

Dec 5, 2015, 11:46 AM

Post #10 of 14 (5092 views)
Re: [FishMonger] Installing module on Strawberry perl takes 2+ hours [In reply to] Can't Post

Sorry I hit the wrong button. I'm only installing from a zip file, i.e. unzipping right to my flash drive. Strawberr portable only comes as zip files, I thought that was ok. See http://strawberryperl.com/releases.html.

EDIT: I just installed Strawberry Perl 5.20.3 64-bit to my C: drive, ran c:\strawberry\relocation.pl.bat and ran c:\strawberry\relocation.pl.bat, then used 'cpan install Text::Markdown' and modules installed fine.

This is just bizarre. Strawberry Perl used to run fine on my flash drive.
-----


(This post was edited by bulrush on Dec 5, 2015, 12:34 PM)


FishMonger
Veteran / Moderator

Dec 5, 2015, 12:52 PM

Post #11 of 14 (5087 views)
Re: [bulrush] Installing module on Strawberry perl takes 2+ hours [In reply to] Can't Post

Sorry, I can't explain why it was failing. I've never used the portable install, but the reports I've heard said it works fine.


bulrush
User

Dec 7, 2015, 3:53 AM

Post #12 of 14 (5065 views)
Re: [FishMonger] Installing module on Strawberry perl takes 2+ hours [In reply to] Can't Post

Strawberry WAS working fine on flash drive #1 for 4 weeks. Then, BOOM, it doesn't work on any of 3 flash drives I try, on 2 separate computers, windows 7 and windows 8.
Very very odd.
-----


bulrush
User

Dec 15, 2015, 4:43 AM

Post #13 of 14 (5040 views)
Re: [bulrush] Installing module on Strawberry perl takes 2+ hours [In reply to] Can't Post

Update: I've been running programs from flash drives for 10+ years. When I called Sandisk the tech support told me that flash drives cannot run programs. Which doesn't make any sense.
-----


Laurent_R
Veteran / Moderator

Dec 15, 2015, 10:43 AM

Post #14 of 14 (5037 views)
Re: [bulrush] Installing module on Strawberry perl takes 2+ hours [In reply to] Can't Post

Sure you can run programs from flash drives, and that works fine, but, depending on the circumstances, it may not always be the best idea (copying to a hard drive is sometimes better).

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives