Exactly.

Bernard Li a écrit :
So $INTERFACE returns "eth0"?

Cheers,

Bernard

-----Original Message-----
From: Fernando Laudares Camargos [mailto:[EMAIL PROTECTED] Sent: Thursday, January 26, 2006 10:51
To: Bernard Li
Cc: Oscar-devel List
Subject: Re: [Oscar-devel] ip is not recognize by 'interface2ip' (Network.pm)

Hi Bernard,
nope, it's not that. I already tried, and even asked: print "$INTERFACE". It was all right... It must be something else, but thanks for the suggestion.
Fernando

Bernard Li a écrit :

Hi Fernando:

Chances are there is something wrong with $INTERFACE - can

you check what you get for that variable after the line:

my $INTERFACE = shift or croak("No interface specified");

install_server requires the interface as an argument.

Cheers,

Bernard



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fernando Laudares Camargos
Sent: Thursday, January 26, 2006 10:20
To: Oscar-devel List
Subject: [Oscar-devel] ip is not recognize by 'interface2ip' (Network.pm)

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=k&kid3432&bid#0486&dat1642
_______________________________________________
Oscar-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel


--
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.



--
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

Reply via email to