All,

A colleague ran into a bug related to locale detection during installation.

I fwd the conversation and proposed solution by Leonardo Soto:

---------- Forwarded message ----------
From: Leo Soto M. <leo.s...@gmail.com>
List-Post: virtuoso-users@lists.sourceforge.net
Date: Mon, Dec 22, 2008 at 5:12 PM
Subject: Virtuoso Installation Problems on Spanish Locale (Was: AIR?)
To: Aldo Bucchi <aldo.buc...@gmail.com>


On Mon, Dec 22, 2008 at 2:00 PM, Aldo Bucchi <aldo.buc...@gmail.com> wrote:
> On Mon, Dec 22, 2008 at 12:22 PM, Leo Soto M. <leo.s...@gmail.com> wrote:

[...]

>> PS: I already installed virtuoso on my machine. Haven't had the
>> opportunity to play with it, as all my spare time was spent debugging
>> an installation problem. I discovered that it was caused by my locale,
>> which was set to es_ES. "LC_ALL=C" made it work.
>
> [I ask for more details...]

Sure. After all the problem is quite simple: Installation scripts use
netstat + grep to find out if the virtuoso server is up and listening
on a port. Problem being that the output of netstat is being grepped
as the following:

stat=`netstat -an | grep "[\.\:]$PORT " | grep LISTEN`

Which doesn't play well with my environment (Ubuntu 8.10, spanish
locale), where netstat is i18n'ed. Look yourself:

lsoto@spirit:~/src/virtuoso-opensource-5.0.9$ netstat -an  | grep :80
tcp        0      0 192.168.0.109:53542     64.161.254.20:8001      ESTABLECIDO
tcp6       0      0 :::80                   :::*                    ESCUCHAR

Thus, the grep don't match anything and the script think that the
server isn't up.

The obvious solution would be to change the grep line to:

stat=`LC_ALL=C netstat -an | grep "[\.\:]$PORT " | grep LISTEN`

Regards,
--
Leo Soto M.
http://blog.leosoto.com



-- 
Aldo Bucchi
U N I V R Z
Office: +56 2 795 4532
Mobile:+56 9 7623 8653
skype:aldo.bucchi
http://www.univrz.com/
http://aldobucchi.com

PRIVILEGED AND CONFIDENTIAL INFORMATION
This message is only for the use of the individual or entity to which it is
addressed and may contain information that is privileged and confidential. If
you are not the intended recipient, please do not distribute or copy this
communication, by e-mail or otherwise. Instead, please notify us immediately by
return e-mail.
INFORMACIÓN PRIVILEGIADA Y CONFIDENCIAL
Este mensaje está destinado sólo a la persona u organización al cual está
dirigido y podría contener información privilegiada y confidencial. Si usted no
es el destinatario, por favor no distribuya ni copie esta comunicación, por
email o por otra vía. Por el contrario, por favor notifíquenos inmediatamente
vía e-mail.

Reply via email to