How do I fix "/bin/sh: 2: patch: not found" and "make: *** [lib/libcurl.a] Error 127" errors?
12,918
/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
Related videos on Youtube
Author by
PHANI
Updated on September 18, 2022Comments
-
PHANI over 1 year
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 3.2.0-39-generic $ tail -1 /etc/lsb-release DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
install curl-loader
- download curl-loader from http://curl-loader.sourceforge.net/
- I downloaded
curl-loader-0.56.tar.bz2
. -
extract
bunzip2 curl-loader-0.56.tar.bz2 tar xvf curl-loader-0.56.tar cd curl-loader-0.56/
-
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 compilingcurl-loader
.sudo apt-get install libssl-dev
-
compile
$ pwd /home/hattori/My_works/curl-loader-0.56 $ make [...] /bin/sh: 2: patch: not found" AND "make: *** [lib/libcurl.a] Error 127
How do I proceed from this error?
-
gertvdijk almost 11 yearsHe needs
make
and other stuff as well. Why not advising to installbuild-essential
metapackage? :) -
Eric Carvalho almost 11 years@gertvdijk
make
is already installed, otherwise he would get a "command not found" when he tried to runmake
. But installbuild-essential
is indeed a better approach.