Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Nov 2008
    Posts
    152

    Running under ActiveState on Windows

    I have the sourcecode of official SBS 7.5 and I used to run it under Strawberry Perl for development. It worked fine. But I had some problems which looked strange to me and decided to try running with ActiveState instead.

    Trying perl slimserver.pl gives the following:

    Code:
    The following modules failed to load: DBD::mysql EV YAML::Syck Sub::Name
    
    To run from source on Windows, please install ActivePerl 5.10.  ActivePerl 5.8.8 is no longer supported.
    http://www.activestate.com/activeperl/
    
    Exiting..
    I tested newest ActiveState Perl 5.12, got these problems. I tried to install all needed packages with ActiveState PPM or with cpan, tried removing packages included in the SBS source (CPAN dir). No luck.

    Just downgraded to ActiveState Perl 5.8.9 - same issue. Trying to install again with CPAN, but I don't think I ever get it working. I got it to the point it only questions YAML::Syck and DBD::mysql but installing these doesn't help. DBD::mysql has some problems, and YAML::Syck installs fine, but it still complains.

    What am I missing?



    BTW.
    Is this:
    Code:
    my $a=shift;
    my $b=shift;
    same as this:
    Code:
    my ($a, $b) = shift;
    ?

  2. #2
    Administrator andyg's Avatar
    Join Date
    Jan 2006
    Location
    Pittsburgh, PA
    Posts
    7,395

    Running under ActiveState on Windows

    On Dec 29, 2010, at 9:11 AM, azaz44 wrote:
    >
    > What am I missing?


    You didn't read the instructions: To run from source on Windows, please install ActivePerl 5.10.


  3. #3
    Senior Member
    Join Date
    Nov 2008
    Posts
    152
    Quote Originally Posted by andyg View Post
    On Dec 29, 2010, at 9:11 AM, azaz44 wrote:
    >
    > What am I missing?


    You didn't read the instructions: To run from source on Windows, please install ActivePerl 5.10.
    Thanks Andy, it works now. I did read this instruction, but thought it's irrelevant as I was running 5.12...

    How about the my $a = shift thing?

  4. #4
    Administrator andyg's Avatar
    Join Date
    Jan 2006
    Location
    Pittsburgh, PA
    Posts
    7,395
    Is this:
    Code:
    my $a=shift;
    my $b=shift;
    same as this:
    Code:
    my ($a, $b) = shift;
    ?
    No, you want either:

    my ($a, $b) = (shift, shift);

    or

    my ($a, $b) = @_;

    The shift version is slightly more efficient but @_ is more common.

  5. #5
    Senior Member
    Join Date
    Nov 2008
    Posts
    152
    Quote Originally Posted by andyg View Post
    No, you want either:

    my ($a, $b) = (shift, shift);

    or

    my ($a, $b) = @_;

    The shift version is slightly more efficient but @_ is more common.
    Thanks again, this explains me my issues.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •