[cpan Q] Failure to finish installing using cpan [File::ReadBackwards

PERL

    Next

  • 1. How to get error?
    Hello. I have cgi script and sometimes it fails. I get Internal Server Error in my browser. When i run perl -c script.cgi i get syntax ok. It is runtime error. But how to know what is the error? How can i make the error is shown in bworser window? Or where are error logs stored?
  • 2. references to complex data structures
    Consider the following anonymous array of anonymous arrays: my $a = [ [ 00 , 01 ] , [ 10 , 11 ] ] ; I can print the first element of the first anonymous array: print "$$a[ 0 ][ 0 ]\n" ; or, equivalently, I can explicit use bracers to dereference it: print "${$a}[ 0 ][ 0 ]\n" ; Should I not need two pairs of bracers? $a is a reference to the anonymous array. The elements of the anonymous arrays are references to anonymous arrays, correct? The following seems to achieve this result: print "${${$a}[ 0 ]}[ 0 ]\n" ; Is the outmost pair of bracers with the appropriate symbol ($, @, %) the default? If so, how does perl select the correct symbol? I realize that it is seemingly moot, but it may help my understanding of more complex structures, like hash of arrays or hash of hases. Thanks, Kevin Kevin Viel, PhD Post-doctoral fellow Department of Genetics Southwest Foundation for Biomedical Research San Antonio, TX 78227
  • 3. how to take action based on the existence of a value in a hash
    Hi, I have a small hash of directory values. When a user inputs a directory value I want to check to see if this directory value is in my hash. If it is not the requested function will be denied. My problem is that when I iterate over the hash I get answers for every key in the hash. so in my example below if I enter "/usr/bin I will get a "match found" and "no match found". What I want is to only get a "no match found error if the value is never found in the hash. I tried using "exists" but this seems to check for the existence of a key not a value, and the user will input the value. thanks in advance for any hints. -Angus #!/usr/bin/perl use strict; use warnings; print "enter path:"; chomp (my $dir = <STDIN>); my %directory_hash = ("dir1" => "/usr/bin", "dir2" => "/users/home",); foreach my $value ( values %directory_hash) { unless ($value eq $dir) { print "no match found!\n"; last; } print "match found\n" }
  • 4. Strange interaction of "my"-variables with initialization
    Hi, I just got bitten by a very simple issue, where Perl behaves totally different from what I had expected; According to the documentation, lexical variables are visible only after the line they have been declared in; they may be initialized; otherwise their value is undefined, so the following short code snippet: foreach (qw(a b c)) { my $t; warn("\$t == ", $t||'undef', "\n"); $t=$_; } will 3 times print "$t == undef" (as to be expected). Now a minor variation: my $x=undef; foreach (qw(a b c)) { my $t =$x if $x; warn("\$t == ", $t||'undef', "\n"); $t=$_; } $t would be initialized with the value of $x if that was true; otherwise (at least that's what I would expect) $t should be undefined, so the result would be as before. The real outcome, however, is: $t == undef $t == a $t == b $t now retains its value from the last loop iteration. Is this a bug or a feature (tm)? If it is a feature, then why isn't the value also retained in the 1st example? Regards, Peter Daum
  • 5. user arguments, oracle - insert, delete and drop!
    Hi List, I am in the process of making a web service which will (at some point) query an oracle DB with some user supplied text. Currently the page allows the user to select the information in the insert from a tick box, the tables from a list and the conditional they can choose and then enter associated text. I realise that this is not smart, at least without any parameter checking. I need a way of making the information 'safe' - avoid sql injections etc. I have tried using $dbh->quote($string) but this creates errors if the key word entered by the users is null - as oracle thinks this is not a keyword. hints, tips and solutions accepted :) I don't have admin rights and can't install any modules that aren't already available. The project is running under perl catalyst. Thanks in advance

[cpan Q] Failure to finish installing using cpan [File::ReadBackwards

Postby reader » Sun, 27 Sep 2009 23:32:24 GMT

I wasn't able to figure out what is happening when cpan fails on
File::ReadBackwards:

I'm hoping someone will be able to see what the problem is.

Tail of output from (inside cpan shell) `install File::ReadBackwards':
[...]
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl5.8.8 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/bw..............ok     
t/large_file......ok   
All tests successful.
Files=2, Tests=173,  6 wallclock secs ( 0.08 usr  0.00 sys +  2.34 cusr  0.34 csys =  2.76 CPU)
Result: PASS
  URI/File-ReadBackwards-1.04.tar.gz
  /usr/bin/make test -- OK
Running make install
Prepending %BUILDDIR%/File-ReadBackwards-1.04-w8D8Le/blib/arch %BUILDDIR%/File-ReadBackwards-1.04-w8D8Le/blib/lib %BUILDDIR%/FastGlob-1.3-rwXmzT/blib/arch %BUILDDIR%/FastGlob-1.3-rwXmzT/blib/lib %BUILDDIR%/FLV-Info-0.24-ECal3c/blib/arch %BUILDDIR%/FLV-Info-0.24-ECal3c/blib/lib %BUILDDIR%/CPAN-DistnameInfo-0.08-GgzLym/blib/arch %BUILDDIR%/CPAN-DistnameInfo-0.08-GgzLym/blib/lib %BUILDDIR%/DBD-SQLite-1.25-q3OPud/blib/arch %BUILDDIR%/DBD-SQLite-1.25-q3OPud/blib/lib %BUILDDIR%/ExtUtils-MakeMaker-6.52-JcOohe/blib/arch %BUILDDIR%/ExtUtils-MakeMaker-6.52-JcOohe/blib/lib to PERL5LIB; %BUILDDIR%=/usr/local/cpan/build for 'install'
Installing /usr/local/lib/perl5/site_perl/5.8.8/File/ReadBackwards.pm
Installing /usr/local/share/man/man3/File::ReadBackwards.3pm
Appending installation info to /usr/local/lib/perl5/5.8.8/i686-linux/perllocal.pod
make: *** No rule to make target `1'.  Stop.
  URI/File-ReadBackwards-1.04.tar.gz
  /usr/bin/make install 1 -- NOT OK
Failed during this command:
 URI/File-ReadBackwards-1.04.tar.gz           : install NO


Re: [cpan Q] Failure to finish installing using cpan [File::ReadBackwards

Postby phair.kevin » Tue, 29 Sep 2009 10:03:02 GMT


Did you check to see if it was actually installed?  The above looks like 
it succesfully ran "make install", and then for some reason ran "make 
install 1", which failed.

Similar Threads:

1.CPAN install failure...

2.CPAN install failure - help?

3.CPAN and DBD::mysql install failure

I am having trouble getting CPAN to install DBD::mysql.  Unfortunately
I am not certain what the error means.  From looking in previous posts
I saw that mysql_config may have the wrong paths stated.  So I fixed
those.  But I am still getting the error below.  Can anyone point me
towards the solution?

It seems it can't find dbdimp.o and mysql.o.  This is true...they don't
exist on the system.  But what are they and what program is responsible
for generating them?

gcc3.3.2
perl 5.8.6
solaris 9
mysql 5.0.3 (beta)
"make" is available as I just previously installed CGI and DBI without
issue


ERROR:
<snip>
Checking if your kit is complete...
Looks good
Using DBI 1.48 (for perl 5.008006 on sun4-solaris) installed in
/usr/local/lib/perl5/site_perl/5.8.6/sun4-solaris/auto/DBI/
Writing Makefile for DBD::mysql
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/Mysql.pm blib/lib/Mysql.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
gcc -c  -I/usr/local/lib/perl5/site_perl/5.8.6/sun4-solaris/auto/DBI/
-I/usr/local/mysql5/include -Xa -xstrconst -mt -D_FORTEC_ -xarch=v9
-DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-DVERSION=\"2.9006\"  -DXS_VERSION=\"2.9006\" -fPIC
"-I/usr/local/lib/perl5/5.8.6/sun4-solaris/CORE"   dbdimp.c
gcc: unrecognized option `-Xa'
gcc: language arch=v9 not recognized
gcc: dbdimp.c: linker input file unused because linking not done
/usr/bin/perl -p -e "s/~DRIVER~/mysql/g"
/usr/local/lib/perl5/site_perl/5.8.6/sun4-solaris/auto/DBI//Driver.xst
> mysql.xsi
/usr/bin/perl /usr/local/lib/perl5/5.8.6/ExtUtils/xsubpp  -typemap
/usr/local/lib/perl5/5.8.6/ExtUtils/typemap  mysql.xs > mysql.xsc && mv
mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line
196
Warning: duplicate function definition 'rows' detected in mysql.xs,
line 294
gcc -c  -I/usr/local/lib/perl5/site_perl/5.8.6/sun4-solaris/auto/DBI/
-I/usr/local/mysql5/include -Xa -xstrconst -mt -D_FORTEC_ -xarch=v9
-DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-DVERSION=\"2.9006\"  -DXS_VERSION=\"2.9006\" -fPIC
"-I/usr/local/lib/perl5/5.8.6/sun4-solaris/CORE"   mysql.c
gcc: unrecognized option `-Xa'
gcc: language arch=v9 not recognized
gcc: mysql.c: linker input file unused because linking not done
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="/usr/lib" /usr/bin/perl myld gcc  -G -L/usr/local/lib
dbdimp.o  mysql.o  -o blib/arch/auto/DBD/mysql/mysql.so
-L/usr/local/mysql5/lib -lmysqlclient -lz -lposix4 -lcrypt -lgen
-lsocket -lnsl -lm
gcc: dbdimp.o: No such file or directory
gcc: mysql.o: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target
`blib/arch/auto/DBD/mysql/mysql.so'
  /usr/ccs/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

cpan>

4.Upgrading to CPAN.pm v1.76 install Bundle::CPAN fails


5.[OT cpan] How to paginate cpan output when inside cpan shell

I'm sorry to bring this here.. I suppose there may be a more
appropriate group... I don't know it if there it.

When inside the cpan shell:
How can I force the output of cpan cmds to run thru some kind of
pager so that I can see page by page what the content is?

6. installing modules using cpan>

7. error with using CPAN> install Date::Manip

8. Using CPAN.pm with multiple perl installs



Return to PERL

 

Who is online

Users browsing this forum: No registered users and 84 guest