Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Homebrew has a formula for moreutils and GNU parallel.

GNU Parallel conflicts with Moreutils since it also has a binary called parallel, which is just less useful. However I'd still like to install both formulae at the same time. How can I do that?

Ideally, I'd install GNU Parallel as gparallel – akin to the naming of the Coreutils binaries – to avoid these conflicts, but I don't see a way to specify that in the formula itself, since prefix is just the Homebrew prefix.

def install                                                                                                                               
    system "./configure", "--prefix=#{prefix}"                                                                                              
    system "make install"                                                                                                                   
end

Any way to get the best of both worlds?

share|improve this question
    
Are you aware that certain features of GNU Parallel depends on the program being called parallel? –  Ole Tange Feb 3 '13 at 19:17
    
No, I wasn't. Could you explain what these are? (Also, why is there a configuration option that lets you change this so easily?) –  slhck Feb 3 '13 at 19:21
add comment

1 Answer

up vote 0 down vote accepted

You can edit the GNU Parallel formula like so:

brew edit parallel

Now, change the following line:

system "./configure", "--prefix=#{prefix}"

To the following:

system "./configure", "--prefix=#{prefix}", "--program-prefix=g"

Save and now force-install Parallel (uninstall it if you haven't already—you don't need to touch the Moreutils installation for this to work):

brew install parallel --force

Now, GNU Parallel will be installed as gparallel.

share|improve this answer
    
And IMO this should be the default alternative if Moreutils is installed, like they do with Coreutils. Note to self: Nag the Homebrew people to change this. –  slhck Feb 3 '13 at 10:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.