Tag Archives: make

Linux Configure Redis make Commands Error [Solved]

An error is reported in the make command for configuring redis on Linux

1. After decompressing the redis file, execute the make command and an error is reported:

Solution:

The reason is that the GCC version of Linux system is too low, and the GCC installed by Yum is 4.8.5.GCC needs to be upgraded

Command line input:

yum -y install centos-release-scl
yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils
scl enable devtoolset-9 bash
echo "source /opt/rh/devtoolset-9/enable" >> /etc/profile
gcc -v

Decompress the redis file again

Execute the make command, as shown in the following figure, OK!

Make Command ERROR: “make:*** No targets specified and no makefile found.Stop.” [Three Method to Solve]

When we installed the Linux package, we used the make command to give an error prompt like “make: * * * no targets specified and no makefile found. Stop.”

There are three ways we can try to solve this problem:

Method 1:

First, update the latest version of system software

yum update

This must be executed before we can install our system software or one click package

Second, compiling missing associated software

yum install gcc build-essential

After compiling and executing, we will execute./configure & amp& amp; Execution commands like make can solve the problem

Method 2:

1、 All kinds of dependencies under Linux have been installed because makefile is not found

If it is written by yourself, make sure it is in the current directory; If it is source code installation, run./configure first, generate Makefile, and then execute make to run normally

2、 If no other dependencies are installed, install the dependencies first

yum install gcc gcc-c++ autoconf automake

Yum – y install zlib zlib devel OpenSSL OpenSSL devel PCRE PCRE devel (installation depends on zlib, OpenSSL and PCRE)

First, update the latest version of system software

apt-get update

This must be executed before we can install our system software or one click package

Second, compiling missing associated software

apt-get install gcc build-essential

After compiling and executing, we will execute./configure & amp& amp; Execution commands like make can solve the problem

Supplement 2: it may be that GCC is not installed to compile C programs and C + + programs

yum-y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-develfreetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-develglib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devele2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel opensslopenssl-devel openldap openldap-devel nss_ ldap openldap-clientsopenldap-servers

Method 3:

wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz
tar zxvf ncurses-5.6.tar.gz
./configure -prefix=/usr/local -with-shared -without-debug
make
make install

   Error occurred when executing the make command G + +: command not found

Geeks, please accept the hero post of 2021 Microsoft x Intel hacking contest>>>

Error occurred when executing the make command G + +: command not found

October 24, 2016 12:31:29

Number of readings: 4366

Problems encountered by friends when installing node

Error report screenshot:

in fact, it’s very simple, just need to install
Yum – y install GCC automake Autoconf libtool make
and Yum install GCC gcc-c +