Author Topic: How do I run feapMeKa binary using make command?  (Read 17185 times)

user452

  • New Member
  • *
  • Posts: 3
How do I run feapMeKa binary using make command?
« on: December 09, 2021, 06:50:46 AM »
I am trying to learn computational contact mechanics by following the book by Konyukhov. It uses feapMeKa and they have its binary available in the code in https://www.wiley.com//legacy/wileychi/konyukhov/software_submit.html?type=SupplementaryMaterial
However, when I try to run make command while in the folder 'code', I get the error -

/bin/sh: g77-3.3: command not found
make: *** [elmt100.o] Error 127

The content of the makefile is -

PGMNAME = feapMeKa
FFOPT   = -c -g -fno-globals
CCOPT   = -c -g -I.
LIBS    = -L/usr/X11R6/lib -lX11 -lc -lm 
FF      = "g77-3.3"
CC      = "gcc"
LD      = "g77-3.3"
FILES   = feap.o \
 feap_s1.o  feap_s2.o   feap_s3.o  feap_s4.o  feap_s5.o  feap_s6.o  feap_s7.o\
 feap_sv1.o feap_sv2.o  feap_sv3.o feap_sv5.o feap_sv6.o feap_sv7.o feap_mat.o\
 feap_ad1.o feap_ad2.o  feap_ti0.o feap_ti1.o feap_arc.o feap_qn.o  feap_eig.o\
 feap_tau.o feap_ext.o  feap_pl0.o feap_pl1.o feap_pl2.o feap_pl3.o elmt_g1.o\
 gaussPt.o  lobattoPt.o elmt_eig.o outp.o
ELEMENTS= \
 elmt1.o      elmt2.o      elmt3.o    elmt4.o     elmt5.o    elmt6.o     elmt7.o\
 elmt100.o    elmt101a.o   elmt101b.o elmt102.o   elmt103.o  elmt103ff.o elmt104.o\
 elmt104ff1.o elmt104ff2.o elmt105.o  elmt105ff.o elmt106.o  elmt107.o   elmt108.o\
 elmt109.o    elmt110.o
#
.SILENT:
#
feap: $(FILES) $(ELEMENTS)
   @echo linken...
   $(LD) -o $(PGMNAME) $(FILES) $(ELEMENTS) $(LIBS) 2>errolist
   @echo program $(PGMNAME) is up-to-date
   mv $(PGMNAME) $(HOME)/bin
#
.f.o: feap_com.h $<
   @echo $<
   $(FF) $(FFOPT) $<
#
.c.o: $<
   @echo $<
   $(CC) $(CCOPT) $<


Any suggestions on what could be going wrong?