Skip to content

Instantly share code, notes, and snippets.

@drhirsch
Last active April 5, 2024 07:37
Show Gist options
  • Save drhirsch/e0295105a36039aa38ce936f39b26301 to your computer and use it in GitHub Desktop.
Save drhirsch/e0295105a36039aa38ce936f39b26301 to your computer and use it in GitHub Desktop.
Install GNU Parallel on any system including Cygwin
#!/bin/bash
# useful for platforms such as Cygwin that don't currently have GNU Parallel in their repo.
# prerequisite: make
(
wd=$(mktemp -d)
wget -nc -P $wd ftp://ftp.gnu.org/gnu/parallel/parallel-latest.tar.bz2
cd $wd
tar -xf parallel-latest.tar.bz2
cd parallel-*
./configure && make && make install
)
@ole-tange
Copy link

It is unclear to me why @scotty6435 believes the command will fail just because wget is not installed:

(wget -O - pi.dk/3 || lynx -source pi.dk/3 || curl pi.dk/3/ || fetch -o - http://pi.dk/3 ) > install.sh

As long as you have just one of wget, lynx,curl, or fetch installed it should work just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment