On May 30, 2007, at 11:12 AM, Jonathan C. Detert wrote:
On Tue, 2007-05-29 at 21:02 -0400, Kevin Falcone wrote:
On May 29, 2007, at 5:08 PM, Jonathan C. Detert wrote:
Are those errors really associated with the failure to send email?
If so, the following urls say that I should rebuild perl wish xs
support:
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2006-05/
msg00796.html
https://bugs.launchpad.net/ubuntu/+source/perl/+bug/46281
http://www.mail-archive.com/debian-bugs-dist%
40lists.debian.org/msg195610.html
Is this undefined subroutine really the source of the problem?
If so,
can someone either:
a) tell me which linux distro has a rt-compatible Scalar/Util.pm by
default
Do you have a C compiler? Scalar::Util cannot build weaken
without it.
I have a debian box where the broken Scalar::Util was installed but
cpan was able to install a new version that did work.
I do have gcc. I did try last week to rebuild Scalar::Util by
reinstalling it via CPAN,
perl -MCPAN -e shell
install Scalar::Util
quit
but the resultant Util.pm still didn't have a defined 'sub weaken'. I
didn't pay much attention to what cpan actually did, so I tried again
today:
1) I deleted any Scalar/Util.pm I could find (and there were 3
different
copies, in various places beneath /usr/local/)
2) i started up the cpan shell (perl -MCPAN -e shell), which told me
there was a newer version of CPAN available. I installed it, and
reloaded it.
3) within the shell, i typed:
make clean Scalar::Util
install Scalar::Util
This time, I paid attention to what cpan was saying. It appears to
have
failed, but I have no clue why/how. It seems to be saying it can't
find
Scalar/Util.pm. Here are the last 30 or 40 lines of output from it:
---------------------------------------------------------------------
CPAN: File::Temp loaded ok (v0.18)
CPAN.pm: Going to build G/GB/GBARR/Scalar-List-Utils-1.19.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for List::Util
cp lib/List/Util.pm blib/lib/List/Util.pm
cp lib/Scalar/Util.pm blib/lib/Scalar/Util.pm
/usr/local/bin/perl "-Iinc" /usr/local/lib/perl5/5.8.8/ExtUtils/xsubpp
-typemap /usr/local/lib/perl5/5.8.8/ExtUtils/typemap Util.xs >
Util.xsc
&& mv Util.xsc Util.c
cc -c -fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-DVERSION=\"1.19\" -DXS_VERSION=\"1.19\" -fpic
"-I/usr/local/lib/perl5/5.8.8/i686-linux/CORE" -DPERL_EXT Util.c
Running Mkbootstrap for List::Util ()
chmod 644 Util.bs
rm -f blib/arch/auto/List/Util/Util.so
cc -shared -L/usr/local/lib Util.o -o blib/arch/auto/List/Util/
Util.so
\
\
chmod 755 blib/arch/auto/List/Util/Util.so
cp Util.bs blib/arch/auto/List/Util/Util.bs
chmod 644 blib/arch/auto/List/Util/Util.bs
Manifying blib/man3/List::Util.3
Manifying blib/man3/Scalar::Util.3
GBARR/Scalar-List-Utils-1.19.tar.gz
/usr/bin/make -- OK
Catching error: 'Alert: While trying to 'dump' YAML file
'/root/.cpan/build/Scalar-List-Utils-1.19-mOIDkN.yml'
with 'YAML' the following error was encountered:
Can't locate Scalar/Util.pm in @INC (@INC
contains: /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/
perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/
local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /
root) at /usr/local/lib/perl5/5.8.8/overload.pm line 88.
' at /usr/local/lib/perl5/5.8.8/CPAN.pm line 274
CPAN::shell() called at -e line 1
I'll assume you've done something like remove the ubuntu Scalar::Util
package?
That would make YAML unhappy
Try to just download Scalar::Util from http://search.cpan.org/dist/
Scalar-List-Utils/
and run perl Makefile.PL && make && make test && make install manually.
If you do that, you can also convince yourself that things are happy
by running
prove -lv t/weak.t to test weaken()
-kevin
cpan[2]>
Installing /usr/local/lib/perl/5.8.8/auto/List/Util/Util.bs
Installing /usr/local/lib/perl/5.8.8/auto/List/Util/Util.so
Files found in blib/arch: installing files in blib/lib into
architecture dependent library tree
Installing /usr/local/lib/perl/5.8.8/List/Util.pm
Installing /usr/local/lib/perl/5.8.8/Scalar/Util.pm
Installing /usr/local/man/man3/List::Util.3pm
Installing /usr/local/man/man3/Scalar::Util.3pm
If you don't see Util.so, it didn't build properly.
You don't need to rebuild perl, just Scalar::Util.
Ok, got that. Thanks. As you can see above, I'm having trouble
rebuilding Scalar::Util. Any ideas?
Thanks
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com