25 August, 2010
While Net::Ping::External neatly maneuvers around Net::Ping‘s root access requirement, sometimes you want to use a feature of Net::Ping that Net::Ping::External doesn’t provide, such as getting ping response time. (Net::Ping::External is a bit slower; timing it doesn’t provide adequately accurate data for me.)
You can ask your sysadmin to allow you sudo access to a script that uses Net::Ping, but that sometimes leads to file ownership issues.
There is another option available, provided:
1. You are using Solaris10
2. You have a pretty good relationship with your sysadmin.
Request that your sysadmin add net_icmpaccess to your entry in /etc/user_attr, as described here.
Log out & log back in to activate your new perms, and voila.
25 February, 2009
Boy howdy, was this a trial. Sheesh. (I am in no way pointing fingers at git for this mess…really, it’s this server [that I don’t have admin rights on] that doesn’t behave the way I expect.)
Solaris 10 on x86. (uname -a: SunOS princess 5.10 Generic_125101-10 i86pc i386 i86pc)
Here’s what I had to do, gathered from various places around the web (the Makefile editing was gleaned mainly from http://discuss.joyent.com/viewtopic.php?pid=175313).
First, I had to install my own gmake, openssl, curl, and a couple of other required libraries.
Edit the makefile:
:::-->diff Makefile Makefile.orig
< CFLAGS = -g -O2 -Wall -I/home/gabrielle/usr/local/include
CFLAGS = -g -O2 -Wall
> LDFLAGS =
Make sure we’re using gnu make:
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
This program built for i386-pc-solaris2.10
Then install like so:
/home/gabrielle/usr/local/bin/make INSTALL=/usr/ucb/install install
Voila doesn’t really seem the appropriate thing to say here.