Shahrokh
Shahrokh

Reputation: 11

How can I use gnu make older in configure command?

I want to install a application with commands of "configure", "make" and "make install". This application is needed to gnu make 3.76 or later; but I have fedora core 22 with GNU Make 4.0. When I config with "configure" command; I get the following error:

$ ./configure

...

checking for gmake... /bin/gmake

checking GNU Make 4.0 against constraint... GNU Make version too old!

configure: error: This configure requires version 3.76 or later of gnu make - you have 4.0

$ make --v

GNU Make 4.0

Built for x86_64-redhat-linux-gnu

...

$ which make

/usr/bin/make

$

For solving it, I install locally gnu make 3.76.1. The executable file of "make" is located in /home/sn/make-3.76.1. Also I add the following line to .bashrc file:

export PATH=/home/sn/make-3.76.1/:$PATH

After it, I open new terminal and check the version of make that mentioned below:

$ make --v

GNU Make version 3.76.1, by Richard Stallman and Roland McGrath.

...

$ which make

~/make-3.76.1/make

$

At new terminal, I again config but unfortunately, I get error mentioned above. How can I change make used by configure file from GNU make 4.0 to GNU make 3.76.1? What do I use options of configure command? Please guide me? Shahrokh

Upvotes: 1

Views: 1444

Answers (1)

yao
yao

Reputation: 1

I think maybe when you configure your application, it used gmake instead of make, so you should make a soft link for your new make to be gmake and have a try.

Upvotes: 0

Related Questions