Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
brew install moreutils --without-parallel
brew install parallel
share|improve this answer
3  
brew still complained Error: Cannot install parallel because conflicting formulae are installed. The second command should be brew install parallel --force. – Frozen Flame Sep 17 '15 at 3:52
up vote 3 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .