This is a test version of Biostars. For the public version, visit https://www.biostars.org.
MuSiC installation on Mac, Module Genome error

I followed the guide here and I was able to get almost to the end of the installation.

At the point where I have to install the Genome module with

sudo `which cpanm` -n http://apt.genome.wustl.edu/ubuntu/pool/main/g/genome/genome_0.80.1-3.tar.gz

I get the following error (from the log.file):

Checking dependencies from MYMETA.json ...
Checking if you have IO::String 0 ... Yes (1.08)
Checking if you have IO::File 0 ... Yes (1.16)
Checking if you have Getopt::Complete 0 ... Yes (0.26)
Checking if you have Carp 0 ... Yes (1.29)
Checking if you have File::Temp 0 ... Yes (0.23)
Checking if you have File::Basename 0 ... Yes (2.84)
Checking if you have UR 0.29 ... Yes (0.43)
Checking if you have Sys::Hostname 0 ... Yes (1.17)
Building Genome-0.080001
Building Genome
failed to extract pod: : error in Genome::Site::local::MacBooks-MacBook-Pro: Bareword "Pro" not allowed while "strict subs" in use at (eval 206) line 1.

 at /Users/macbook/.cpanm/work/1429565645.21366/genome-0.80.1/blib/lib/Genome/Site.pm line 24.
    Genome::Site::BEGIN() called at /Users/macbook/.cpanm/work/1429565645.21366/genome-0.80.1/blib/lib/Genome/Site.pm line 36
    eval {...} called at /Users/macbook/.cpanm/work/1429565645.21366/genome-0.80.1/blib/lib/Genome/Site.pm line 36
[ ... ]
-> FAIL Installing http://apt.genome.wustl.edu/ubuntu/pool/main/g/genome/genome_0.80.1-3.tar.gz failed. See /Users/macbook/.cpanm/work/1429565645.21366/build.log for details. Retry with --force to force install it.

This tells me that there is a problem because of the word "Pro" from my MacBook Pro....however, I'm not sure how to fix this, any suggestions?

I did try to use --force but it made no difference...

music mac

1 answer

Those instructions were tested on various Linux distributions, never on a Mac. One of the many differences between Linux and Mac OSX is how OSX allows a user-friendly ComputerName like "MacBooks MacBook Pro" that can contains spaces, while a linux hostname cannot. It doesn't perfectly fit your error message, but give it a shot. Run the following to change your Mac's ComputerName and HostName, and try again:

sudo scutil --set HostName "macbookpro"
sudo scutil --set ComputerName "macbookpro"

Great! Glad to hear. And thanks for confirming Mac compatibility. :)

@Cyriac Kandoth I want to install genome-music followed your approach described Installation of the MuSiC suite on unsupported Linux distributions and almost finished. I met a problem when I install the Genome module with

sudo `which cpanm` -n http://apt.genome.wustl.edu/ubuntu/pool/main/g/genome/genome_0.80.1-3.tar.gz

The error is:

--> Working on http://apt.genome.wustl.edu/ubuntu/pool/main/g/genome/genome_0.80.1-3.tar.gz
Fetching http://apt.genome.wustl.edu/ubuntu/pool/main/g/genome/genome_0.80.1-3.tar.gz ... OK
Configuring Genome-0.07 ... OK
Building Genome-0.080001 ... FAIL
! Installing http://apt.genome.wustl.edu/ubuntu/pool/main/g/genome/genome_0.80.1-3.tar.gz failed. See /home/majun/.cpanm/work/1429704220.15054/build.log for details. Retry with --force to force install it.

I want to install music on the Ubuntu 14.04. I don't know how to do.

Thanks

Log in to answer this question.