Perl Forum for Beginners

Re: need to include and install CPAN modules as part of applicationstack

Feb 1, 2011 10:52 pm
Robin Kenyon

--_----------=_129660073129400
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"
Date: Tue, 1 Feb 2011 17:52:11 -0500
X-Mailer: MessagingEngine.com Webmail Interface

With all due respect Uri, you're not being particularly friendly.
This is a list for beginners, people are going to say things you
think are stupid from time to time, but you should either stay
your hand or be more constructive. Looking at your last few
posts the quoted text below isn't an isolated case...
Speaking as someone who was once a beginner himself ( ;-) ),
please be a tad more constructive and a bit more warm and
friendly :)

Perhaps these two entries from the FAQ might be appropriate:
[1]http://learn.perl.org/faq/beginners.html#2.3 are there any
rules
[2]http://learn.perl.org/faq/beginners.html#2.6 is there
anything i should keep in mind while answering

Robin

On 28 Jan 2011, at 05:45, Uri Guttman wrote:



"BL" == Ben Lavery <ben.lavery@gmail.com> writes:



BL> Personally, I'd like to see a way of executing a perl

BL> script/application in such a way that Perl runs off and grabs
any

BL> required modules from CPAN (if the user has permission, of
course).



that makes very little sense. what if the program is running on a
box

with no net connection? there are many other reasons why that is
a silly

thing to desire. i will leave it as an exercise to list them.



uri



--

Uri Guttman ------ uri@stemsystems.com --------
http://www.sysarch.com --

----- Perl Code Review , Architecture, Development, Training,
Support ------

--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com
---------



--
Robin Kenyon
robin_kenyon@fastmail.co.uk

References

1. http://learn.perl.org/faq/beginners.html#2.3 are there any rules
2. http://learn.perl.org/faq/beginners.html#2.6 is there anything i should keep in mind while answering

http://www.fastmail.fm - A no graphics, no pop-ups email service
--_----------=_129660073129400--
Feb 1, 2011 11:00 pm
Uri Guttman
Re: need to include and install CPAN modules as part of applicationstack

>>>>> "RK" == Robin Kenyon <robin_kenyon@fastmail.co.uk> writes:

RK> With all due respect Uri, you're not being particularly friendly.
RK> This is a list for beginners, people are going to say things you
RK> think are stupid from time to time, but you should either stay
RK> your hand or be more constructive. Looking at your last few
RK> posts the quoted text below isn't an isolated case...
RK> Speaking as someone who was once a beginner himself ( ;-) ),
RK> please be a tad more constructive and a bit more warm and
RK> friendly :)


RK> that makes very little sense. what if the program is running on a
RK> box with no net connection? there are many other reasons why that
RK> is a silly thing to desire. i will leave it as an exercise to list
RK> them.

if you think that was unfriendly, you need to see more stuff on the
net. the worst i said was silly. saying not making sense is factual
IMNSHO. note that the poster didn't reply as to why they wanted this
with some concrete reasons. among the reasons it is a silly idea is that
module will have dependencies, they will need c compilers if xs is used,
they ask questions of the user during installation, etc. none of those
would be nice to happen at run time as the OP wants.

sometimes it is better to slap a newbie on the wrist than to coddle them
with sweet nothings. this is one case where the idea needs to be shot
down quickly before it can fester and grow.

uri

Uri Guttman ------ uri@stemsystems.com -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
Feb 1, 2011 11:21 pm
Robin Kenyon
Re: need to include and install CPAN modules as part of applicationstack

On Tue, 01 Feb 2011 18:00 -0500, "Uri Guttman" <uri@StemSystems.com>
wrote:
> >>>>> "RK" == Robin Kenyon <robin_kenyon@fastmail.co.uk> writes:
>
> RK> With all due respect Uri, you're not being particularly friendly.
> RK> This is a list for beginners, people are going to say things you
> RK> think are stupid from time to time, but you should either stay
> RK> your hand or be more constructive. Looking at your last few
> RK> posts the quoted text below isn't an isolated case...
> RK> Speaking as someone who was once a beginner himself ( ;-) ),
> RK> please be a tad more constructive and a bit more warm and
> RK> friendly :)
>
>
> RK> that makes very little sense. what if the program is running on a
> RK> box with no net connection? there are many other reasons why that
> RK> is a silly thing to desire. i will leave it as an exercise to list
> RK> them.
>
> if you think that was unfriendly, you need to see more stuff on the
> net. the worst i said was silly. saying not making sense is factual
> IMNSHO. note that the poster didn't reply as to why they wanted this
> with some concrete reasons. among the reasons it is a silly idea is that
> module will have dependencies, they will need c compilers if xs is used,
> they ask questions of the user during installation, etc. none of those
> would be nice to happen at run time as the OP wants.
>
> sometimes it is better to slap a newbie on the wrist than to coddle them
> with sweet nothings. this is one case where the idea needs to be shot
> down quickly before it can fester and grow.
>
> uri

As a teacher, I'd disagree...My experience leads me to believe bluntly
shooting down beginners discourages them. I wouldn't be surprised if
the poster has left the list and perhaps even gone as far as leaving
perl well alone, depending on his current level of ability.

I'm not saying that what he said made sense, I do agree with what you
said in general. But you really shouldn't shoot beginners down like
that, as I said, it generally discourages them.

Anything else should probably be discussed off list as I'd agree this is
very off-topic.

Robin

Robin Kenyon
robin_kenyon@fastmail.co.uk
http://www.fastmail.fm - A no graphics, no pop-ups email service
Feb 1, 2011 11:36 pm
Uri Guttman
Re: need to include and install CPAN modules as part of applicationstack

>>>>> "RK" == Robin Kenyon <robin_kenyon@fastmail.co.uk> writes:

RK> As a teacher, I'd disagree...My experience leads me to believe bluntly
RK> shooting down beginners discourages them. I wouldn't be surprised if
RK> the poster has left the list and perhaps even gone as far as leaving
RK> perl well alone, depending on his current level of ability.

i teach perl as well. when i see someone going down a rabbit hole it is
important to stop that before it gets too far. if they leave the list or
perl, they won't be happy in any other language or forum since that is
how computers work. they are unforgiving and those with thin skins who
can't take seeing error messages (from humans OR computers) will likley
move on. programming isn't for everyone however easy it may seem on the
surface.

i give out a general programming quiz to students. one pair of the
questions is why is programming easy? and why is programming hard?

let's see your answers. :)

uri

Uri Guttman ------ uri@stemsystems.com -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------


Previous Thread: Behavior of minimal when applied to - {1,}? ot to - {0,}?
Next Thread: How do make certain that no input (keyboard + mouse paste) is outsideof 7-bit ASCII in a perl script?

Related Forum Topics
Need to include and install CPAN modules as part of application stack
------_=_NextPart_001_01CBBE65.E08A1034
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello all,

=20

=20

I need to include CPAN modules as part of our custom "application
stack".

=20

Currently we have a custom "application stack"...
Repost : installing CPAN modules as part of application stack
------_=_NextPart_001_01CBC3D6.E7D034B8
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello all,

=20

=20

I need to include CPAN modules as part of our custom "application stack"
installation.

=20

I was thinking that I would just...
Install modules from CPAN
--e89a8f23524166ec9b04bb41a539
Content-Type: text/plain; charset=ISO-8859-1

Hi there,
i have perl 5.6 on my laptop
am i want to download some modules from CPAN but all attempts i have made
have failed giving me such errors,
some help.

C:\>perl -MCPAN -e shell
cpan shell -- CPAN...
CPAN cannot install modules locally
--------------030906090903000905040702
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi

I am trying to install MediaWiki::Bot module locally on my server (I am
not the admin).
I am trying to use cpan command line interface for this.

I...
Can only install cpan modules as sudo
--B_3407311651_792059
Content-type: text/plain;
charset="US-ASCII"
Content-transfer-encoding: 7bit

Hi all,

I can only install cpan modules as sudo. I installed ActiveState Perl
v.5.14.2 and cpanm without a problem.

$ cpanm Net::SMTP
-bash: /usr/local/bin/cpanm: /usr/bin/perl: bad...
FW: can only install cpan modules as sudo
---814414838-151221274-1324685983=:26988
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable



--- On Fri, 12/23/11, Phil Dobbin <phildobbin@gmail.com> wrote:

From: Phil Dobbin <phildobbin@gmail.com>
Subject: FW: can only install cpan modules as...
Problems with install modules with CPAN and from source code when I update my PERL
------=_Part_91860_3534319.1231880100387
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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...
CPAN won't install YAML and others
Greetings;

YAML is not installed on my Lenny system and when I try to
install it (with perl -MCPAN -e shell) I get the following
errors after the source has been unpacked. Any ideas?

Thanks for any help!
Dennis

BTW :
> cardinal:~# ls -l...
Trying to install a cpan module
--001636c5baf9aa293804961729cc
Content-Type: text/plain; charset=ISO-8859-1

Hi all,

I'm new to programming, and only recently did I start playing around with
command prompts, etc, so it's probably no surpise that I'm having some
difficulty trying to install a module using cpan. The...
How to install modules
------=_NextPart_000_0157_01C8C303.BA8D74D0
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable

Hi,
I tried to install the module plot.pm, by following the undermentioned =
method http://www.base64.co.uk/installing-perl-modules/ but I failed. =
What...