LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-28-2012, 07:08 AM   #1
csyavar
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Rep: Reputation: Disabled
Error by "make" command - (make: ... Error 127)


Hi,
i'm absolutely new to Linux,
I use Fedora13.
I have to run a program (or code, i don' know!) which interpolates data from a netcdf file and gives me a .DAT file. Its name's WRF2GrADS.

when i write "make" in the command-line and push enter i face an error that i don't know how to fix it:

[yavar@localhost WRF2GrADS]$ make
cc -E module_wrf_to_grads_netcdf.F > module_wrf_to_grads_netcdf.f
f77 -c module_wrf_to_grads_netcdf.f
make: f77: Command not found
make: *** [module_wrf_to_grads_netcdf.o] Error 127

I hope you have some ideas about it.

Last edited by csyavar; 10-28-2012 at 07:11 AM. Reason: gramatical
 
Old 10-28-2012, 07:23 AM   #2
csyavar
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
i better bring here the code cuz it's so simple and short. maybe u find a clue.


################### NOTE ####################
### If you need to have the "byteswapped" ###
### option in your .ctl file, INCLUDE ###
### the -Dbytesw directive in your compiler ###
### flags. ###
#################################################

# linux flags (PGI)

#LIBNETCDF = -L/home/yavar/wrf2/WPS/netcdf_links/lib -lnetcdf -lm
#INCLUDE = -I/home/yavar/wrf2/WPS/netcdf_links/include -I./
#FC = pgf90
#FCFLAGS = -g -C -Mfree
##FCFLAGS = -fast -Mfree
#CPP = /usr/bin/cpp
#CPPFLAGS = -I. -C -traditional -DRECL4

##########################################################################

wrf_to_grads: wrf_to_grads.o module_wrf_to_grads_netcdf.o module_wrf_to_grads_util.o
$(FC) $(FCFLAGS) -o wrf_to_grads wrf_to_grads.o \
module_wrf_to_grads_netcdf.o \
module_wrf_to_grads_util.o \
$(LIBNETCDF)

wrf_to_grads.o: wrf_to_grads.F module_wrf_to_grads_util.o
$(CPP) $(CPPFLAGS) wrf_to_grads.F > wrf_to_grads.f
$(FC) $(FCFLAGS) -c wrf_to_grads.f $(INCLUDE)

module_wrf_to_grads_util.o: module_wrf_to_grads_util.F module_wrf_to_grads_netcdf.o
$(CPP) $(CPPFLAGS) module_wrf_to_grads_util.F > module_wrf_to_grads_util.f
$(FC) $(FCFLAGS) -c module_wrf_to_grads_util.f $(INCLUDE)

module_wrf_to_grads_netcdf.o: module_wrf_to_grads_netcdf.F
$(CPP) $(CPPFLAGS) module_wrf_to_grads_netcdf.F > module_wrf_to_grads_netcdf.f
$(FC) $(FCFLAGS) -c module_wrf_to_grads_netcdf.f $(INCLUDE)

clean:
rm -f *.o *.mod *.f wrf_to_grads
 
Old 10-28-2012, 07:55 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,735

Rep: Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317
Welcome to LQ.

1) yum provides */f77
2) su
3) yum install compat-gcc-34-g77


.
 
Old 10-28-2012, 10:48 AM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Just to expand on knudfl's reply. Your Makefile is trying to run a FORTRAN compiler 'f77' to compile FORTRAN source code, and build a program. The Linux installation you're using doesn't have the compiler, and knudfl has described how to get it installed on your host. After you've built the program, you're probably going to want to run it, to actually perform the task it was written and built to do. From the Makfile, it looks like the program will be named 'wrf_to_grads'.
--- rod.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make: CC: Command not found make: *** [main.o] Error 127 on opensuse 11.3 Leo89 Linux - Newbie 6 11-30-2012 06:13 PM
kernel make error: "vmlinux.o no such file ..." and make -d "Reaping losing ..." micscherer Linux - Kernel 3 06-12-2012 08:29 AM
[SOLVED] installing .gz file..: "make: Error 127 chmod 755 " Ubunoob001 Linux - Newbie 16 10-11-2010 02:11 PM
Unable to compile C++ programs.make:g++ command not found error.Error 127 PrathuD Programming 3 03-16-2009 01:44 PM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 10:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration