Error Hostname In Music
1
1
Entering edit mode
12.0 years ago

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 • 2.0k views
ADD COMMENT
1
Entering edit mode
12.0 years ago
nnutter ▴ 210

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);
ADD COMMENT

Login before adding your answer.

Traffic: 2100 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6