Author Topic: Make file error  (Read 4315 times)

PeterWoerner

  • New Member
  • *
  • Posts: 9
Make file error
« on: July 24, 2017, 09:16:30 AM »
I keep having trouble with the make file with the following error:
makefile.in:5: *** missing separator.  Stop.

The relevant code is:

#------------------------------------------------------------------------
# To use this makefile the path for "$(FEAPHOME8_3)" must be set using
#   setenv FEAPHOME8_3=/....            (in .chrc or .tchrc)  or
#   export FEAPHOME8_3=/....            (in .bashrc or file used)
   setenv FEAPHOME8_3=~/Documents/FEAP83/ver83
   export FEAPHOME8_3=~/Documents/FEAP83/ver83
# N.B. Information after the slash defines to FEAP directories.

After googling, I switched the three spaces to a tab which resulted in the error:
makefile.in:5: *** recipe commences before first target.  Stop.

I will be grateful for any help.

(p.s. I successfully installed the file on my home computer)

K.Li

  • Full Member
  • ***
  • Posts: 191
Re: Make file error
« Reply #1 on: July 24, 2017, 11:32:50 AM »
You only need one of the commands setenv or export  depending on our Linux system:

check this
https://www.youtube.com/watch?v=_ohQ__rqq3Y

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: Make file error
« Reply #2 on: July 24, 2017, 11:38:28 AM »
You use export if your shell is a bash shell (the default on most linux/mac systems), setenv is used for csh shells.

Also set the environment variable in the shell at the command line (or in the .bashrc or .cshrc file depending on the shell). 

PeterWoerner

  • New Member
  • *
  • Posts: 9
Re: Make file error
« Reply #3 on: July 24, 2017, 11:44:12 AM »
Many thanks, commenting the setenv command worked.

Peter