This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Error Hostname In Music

I've been using Genome MuSic on an Ubuntu and CentOS6 machines without issues.

I installed it on another server and I hit a problem that I traced back to Genome::Site.

In the Begin block you identify the hostname and then try use $pkg. The problem is that the hostname has '-' in it. This breaks this call.

The call resolves to: use Genome::Site::lg-1r14

And generates: Bareword found where operator expected at (eval 42)[/usr/lib/perl5/5.8.8/perl5db.pl:628 http://perl5db.pl:628] line 2, near "1r14" (Missing operator before r14?)

Apart from changing the hostname (which I can't) anyone have any ideas? Thanks

music

1 answer

We have a fix for this but will have to update the Ubuntu package and release it. If you would like to patch your copy you can edit /usr/share/perl5/Genome/Site.pm and change the line like this:

my @hwords = reverse split('\.',$hostname);

to this:

my @hwords = map { s/-/_/g; $_ } reverse split('\.',$hostname);

Log in to answer this question.