Hi,
I'm having a problem to have my address ip recognized in step 3:
--------------------------------
--> Getting internal IP address
Cannot update hosts without a valid ip.
at ./install_server line 179
main::update_hosts('undef') called at ./install_server line 139
--> Got: [IP ]
--> Got: [broadcast ]
--> Got: [netmask ]
--> Adding hosts to /etc/hosts
--> Step 3: Failed to properly install OSCAR server; please check the logs
----------------------------------
The function used to get it is interface2ip from the module Network.pm.
What is curious is that if I import this function in a test script like the
following, it works without problem:
----------------------------------
#!/usr/bin/perl
use strict;
use lib "$ENV{OSCAR_HOME}/lib";
use OSCAR::Network;
my $INTERFACE="eth0";
print ("Getting internal IP address\n");
my ($ip,$bcast,$netmask) = interface2ip($INTERFACE);
print ("Got: [IP $ip]\n");
print ("Got: [broadcast $bcast]\n");
print ("Got: [netmask $netmask]\n");
----------------------------------
and return:
----------------------------------
Getting internal IP address
Got: [IP 10.0.1.1]
Got: [broadcast 10.255.255.255]
Got: [netmask 255.0.0.0]
----------------------------------
In your oppinion, what could be causing the problem? It used to works before,
is for sure something from my system configuration...
Thanks,
--
Fernando Laudares Camargos
Révolution Linux
http://www.revolutionlinux.com
---------------------------------------
* Tout opinion et prise de position exprimée dans ce message est celle de son
auteur et pas nécessairement celle de Révolution Linux.
** Any views and opinion presented in this e-mail are solely those of the
author and do not necessarily represent those of Révolution Linux.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Oscar-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel