Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unable to install Net::IP

184 views
Skip to first unread message

z...@psoftulsa.com

unread,
Dec 2, 2014, 5:30:04 PM12/2/14
to begi...@perl.org
Hi,

I'm unable to find information on this issue.  Whenever I try to install Net::IP (to do a simple DHCP configuration file that will make IP address reservations DNS files that will do forward and reverse lookups) it gives me the following results:

root@SERVER:~# cpan -i Net::IP
Reading '/root/.cpan/Metadata'
  Database was generated on Tue, 02 Dec 2014 10:53:28 GMT
Running install for module 'Net::IP'
Running make for M/MA/MANU/Net-IP-1.26.tar.gz
Checksum for /root/.cpan/sources/authors/id/M/MA/MANU/Net-IP-1.26.tar.gz ok

  CPAN.pm: Building M/MA/MANU/Net-IP-1.26.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Net::IP
Writing MYMETA.yml and MYMETA.json
  MANU/Net-IP-1.26.tar.gz
  make -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible


I'm running Ubuntu server:
root@SERVER:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="14.04.1 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.1 LTS"
VERSION_ID="14.04"

Perl 5.18:
root@SERVER:~# perl -v

This is perl 5, version 18, subversion 2 (v5.18.2) built for x86_64-linux-gnu-thread-multi
(with 41 registered patches, see perl -V for more detail)

Copyright 1987-2013, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

I'm running always as root for everything.  It makes my server management much easier by saving me from typing "sudo" for everything I do.

Any help would be greatly appreciated!

Zac
Power Switch of Tulsa, LLC

Brandon McCaig

unread,
Dec 2, 2014, 5:45:04 PM12/2/14
to z...@psoftulsa.com, begi...@perl.org
On Tue, Dec 2, 2014 at 5:17 PM, <z...@psoftulsa.com> wrote:
> Hi,

Hello,

> I'm unable to find information on this issue. Whenever I try to install
> Net::IP (to do a simple DHCP configuration file that will make IP address
> reservations DNS files that will do forward and reverse lookups) it gives me
> the following results:
>
> root@SERVER:~# cpan -i Net::IP
> Reading '/root/.cpan/Metadata'
> Database was generated on Tue, 02 Dec 2014 10:53:28 GMT
> Running install for module 'Net::IP'
> Running make for M/MA/MANU/Net-IP-1.26.tar.gz
> Checksum for /root/.cpan/sources/authors/id/M/MA/MANU/Net-IP-1.26.tar.gz ok
>
> CPAN.pm: Building M/MA/MANU/Net-IP-1.26.tar.gz
>
> Checking if your kit is complete...
> Looks good
> Writing Makefile for Net::IP
> Writing MYMETA.yml and MYMETA.json
> MANU/Net-IP-1.26.tar.gz
> make -- NOT OK
> Running make test
> Can't test without successful make
> Running make install
> Make had returned bad status, install seems impossible
*snip*
> Perl 5.18:
> root@SERVER:~# perl -v
>
> This is perl 5, version 18, subversion 2 (v5.18.2) built for
> x86_64-linux-gnu-thread-multi
> (with 41 registered patches, see perl -V for more detail)
*snip*

It has been a while since I invoked cpan(1) directly. I recommend you
upgrade to cpanm if you can. Regardless, there should be a build log
somewhere (try searching ~/.cpan) that will contain the errors
encountered while trying to `make'. Worst case, download the module
yourself (I think cpan(1) can help with this if you ask it politely),
extract its contents, and attempt to build yourself. One you know what
errors you are getting that will help to hint to the ultimate problem.

If you still need help post up the build output (or wait for somebody
that knows here to find it for cpan(1)).

> I'm running always as root for everything. It makes my server management
> much easier by saving me from typing "sudo" for everything I do.

That's not a very good idea. Of course, having global sudo access
isn't ideal either (Ubuntu is silly in that regard). Look into
perlbrew to install a localized perl installation that you can manage
yourself without root privileges. Running always as root (or sudo'ing
without due care) is asking for trouble. Typically the system perl
(e.g., /usr) is asking for trouble or at least pains too simply
because you either need root (see above) or need to do magic to not
need to, and typically it is out-of-date (though Ubuntu may keep it
more up-to-date than other distros, I believe that is still several
releases back).

> Any help would be greatly appreciated!

Regards,


--
Brandon McCaig <bamc...@gmail.com> <bamc...@castopulence.org>
Castopulence Software <https://www.castopulence.org/>
Blog <http://www.bambams.ca/>
perl -E '$_=q{V zrna gur orfg jvgu jung V fnl. }.
q{Vg qbrfa'\''g nyjnlf fbhaq gung jnl.};
tr/A-Ma-mN-Zn-z/N-Zn-zA-Ma-m/;say'

John SJ Anderson

unread,
Dec 2, 2014, 6:00:03 PM12/2/14
to z...@psoftulsa.com, Perl Beginners
Whenever you have a module installation fail, your first step should
be to ask: is it failing for other people?

Results of CPAN Testers (which is basically a distributed testing
network) are available on the dist's MetaCPAN page. For Net::IP,
that's here: https://metacpan.org/pod/Net::IP

(Spoiler: it has a tiny number of fails but a _huge_ number of passes.
It works for almost everybody.)

Based on those results, the good news is, it seems like the module
itself (probably) isn't broken, but instead, there's something about
your machine that isn't working for it.

Based on the output you have shown, my first question would be: do you
actually have make installed?

If you do have make installed, the next step would be to download the
dist tarball yourself (there's a download link on that MetaCPAN page),
expand it, cd into it, and run 'perl Makefile.PL && make', and see
what the output of that is. I suspect make is giving an error that's
getting eaten by the cpan client, for whatever reason.

(Aside: doing the make as root is not the best idea. (Least privilege)++)

chrs,
john.
> -- To unsubscribe, e-mail: beginners-...@perl.org For additional
> commands, e-mail: beginne...@perl.org http://learn.perl.org/

z...@psoftulsa.com

unread,
Dec 2, 2014, 6:30:03 PM12/2/14
to John SJ Anderson, Perl Beginners
Hello everybody,

Thank you very much John for your insight on this.

It turns out, I didn't know that make was not installed on my server; it came right back to life when after I ran sudo apt-get install make.

Issue resolved!

Thanks again everybody!

Zac Ortiz
Power Switch of Tulsa, LLC

0 new messages