Posted on 2007-06-01 02:47:30-07 by turdturtle
Trouble installing and running: perl Build.PL
Hi,

When I run:

input: perl Build.PL

I get this output:

SDL_Perl-2.1.3 -: perl Build.PL
Checking whether your kit is complete...
Looks good

Checking prerequisites...
Looks good

Can't use an undefined value as an ARRAY reference at make/lib/SDL/Build.pm line 154.


Here is the offending section of make/lib/SDL/Build.pm, line 154 is prefixed with comment "### LINE 154 HERE ###":

# save this all in a format process_xs() can understand sub set_flags { my ($self, $subsystems, $build, $defines, $includes, $links, $sdl_compile, $sdl_link) = @_; my %file_flags; while (my ($subsystem, $buildable) = each %$build) { my $sub_file = $subsystems->{$subsystem}{file}{to}; my $sub_includes = join(' ', @{ $includes->{$subsystem} } ); $file_flags{ $sub_file } = { extra_compiler_flags => [ @{ $includes->{$subsystem} }, split(' ',$sdl_compile), @{ $defines->{$subsystem} }, ( defined $Config{usethreads} ? ('-DUSE_THREADS', '-fPIC') : '-fPIC' ), ], extra_linker_flags => [ @{ $links->{$subsystem}{paths} }, split(' ',$sdl_link), ### LINE 154 HERE: #### @{ $links->{$subsystem}{libs} }, ], }, } $self->notes( 'file_flags' => \%file_flags ); }


I am new to Perl and so please help me in any way.. I am stuck and don't know what to do..

Thanks alot,
Rich
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.