Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

curl-loader is a traffic generator. You can generate HTTP, HTTPS, FTP etc. traffic with it.

Add to that, you can simulate multiple clients (multiple source IP addresses).

Here’s an explanation of how to install curl-loader on Ubuntu 12.04 64bit box and generate HTTP, HTTPS traffic.

$ uname –r

$ tail -1 /etc/lsb-release

install curl-loader

  1. download curl-loader from
  2. I downloaded curl-loader-0.56.tar.bz2.
  3. extract

    bunzip2 curl-loader-0.56.tar.bz2
    tar xvf curl-loader-0.56.tar
    cd curl-loader-0.56/
  4. build requirements

    Build it using general C development environment with bash, gcc (3 or 4 series), make, etc on a linux machine.

    Building pre-requirements are:

    • openssl binaries;
    • openssl development package with include files (on debian package libssl-dev);

    I have not installed libssl-dev , so I installed libssl-dev before compiling curl-loader.

    sudo apt-get install libssl-dev
  5. compile

    $ pwd
    $ make
    /bin/sh: 2: patch: not found" AND "make: *** [lib/libcurl.a] Error 127

How do I proceed from this error?

share|improve this question
up vote 1 down vote accepted

/bin/sh: 2: patch: not found

Install patch:

sudo apt-get install patch

You could also install build-essential package to make sure you have the basic tools used for compiling.

sudo apt-get install build-essential
share|improve this answer
He needs make and other stuff as well. Why not advising to install build-essential metapackage? :) – gertvdijk Jul 10 '13 at 11:36
@gertvdijk make is already installed, otherwise he would get a "command not found" when he tried to run make. But install build-essential is indeed a better approach. – Eric Carvalho Jul 10 '13 at 11:39

Your Answer


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.