"cloning" perl / CPAN install

PERL

    Next

  • 1. GD.pm make test failed, help please?
    Hi guys, I am trying to install GD.pm 2.15 on a Fedora 2 box. The make went fine, but I got this when I do make test. Any help please? Thanks! # make test TEST_VERBOSE=1 PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/GD..........1..10 ok 1 not ok 2 not ok 3 not ok 4 not ok 5 not ok 6 not ok 7 ok 8 # Skip, FreeType changes too frequently to be testable ok 9 # Skip, no XPM support not ok 10 FAILED tests 2-7, 10 Failed 7/10 tests, 30.00% okay (less 2 skipped tests: 1 okay, 10.00%) t/Polyline....1..1 # Running under perl version 5.008003 for linux # Current time local: Mon Sep 6 17:59:25 2004 # Current time GMT: Tue Sep 7 00:59:25 2004 # Using Test.pm version 1.24 ok 1 ok Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------------- --- t/GD.t 10 7 70.00% 2-7 10 2 subtests skipped. Failed 1/2 test scripts, 50.00% okay. 7/11 subtests failed, 36.36% okay. make: *** [test_dynamic] Error 255
  • 2. Help with POD in Win98 (activeperl)
    I'm trying to use the POD translators to convert my comments into either a text file or a html page. I've used the commandline calls "pod2text test.pl | more" "pod2text test.pl > test.txt" as well as the pod2html translator. (all from Programming Perl 3rd Ed) All I get is a printout to the screen, the test.txt or test.html is created but with nothing inside. Even piping the output to more or /p doesn't do anything.
  • 3. Newbie 777/ 755 only allowed on server
    My server only allows 755 permissions I'm not sure exactly what it means. I want to setup a forum, will users be able to write to the fourum or just read what I have put in?
  • 4. How to run perl script in visually hidden manner on Win XP
    Hi, I have some bluetooth control program that will let me execute perl scipts (with statement : perl mhsend.pl args). I don't exactly know how does this program executes, but there is big command prompt comming in focus over other applications and I'd like to avoid that. Are there any tricks to hide this command prompt or run these scripts visually hidden manner on winxp ? Thanks in advance, Robert.

"cloning" perl / CPAN install

Postby roberson » Thu, 22 Apr 2004 05:43:42 GMT

I maintain perl installations (often with several different revisions
simultaneously) on multiple computers. As I find I need a CPAN
module (or it looks like it is of interest and I want to read the
documentation for it), I install the module on one system; and then
might end up writing code using that module. At some later point,
I want to bring the other computers in sync with the module set.
If I happen to remember everything I've installed, well and good, but
usually I don't.

Would then, there happen to be a good way to say "install all the
CPAN modules from this version here, to that version over there?"
Presuming that there might be different architectures or versions involved
(e.g., the module :: name is important moreso than copying
the distribution)?

Or perhaps to make this simpler: is there an easy way to figure
out which CPAN modules top-level modules have been installed,
in a form suitable for pasting in to a CPAN 'install' statement 
on another machine (or different version)? I made an attempt at
this by looking through the directory the modules get installed into,
but that directory has system modules as well, and if I just chase
down the directory finding all the .pm's and converting /'s to ::
then I end up trying to install sub components of modules rather than
just getting the official module name that includes all the subcomponents.

cpan itself must have a way of doing this, in order to impliment the
'r' command, but I'd perfer not to have to dig through cpan source
if someone happens to know the answer. (Surely this same functional
requirement happens to many other people as well.)
-- 
   The image data is transmitted back to Earth at the speed of light
   and usually at 12 bits per pixel.

Re: "cloning" perl / CPAN install

Postby Sherm Pendley » Thu, 22 Apr 2004 06:07:56 GMT




The "autobundle" command in the CPAN shell.


Did you also prefer not to have to dig through the "help" command?

sherm--

-- 
Cocoa programming in Perl:  http://www.**--****.com/ 
Hire me! My resume:  http://www.**--****.com/ 

Re: "cloning" perl / CPAN install

Postby roberson » Thu, 22 Apr 2004 09:31:44 GMT

In article < XXXX@XXXXX.COM >,





:> cpan itself must have a way of doing this

:The "autobundle" command in the CPAN shell.

Thanks, I'll have a look at that.


:> I'd perfer not to have to dig through cpan source

:Did you also prefer not to have to dig through the "help" command?

It so happens that I'd scrolled through the entire cpan source already
once today, just a short time before, in order to answer another
poster's question about where exactly  perl -MCPAN -e shell   was
documented. I saw at that time that the cpan source was long and involved,
and would require hours of careful study in order to figure out
a clean way to do it from the cpan source. The remark was not one
of laziness: it was based upon having -already- looked and having seen
that the matter would be complex to work out.

As for your reference to the "help" command: here is what the help
menu says about autobundle as of perl 5.8.3:

[...]
 autobundle    Snapshot                force cmd     unconditionally do cmd
cpan> help autobundle
Detailed help not yet implemented


A remark: I "hang out" in a diverse set of technical newsgroups, and I
spend a fair bit of time contributing to those newsgroups, in
accordance to my knowledge, skills, and strengths. Even in this
newsgroup itself, before posting my question, I answered several
questions, and did a longish piece about parsing efficiency and finite
automata -- time spent trying to incrase people's understandings of
both the issue and the potential technical solutions. I "give" what I
can, and I have done so for many years. It thus seems to me not unfair
for me to occasionally recognize that some questions do not lie within
my strengths, and to pose the questions publically to be [if I am
fortunate] answered by someone who already knows the answer.  The
person who answers does so based upon -their- strengths, and I'm left
more time to answer questions that fit in with -my- strengths.

Is my thinking on this matter wrong? Is that the true meaning of
Open Source -- that because one -can- read the source, that one
has a m{*filter*}obligation to answer every question by oneself, no matter
how long it is likely to take, and no matter how much doing so is likely
to diminish one's time available for volunteering to help others?
-- 
   Cottleston, Cottleston, Cottleston pie.
   A bird can't whistle and neither can I.  -- Pooh

Re: "cloning" perl / CPAN install

Postby Sherm Pendley » Thu, 22 Apr 2004 11:05:29 GMT




perldoc CPAN.pm


Yep, I was too quick on the trigger this time. Sorry. :-(

The documentation as it stands is pretty bad; 'perldoc CPAN' gets you a
*very* terse description of the 'cpan' command from the POD docs
in /usr/bin/CPAN. Using 'perldoc CPAN.pm' instead will get you the older,
much more thorough, documentation found in the module.

sherm--

-- 
Cocoa programming in Perl:  http://www.**--****.com/ 
Hire me! My resume:  http://www.**--****.com/ 

Re: "cloning" perl / CPAN install

Postby Joe Smith » Thu, 22 Apr 2004 16:33:46 GMT







I try to make it a habit of using perldoc on the module before looking
at the source code.  You'll often find important stuff on the first
page that way.

If you had done
   perldoc CPAN
before going to
   less /usr/lib/perl5/5.8.3/CPAN.pm
you could have saved a lot of wear and tear on your brain.

	-Joe

Re: "cloning" perl / CPAN install

Postby roberson » Fri, 23 Apr 2004 10:33:02 GMT

In article <utphc.28585$hw5.47672@attbi_s53>,





:> It so happens that I'd scrolled through the entire cpan source already
:> once today, just a short time before, in order to answer another
:> poster's question about where exactly  perl -MCPAN -e shell   was
:> documented. I saw at that time that the cpan source was long and involved,

:I try to make it a habit of using perldoc on the module before looking
:at the source code.  You'll often find important stuff on the first
:page that way.

:If you had done
:   perldoc CPAN
:before going to
:   less /usr/lib/perl5/5.8.3/CPAN.pm
:you could have saved a lot of wear and tear on your brain.

Actually what I did was  perldoc -m CPAN  which somehow I had
come to understand was the way one had to ask for documentation
about a module with the given name. I see now looking at the man
page that I did not need the -m to get to the documentation. Oh well,
too late now to worry about how I formed the -m bad habbit.
-- 
Can a statement be self-referential without knowing it?

Similar Threads:

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

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

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


3.Installing Perl modules from CPAN

How do I use Perl to download and install Perl modules from CPAN?

I seem to be missing something called SSLeay for an application. How do 
I go about sorting out the problem?

4.Problems with install modules with CPAN and from source code when I update my PERL

Hi everybody

thanks for read....

I have a problem with CPAN, the problem is becouse I change my PERL
version...

Well First create in my .bashrc my perl variable

export PERL_HOME=/usr/local/Perl-5.10/perl-5.10.0
export
PATH=${ANT_HOME}/bin:${JAVA_HOME}/bin:${JRE_HOME}/bin:${PYTHON_HOME}/bin:${RUBY_HOME}/bin:${PERL_HOME}:$PATH


well the problem comes when I was try to use CPAN, becouse when I installed
some in my latest version of PERL make me and error when i execute my
script, and I see that CPAN install the modules on my old version of PERL,
but my new version of PERL dont see or cant use this modules....

I unistall the PERL version of that comes include with in my debian etch,
but when I try to install modules from source code or using CPAN the modules
was installed but when I execute my script, the script return me some errors
becouse dont found the module that I had been installed....

any idea???


thanks for all

5.Problems installing CPAN perl modules

Hi,

first, on my home computer under cygwin installing the modules works 
just fine.

In contrast, the same task on a Sun (SunOS 5.9/sparc) gives me a 
headache. I don't have root access, so I define all the paths manually.

In detail, I do
   perl Makefile.PL `cat ~/.perl_dirs`
in the modules directory where .perl_dirs contains:

PREFIX=/home/kraatzm/persapps \
INSTALLPRIVLIB=/home/kraatzm/lib/perl5 \
INSTALLSCRIPT=/home/kraatzm/bin \
INSTALLSITELIB=/home/kraatzm/lib/perl5/site_perl \
INSTALLBIN=/home/kraatzm/bin \
INSTALLMAN1DIR=/home/kraatzm/lib/perl5/man  \
INSTALLMAN3DIR=/home/kraatzm/lib/perl5/man3

Then I try the standard make;make test; make; make install.
And here is the problem. The make reports all source files as missing. 
But they do exist! It can't be because of an errornous module package 
because the exact same one installs fine on my home computer. This is 
true for any kind of module I download from CPAN. Although the manuals 
install fine, the actual modules don't make it to their destination. As 
a workaround I found that copying them by myself works, but that is just 
too much work and error prone.

Does anybody have an  idea what might be wrong? Is it the installation 
of perl on the Sun? I will append the perl -V output at the end.

I have spend a a long time googling with no success, so any help is 
greatly appreciated,
Matthias


-------------------------------------------------------------------------------------------------------------------
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
 Platform:
   osname=solaris, osvers=2.9, archname=sun4-solaris-64int
   uname='sunos localhost 5.9 sun4u sparc sunw,ultra-1'
   config_args=''
   hint=recommended, useposix=true, d_sigaction=define
   usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=unde
f
   useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
   use64bitint=define use64bitall=undef uselongdouble=undef
 Compiler:
   cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
   optimize='-xO3 -xdepend',
   cppflags=''
   ccversion='Sun WorkShop', gccversion='', gccosandvers=''
   intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
   d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
   ivtype='long long', ivsize=8, nvtype='double', nvsize=8, 
Off_t='off_t', lsee
ksize=8
   alignbytes=8, usemymalloc=n, prototype=define
 Linker and Libraries:
   ld='cc', ldflags =''
   libpth=/lib /usr/lib /usr/ccs/lib
   libs=-lsocket -lnsl -ldl -lm -lc
   perllibs=-lsocket -lnsl -ldl -lm -lc
   libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
 Dynamic Linking:
   dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R 
/usr/perl5/5.6.
1/lib/sun4-solaris-64int/CORE'
   cccdlflags='-KPIC', lddlflags='-G'


Characteristics of this binary (from libperl):
 Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
 Locally applied patches:
    9676 Port the OpenBSD glob() security patch
    9678 Addendum to #9676: some missing changes from OpenBSD glob.c
    9679 Up $File::Glob::VERSION, add OpenBSD glob version note
    9693 $VERSION and Version() on same line provokes CPAN.pm warning
    9706 #7210 broke .packlist generation
    9707 ExtUtils::Installed doesn't quote regex metacharacters in paths
    9775 Typo in utf8.h
    9950 Revert integration of #8254,#8255 in #8620 (causes coredump)
   10021 Insecure regexes
   10091 $ref1 == $ref2 behaves unpredictably if not NV_PRESERVES_UV
   10093 Incorrect line numbers in AutoSplit
   10100 [20010514.027] PL_last_in_gv may not be GV if stale filehandle
   10145 [20010515.004] Segfaults from premature GC
   10203 Don't think about UTF8
   10250 [20010422.005] perl -e '{s//${}/; //}' segfaults
   10394 Leakage of file scope lexicals into predeclared subroutines
   10404 eval.t was relying on pre-#10394 buggy behavior
   10412 Rationalize locale handling to fix bugs uncovered by #10394
   10422 Potential buffer overrun if the radix separator > 1 byte
   10448 Lexicals outside eval weren't resolved correctly pre-#10394
   10450 Optimize #10448 slightly
   10543 Add LC_MESSAGES constant to POSIX module
   10667 #10449 broke visibility of lexicals inside DB::DB()
   10739 C<eval "/x$\r\n/x"> fails to compile correctly
   10939 Proposed fix for Pod::Man
   11169 Doc patch for Tie::Hash
   11374 Make h2ph grok ccsymbols fo the form 1234L, 1234ULL etc
   11427 t/harness wasn't picking up all the tests
   11428 run/runenv.t needs fflushNULL sanity
   11431 pod/*.t tests not picked up by t/TEST either
   11510 eval 'format foo=' would loop indefinitely
   11713 UTF8 wasn't printing for PVMGs
   11716 UTF8 flag should be meaningful only when POK
   11808 [20010831.002] Bug in Term::Cap on Solaris ansi terminal
   11847 Typo in perl_clone() code causes local(*foo) breakage
   12005 [20010912.007] substr reference core dump
   12024 Fix local() precedence bug in #8311
   12303 Fix 'local $!=0;undef*STDOUT;' segfault
   12304 Pod::Html makes a poor guess at author
   12350 Typo in IO::Seekable doc
   12496 Carp::shortmess_heavy() doesn't notice trailing newline
   12549 readline() doesn't work with 'our' variables
   12550 #12549 wasn't aware of strictures
   12752 croak(Nullch) wasn't printing the contents of ERRSV
   12811 [20011101.069] \stat('.') gives 'free unref scalar' error
   12812 Slight modification of #12811
   13149 Integrate #13147 from mainline (fixes nit in #10091)
   13261 Integrate #8340,#13260 from mainline
 Built under solaris
 Compiled at Apr  6 2002 14:45:34
 %ENV:
   PERL5LIB="/home/kraatzm/lib/perl5:/home/kraatzm/lib/perl5/site_perl"
 @INC:
   /home/kraatzm/lib/perl5
   /home/kraatzm/lib/perl5/site_perl
   /usr/perl5/5.6.1/lib/sun4-solaris-64int
   /usr/perl5/5.6.1/lib
   /usr/perl5/site_perl/5.6.1/sun4-solaris-64int
   /usr/perl5/site_perl/5.6.1
   /usr/perl5/site_perl
   /usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int
   /usr/perl5/vendor_perl/5.6.1
   /usr/perl5/vendor_perl
   .







6. Issues Installing CPAN Modules on Win NT - Activestate Perl 5.61

7. Using CPAN.pm with multiple perl installs

8. installing modules to ActiveState Perl from cpan downloads



Return to PERL

 

Who is online

Users browsing this forum: No registered users and 19 guest