Debian – How to fix “-bash: make: command not found”

Debian – How to fix “-bash: make: command not found”

debian

 

1. Error we are getting on Debian

root@debian:/usr/src/srtp# make && make install
-bash: make: command not found

2. How to fix -bash make: command not found

root@debian:/usr/src/srtp# apt-get install make
Reading package lists… Done
Building dependency tree
Reading state information… Done
Suggested packages:
make-doc
The following NEW packages will be installed:
make
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/396 kB of archives.
After this operation, 1,172 kB of additional disk space will be used.
Selecting previously unselected package make.
(Reading database … 132590 files and directories currently installed.)
Unpacking make (from …/make_3.81-8.2_amd64.deb) …
Processing triggers for man-db …
Setting up make (3.81-8.2) …
root@debian:/usr/src/srtp#

3. Recheck agian after install make package on Debian

root@debian:/usr/src/srtp# make && make install
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c srtp/srtp.c -o srtp/srtp.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/cipher/cipher.c -o crypto/cipher/cipher.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/cipher/null_cipher.c -o crypto/cipher/null_cipher.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/cipher/aes.c -o crypto/cipher/aes.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/cipher/aes_icm.c -o crypto/cipher/aes_icm.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/cipher/aes_cbc.c -o crypto/cipher/aes_cbc.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/hash/null_auth.c -o crypto/hash/null_auth.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/hash/sha1.c -o crypto/hash/sha1.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/hash/hmac.c -o crypto/hash/hmac.o
crypto/hash/hmac.c: In function âhmac_allocâ:
crypto/hash/hmac.c:60:15: warning: variable ânew_hmac_ctxâ set but not used [-Wunused-but-set-variable]
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/hash/auth.c -o crypto/hash/auth.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/math/datatypes.c -o crypto/math/datatypes.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/math/stat.c -o crypto/math/stat.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/kernel/crypto_kernel.c -o crypto/kernel/crypto_kernel.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/kernel/alloc.c -o crypto/kernel/alloc.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/kernel/key.c -o crypto/kernel/key.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/rng/rand_source.c -o crypto/rng/rand_source.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/rng/prng.c -o crypto/rng/prng.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/rng/ctr_prng.c -o crypto/rng/ctr_prng.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/kernel/err.c -o crypto/kernel/err.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/replay/rdb.c -o crypto/replay/rdb.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/replay/rdbx.c -o crypto/replay/rdbx.o
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -c crypto/replay/ut_sim.c -o crypto/replay/ut_sim.o
ar cr libsrtp.a srtp/srtp.o crypto/cipher/cipher.o crypto/cipher/null_cipher.o crypto/cipher/aes.o crypto/cipher/aes_icm.o crypto/cipher/aes_cbc.o crypto/hash/null_auth.o crypto/hash/sha1.o crypto/hash/hmac.o crypto/hash/auth.o crypto/math/datatypes.o crypto/math/stat.o crypto/kernel/crypto_kernel.o crypto/kernel/alloc.o crypto/kernel/key.o crypto/rng/rand_source.o crypto/rng/prng.o crypto/rng/ctr_prng.o crypto/kernel/err.o crypto/replay/rdb.o crypto/replay/rdbx.o crypto/replay/ut_sim.o
ranlib libsrtp.a
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -L. crypto/test/aes_calc.c -o crypto/test/aes_calc -lsrtp
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -L. crypto/test/cipher_driver.c -o crypto/test/cipher_driver -lsrtp
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -L. crypto/test/datatypes_driver.c -o crypto/test/datatypes_driver -lsrtp
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -L. crypto/test/kernel_driver.c -o crypto/test/kernel_driver -lsrtp
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -L. crypto/test/rand_gen.c -o crypto/test/rand_gen -lsrtp
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -L. crypto/test/sha1_driver.c -o crypto/test/sha1_driver -lsrtp
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -L. crypto/test/stat_driver.c -o crypto/test/stat_driver -lsrtp
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -L. test/srtp_driver.c -o test/srtp_driver -lsrtp
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -L. test/replay_driver.c -o test/replay_driver -lsrtp
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -L. test/roc_driver.c -o test/roc_driver -lsrtp
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -L. test/rdbx_driver.c -o test/rdbx_driver -lsrtp
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -Wall -O4 -fexpensive-optimizations -funroll-loops -L. -o test/rtpw test/rtpw.c test/rtp.c libsrtp.a -lsrtp
Build done. Please run ‘make runtest’ to run self tests.
/usr/bin/install -c -d /usr/local/include/srtp
/usr/bin/install -c -d /usr/local/lib
cp include/*.h /usr/local/include/srtp
cp crypto/include/*.h /usr/local/include/srtp
if [ -f libsrtp.a ]; then cp libsrtp.a /usr/local/lib/; fi
root@debian:/usr/src/srtp#

Thanks for using IThelpblog.com.

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>