in reply to Failed test of Net::SNTP::Client module

G'day thanos1983,

"So first thing first. The module code if someone want to test it can be found here RFC: Net::SNTP::Client v1."

That link has two problems (which you should fix):

  1. It doesn't link to "RFC: Net::SNTP::Client v1" at all. In fact, it links to The Monastery Gates! So, at this point, nobody can see the code, let alone test it (sure, we could spend time searching for it, but we shouldn't have to).
  2. It's an absolute link to 'http://perlmonks.com/?' — anyone following it stands a good chance of being logged out. Don't use absolute links, use relative links. See "All Links Within PerlMonks Should Be Relative" for both the reason why and how to do this.
"I was following the instructions from How to make a CPAN Module Distribution ..."

[That's also an absolute link, so please fix it as well.]

"How to make a CPAN Module Distribution" is thirteen (13) years old: I'm not suggesting there's wrong information there, it's just old information. It shows three methods: h2xs, ExtUtils::ModuleMaker and Module::Starter: you haven't said which one you're using. Take a look at "perlnewmod: Perl modules: preparing a new module for distribution" — this forms part of the core Perl distribution and should be (more) current.

"I have post several questions over and over ..."

In one of these (Undefined subroutine &main [SOLVED]), you said you had installed Module::Starter and thought it was causing the errors (described in that thread) but, as it turned out, it had nothing to do with those errors. I recommend you go back to using Module::Starter: it does a lot of the work for you including, via your chosen plugin, creating a distribution bundle suitable for uploading to CPAN.

I've been using Damian Conway's Module::Starter::PBP plugin for about eight years. I've used it successfully in large commercial contracts and for smaller, personal (hobby) projects. While I'm happy to recommend it, I certainly don't insist you use it: there's other Module::Starter Plugins which you may find preferable.

"I am trying to install the module manually ..."

I think you're completely jumping the gun doing this. At its most basic, my typical workflow is:

  1. perl Makefile.PL make make test
  2. Add/Change/Delete module/test code.

    make realclean

    Go to 1.

That cycle will repeat many, many times before I get to 'make dist' or 'make install'.

-- Ken

Replies are listed 'Best First'.
Re^2: Failed test of Net::SNTP::Client module
by thanos1983 (Parson) on Jul 06, 2015 at 23:19 UTC

    Hello kcott,

    Thank you for your time and effort reading and replying to all my mistakes. I have updated the links to relative ones, as correctly pointed out to me.

    Thank you for the information links that you provide me with, I founded them really useful.

    One last question though, every time that I am rebuilding/reinstalling my written module should I repeat the Module::Starter process?

    What I mean is, let's assume that I have unistalled my module (Net::STNP::Client) and I want to install it again before I post it on CPAN do I need to repeat the Module::Starter process even though I have done it before?

    Update Ignore this question I figure it out the answer by my self from the document Module::Starter:

    Module::Starter is used to create a skeletal CPAN distribution, including basic builder scripts, tests, documentation, and module code.

    Apologies for the late reply I had to leave for some hours.

    Seeking for Perl wisdom...on the process of learning...not there...yet!