develooper Front page | perl.win32.vanilla | Postings from December 2010

Re: Basic FAQ: how to setup local 'environment' to build CPAN modulesunder strawberry

Thread Previous
From:
kmx
Date:
December 20, 2010 23:14
Subject:
Re: Basic FAQ: how to setup local 'environment' to build CPAN modulesunder strawberry
Message ID:
4D1053AE.3000800@volny.cz
Hi Linda,

> I made a mistake, I had installed the 64bit version, had path probs
> sometime back so uninstalled it.  When I re-installed, mistakenly
> installed 32-bit version, and my paths were still not right (I need to make
> sure the strawberry perl paths are before the cygwin paths; didn't see
> the /strawberry/C/bin, added to the path.
>
> Any reason why there are two separate trees @ installation?  Couldn't they
> be combined?

c:/strawberry/c and c:/strawberry/perl contain completely different things
(1st - gcc toolchain + bunch of external libs; 2nd - the perl itself + all
installed modules) which is enough to keep them separately.

In theory they can be combined but you have to manually hack many
$Config{???} variables pointing to these dirs.

> Trying to reinstall the 64-bit version now, but both of the
> MSI's (strawberry-perl-5.12.1.0-64bit.msi)
> <https://www.ohloh.net/p/strawberry-perl/download?filename=strawberry-perl-5.12.1.0-64bit.msi>
> listed on the versions page seem to be not-working.
> 1st) points to ohloh (dead),

You are right.

> 2nd points to:
> http://strawberryperl.com/download/5.12.1.0/strawberry-perl-5.12.1.0-64bit.msi
>
> but is never coming back with a save-dialog.

This one works for me, maybe some temporary issue.

> I can download the .zip -- but what does the MSI do to 'install' it?
> Seem I remembered some relocation operations whizzing by on my last install.

To install a ZIP distribution
1. unzip strawberry-perl-5.12.1.0-64bit into a dir without spaces in its
name - e.g. c:\perl64bit\
2. run c:\perl64bit\relocation.pl.bat
3. run c:\perl64bit\update_env.pl.bat
(it might be necessary to logout/login to update your environment variables
set in steb 3.)

> I have a bunch of existing scripts that are shared with my linux systems.
> They all start with:
> #!/usr/bin/perl -w
>
> If I create a link to strawberry perl, should everything work correctly?

Shebang line is (mostly) ignored on MS Windows. AFAIK the only case when it
does matter is when you are running your perl script via FastCGI (Apache +
mod_fastcgi).

To run a perl script you can lauch:
c:\> perl scriptname.pl

Strawberry perl unfortunately does not associate .pl extension but you can
do it by hand via commands:|
|c:\> assoc .pl=PerlScript||
c:\> ftype PerlScript=c:\perl64bit\perl\bin\perl.exe %1 %*

After that you can simply run your script like this:
c:\> scriptname.pl

--
kmx


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About