Not picking up the GNU version of make


 
Thread Tools Search this Thread
Operating Systems AIX Not picking up the GNU version of make
# 1  
Old 04-21-2011
Not picking up the GNU version of make

Hi team,

I am new to unix,and need your advice on the below.
I am using aix5.3 and have installed make-3.82 on the server.
I need to use gmake for configuring and installing a package ,but it is giving error at the below
Code:
root@sapsrp:/usr/tmp/xymon-4.3.2
# ./configure.server


Configuration script for Xymon

This script asks a few questions and builds a Makefile to compile Xymon
Code:
Checking your make-utility
GNU make is required to build Xymon.
If it is available as "gmake", run configure as: 'MAKE=gmake ./configure.server'

I checked the code where its causing the error and tee the output
Code:
if test "$MAKE" = ""; then
        MAKE=make
fi
echo "Checking your make-utility"
MAKEVER=`$MAKE -version 2>&1 | head -n 1 | awk '{print $1 " " $2}'`
if test "$MAKEVER" != "GNU Make"
then
        echo "GNU make is required to build Xymon."
        echo "If it is available as \"gmake\", run configure as: 'MAKE=gmake $0'"
        exit 1

TEE OUTPUT
/usr/bin/gmake: Not a recognized flag: v
usage: make [-einqrst] [-k|-S] [-d[A|adg[1|2]mstv]] [-D variable] [-f makefile ] [-j [jobs]] [variable=value ...] [target ...# which gmake

Its not picking up the GNU version of make,I have alreadys set the gmake environment variable etc..

Code:
export MAKE=/usr/bin/gmake

root@sapsrp:/usr/bin
# which gmake
/usr/bin/gmake
root@sapsrp:/usr/bin
# ls -lrta *make*
-rwxr-xr-x    1 bin      bin           10318 Nov 23 2004  makedev
lrwxrwxrwx    1 bin      bin              20 Mar 01 2009  makekey -> /usr/ccs/bin/makekey
lrwxrwxrwx    1 root     system           36 Apr 08 14:43 automake-1.11 -> ../../opt/freeware/bin/automake-1.11
lrwxrwxrwx    1 root     system           31 Apr 08 14:43 automake -> ../../opt/freeware/bin/automake
-r-xr-xr-x    1 root     system       106350 Apr 21 09:45 make
-r-xr-xr-x    1 root     system       106350 Apr 21 09:47 gmake


# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.6.0/lto-wrapper
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../gcc-4.6.0/configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran --prefix=/opt/freeware --mandir=/opt/freeware/man --infodir=/opt/freeware/info --enable-threads --enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd --host=powerpc-ibm-aix5.3.0.0
Thread model: aix
gcc version 4.6.0 (GCC)

Please suggest on the above,Let me know if u need anymore info

Moderator's Comments:
Mod Comment Please use [code] and [/code] tags when posting code, data or logs etc. to preserve formatting and enhance readability, thanks.

Last edited by zaxxon; 04-21-2011 at 05:14 AM.. Reason: code tags
# 2  
Old 04-21-2011
those *make files look to be the same to me.

what says:

# gmake --version
# make --version
# 3  
Old 04-22-2011
Hi,

both the commands are not working.Smilie

Code:
root@sapsrp:/
# gmake --version
gmake: Not a recognized flag: -
usage: make [-einqrst] [-k|-S] [-d[A|adg[1|2]mstv]] [-D variable] [-f makefile ]                                                                              [-j [jobs]] [variable=value ...] [target ...]
root@sapsrp:/

# make --version
make: Not a recognized flag: -
usage: make [-einqrst] [-k|-S] [-d[A|adg[1|2]mstv]] [-D variable] [-f makefile ] [-j [jobs]] [variable=value ...] [target ...]
root@sapsrp:/
#

Moderator's Comments:
Mod Comment Please start using [CODE] tags for listings, console output, ...


---------- Post updated 04-22-11 at 12:33 AM ---------- Previous update was 04-21-11 at 08:03 AM ----------

Hi,

Could anyone help me on the above,and suggest something which i might have done wrong.Smilie
# 4  
Old 04-23-2011
Sonal - in your OP you say that you have "installed" make 3.82.....could you please ellaborate on how you installed it.?

pakage / source? where did you get it from? AIX cd?

The GNU version of make responds to the --version flag, so it looks (to me at least) like the make you have installed is a propriatry AIX version thats simply been renamed to gmake.

i'm just trying to understand your process so far.
# 5  
Old 04-26-2011
hi,
regarding the make installation.i downloaded make-3.82.tar.gz package from site gnu.org/gnu/make
then after doing gunzip and untar, i gave ./configure then make ,then make install
# 6  
Old 04-27-2011
any suggestions ...
# 7  
Old 04-27-2011
Please don't bump up threads if your questions aren't answered immediately.

Did you receive any errors during any of the compilation steps? Also, did you change any of the configuration options? I'm asking this because GNU software by defaults installs to /usr/local/bin, instead of /usr/bin/
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Gnu make: default values and conditionals

I need some help. I use variables and conditionals to build with or without specic libraries. I set USEAL ?= 1 # get value from cmd, defaults to 1 (see comment) the conditional is: ifeq ($(USEAL),1) LIBS = <any libs> else LIBS = endif Its amazing that this works when invoked... (4 Replies)
Discussion started by: dodona
4 Replies

2. Shell Programming and Scripting

Backward compatibility issue with GNU bash, version 4.3.42(5)

Hi, I have made a snake game on below bash version. But it is not backward compatible. Can someone suggest a version which is most commonly used and is backward compatible so that i can change my code and share again? I have attached the game script. If someone can run it please also suggest... (5 Replies)
Discussion started by: amit14august
5 Replies

3. Shell Programming and Scripting

extension building make GNU Linux

Hi, I do "touch poub.mlc" Download my Makefile, But when I try : make -f Makefile.txt(.txt in order my file to be accepted for upload), it says:"no rule for poub.mlo target" What is wrong in my Makefile(test yourself please before posting)? (1 Reply)
Discussion started by: synhedionn
1 Replies

4. Shell Programming and Scripting

GNU make doesn't pick up changes

It's been a while since I had to write a Makefile, but I've managed to clobber this together: SRC=module1.c module2.c OBJS=$(SRC:%.c=%.o) HDR=include1.h include2.h CC=gcc CFLAGS=-Wall -ggdb -D_XOPEN_SOURCE -I. -ansi all: program program: $(OBJS) $(CC) $(CFLAGS) -o $@ $(OBJS) ... (3 Replies)
Discussion started by: pludi
3 Replies

5. SCO

GNU cpp and make on SCO

Installed GNU make and the GNU C/C++ compiler on SCO Openserver 5.0.7 recently. Only a normal user is able to run make and compile programs - root is not able to. Under root, make do run, but root can't access the compiler at all, even tho I set root's path to point to the compiler.... (0 Replies)
Discussion started by: The_Librarian
0 Replies

6. Programming

Detecting host OS in Gnu make

Is this possible? Right now I'm developing some code for Linux, Windows and OS X. To build on each of the systems I've currently got separate build targets for each platform. Ideally I'd like to set up a single make rule that can detect the appropriate target and build it. I know this is... (2 Replies)
Discussion started by: G_Morgan
2 Replies

7. UNIX for Dummies Questions & Answers

What's the difference between PMake and GNU Make?

My system is ubuntu, can I use PMake ? (0 Replies)
Discussion started by: meili100
0 Replies

8. UNIX for Advanced & Expert Users

GNU's make error codes - list

Hi, I often encounter make errors. Many a times, a corresponding error code is also shown, like make: Error 56 (ignored) make: Error 91 (ignored) make: Error 96 (ignored) et al. I tried google'ing as well as searching this forum for what these error codes mean. I know, make... (1 Reply)
Discussion started by: vino
1 Replies

9. UNIX for Advanced & Expert Users

Problems with gnu make

I am running a make file through the gnu make tool and i am getting the following error jsh1035c:/users/egate453/admegate/kapil/samples $ make -f GNUmakefile queue_c make -f ./GNUmakefile queue_c in_objdir=1 build_root=/users/egate453/admegate/kapil/samples make: Entering directory... (2 Replies)
Discussion started by: handak9
2 Replies

10. UNIX Desktop Questions & Answers

checking of GNU C Complier version

Hi, How do i check the GNU C Complier my system is running? thanks jennifer (2 Replies)
Discussion started by: jennifer
2 Replies
Login or Register to Ask a Question