problemas com Makefile do polyrate

1. problemas com Makefile do polyrate

messias de souza rocha
messiask9

(usa Ubuntu)

Enviado em 31/10/2011 - 21:48h

Boa noite
Estou com problemas com a instalação do polyrate9.7 etapa 2 do manual configurando makefile tenho todos compiladores , mas o manual recomenda g77 ou f77 quando dou comando executavél ./Makefile aparece para mim o seguinte .
messias@dav001 src]$ ./Makefile
./Makefile: line 1: F77C: command not found
./Makefile: line 2: VERSION: command not found
./Makefile: line 3: VPATH: command not found
./Makefile: line 6: VERSION: command not found
./Makefile: line 6: DUMSEXE: command not found
./Makefile: line 8: VERSION: command not found
./Makefile: line 8: CH5SEXE: command not found
./Makefile: line 9: VERSION: command not found
./Makefile: line 9: CLHBRSEXE: command not found
./Makefile: line 10: VERSION: command not found
./Makefile: line 10: CH4OSEXE: command not found
./Makefile: line 11: VERSION: command not found
./Makefile: line 11: CMCSEXE: command not found
./Makefile: line 12: VERSION: command not found
./Makefile: line 12: CWMCSEXE: command not found
./Makefile: line 13: VERSION: command not found
./Makefile: line 13: NH3SEXE: command not found
./Makefile: line 14: VERSION: command not found
./Makefile: line 14: H2NISEXE: command not found
./Makefile: line 15: VERSION: command not found
./Makefile: line 15: H3SEXE: command not found
./Makefile: line 16: VERSION: command not found
./Makefile: line 16: HNISEXE: command not found
./Makefile: line 17: VERSION: command not found
./Makefile: line 17: OH3SEXE: command not found
./Makefile: line 18: VERSION: command not found
./Makefile: line 18: OHCLSEXE: command not found
./Makefile: line 19: VERSION: command not found
./Makefile: line 19: HO2SEXE: command not found
./Makefile: line 22: .f.o:: command not found
./Makefile: line 23: syntax error near unexpected token `newline'
./Makefile: line 23: ` $(F77C) -c $<'



Eu não vejo o erro desse makefile , mas vou mostrar o makefile.
esse é meu make

F77C = /usr/bin/g77 -O -fno-automatic
VERSION = 9.7
VPATH = .. / po
That Can Be # executables built from this makefile

DUMSEXE = .. / exe / polyrate $ (VERSION). Dum.serial.exe

CH5SEXE = .. / exe / polyrate $ (VERSION). Ch5.serial.exe
CLHBRSEXE = .. / exe / polyrate $ (VERSION). Clhbr.serial.exe
CH4OSEXE = .. / exe / polyrate $ (VERSION). Ch4o.serial.exe
CMCSEXE = .. / exe / polyrate $ (VERSION). Cmc.serial.exe
CWMCSEXE = .. / exe / polyrate $ (VERSION). Cwmc.serial.exe
NH3SEXE = .. / exe / polyrate $ (VERSION). Nh3.serial.exe
H2NISEXE = .. / exe / polyrate $ (VERSION). H2ni.serial.exe
H3SEXE = .. / exe / polyrate $ (VERSION). H3.serial.exe
HNISEXE = .. / exe / polyrate $ (VERSION). Hni.serial.exe
OH3SEXE = .. / exe / polyrate $ (VERSION). Oh3.serial.exe
OHCLSEXE = .. / exe / polyrate $ (VERSION). Ohcl.serial.exe
HO2SEXE = .. / exe / polyrate $ (VERSION). Ho2.serial.exe
# User May add new executables here

. F.o:
$ (F77C)-c $ <
. C.o:
cc-c $ <


OBJ = dattim.o dateclock.o givtst.o intbsv3.o poly40.o \
polyrr.o headr.o interface.o polysz.o ef.o \
hooks.o ivtstm.o polyag.o rtpjac.o \
energetics.o intbsv1.o acespoly.o main.o \
polyhl.o fromblas.o intbsv2.o poly31.o polymq
$ (F77C)-c ../poten/ch4o.f
ch5.o: ../poten/ch5.f
$ (F77C)-c ../poten/ch5.f
chain3.o: ../poten/chain3.f
$ (F77C)-c ../poten/chain3.f
chain4.o: ../poten/chain4.f
$ (F77C)-c ../poten/chain4.f
clhbr.o: .. / po / clhbr.f
$ (F77C)-c .. / po / clhbr.f
cmc.o: .. / po / cmc.f
$ (F77C)-c .. / po / cmc.f
coord3.o: ../poten/coord3.f
$ (F77C)-c ../poten/coord3.f
coord4.o: ../poten/coord4.f
$ (F77C)-c ../poten/coord4.f
cwmc.o: .. / po / cwmc.f
$ (F77C)-c .. / po / cwmc.f
dumpot.o: .. / po / dumpot.f
$ (F77C)-c .. / po / dumpot.f
h2ni.o: ../poten/h2ni.f
$ (F77C)-c ../poten/h2ni.f
h3.o: ../poten/h3.f
$ (F77C)-c ../poten/h3.f
hni.o: .. / po / hni.f
$ (F77C)-c .. / po / hni.f
ho2.o: ../poten/ho2.f
$ (F77C)-c ../poten/ho2.f
nh3.o: ../poten/nh3.f
$ (F77C)-c ../poten/nh3.f
oh3.o: ../poten/oh3.f
$ (F77C)-c ../poten/oh3.f
ohcl.o: .. / po / ohcl.f
$ (F77C)-c .. / po / ohcl.f
setup3.o: ../poten/setup3.f
$ (F77C)-c ../poten/setup3.f
setup4.o: ../poten/setup4.f
$ (F77C)-c ../poten/setup4.f
surf3.o: ../poten/surf3.f
$ (F77C)-c ../poten/surf3.f
surf4.o: ../poten/surf4.f
$ (F77C)-c ../poten/surf4.f
User # add line sep potential here to build file. Start second line with the tab


# User May add lines here to make the executable. Example:
# SURFACE:
# Gmake $ (SURFACEEXE)
# $ (SURFACEEXE): $ (OBJ) dummy_mpi.o surface.o
# $ (F77C)-o $ (SURFACEEXE) $ (OBJ) dummy_mpi.o surface.o

Dums:
gmake-s $ (DUMSEXE)
($ DUMSEXE): $ (OBJ) dummy_mpi.o dumpot.o
$ (F77C)-o $ (DUMSEXE) $ (OBJ) dummy_mpi.o dumpot.o

CH4OS:
gmake-s $ (CH4OSEXE)
($ CH4OSEXE): $ (OBJ) dummy_mpi.o ch4o.o
$ (F77C)-o $ (CH4OSEXE) $ (OBJ) dummy_mpi.o ch4o.o

CH5S:
gmake-s $ (CH5SEXE)
($ CH5SEXE): $ (OBJ) dummy_mpi.o ch5.o
$ (F77C)-o $ (CH5SEXE) $ (OBJ) dummy_mpi.o ch5.o

CLHBRS:
gmake-s $ (CLHBRSEXE)
($ CLHBRSEXE): $ (OBJ) dummy_mpi.o clhbr.o setup3.o surf3.o coord3.o chain3.o
$ (F77C)-o $ (CLHBRSEXE) $ (OBJ) dummy_mpi.o clhbr.o setup3.o surf3.o coord3.o chain3.o

CMCS:
gmake-s $ (CMCSEXE)
($ CMCSEXE): $ (OBJ) dummy_mpi.o cmc.o
$ (F77C)-o $ (CMCSEXE) $ (OBJ) dummy_mpi.o cmc.o

CWMCS:
gmake-s $ (CWMCSEXE)
($ CWMCSEXE): $ (OBJ) dummy_mpi.o cwmc.o
$ (F77C)-o $ (CWMCSEXE) $ (OBJ) dummy_mpi.o cwmc.o

H2NIS:
gmake-s $ (H2NISEXE)
($ H2NISEXE): $ (OBJ) dummy_mpi.o h2ni.o
$ (F77C)-o $ (H2NISEXE) $ (OBJ) dummy_mpi.o h2ni.o

H3s:
H3s:
gmake-s $ (H3SEXE)
($ H3SEXE): $ (OBJ) dummy_mpi.o h3.o setup3.o surf3.o coord3.o chain3.o
$ (F77C)-o $ (H3SEXE) $ (OBJ) dummy_mpi.o h3.o setup3.o surf3.o coord3.o chain3.o

HNIS:
gmake-s $ (HNISEXE)
($ HNISEXE): $ (OBJ) dummy_mpi.o hni.o
$ (F77C)-o $ (HNISEXE) $ (OBJ) dummy_mpi.o hni.o

HO2S:
gmake-s $ (HO2SEXE)
($ HO2SEXE): $ (OBJ) dummy_mpi.o ho2.o setup3.o surf3.o coord3.o chain3.o
$ (F77C)-o $ (HO2SEXE) $ (OBJ) dummy_mpi.o ho2.o setup3.o surf3.o coord3.o chain3.o

NH3S:
gmake-s $ (NH3SEXE)
($ NH3SEXE): $ (OBJ) dummy_mpi.o nh3.o
$ (F77C)-o $ (NH3SEXE) $ (OBJ) dummy_mpi.o nh3.o

OH3S:
gmake-s $ (OH3SEXE)
($ OH3SEXE): $ (OBJ) dummy_mpi.o oh3.o setup4.o surf4.o coord4.o chain4.o
$ (F77C)-o $ (OH3SEXE) $ (OBJ) dummy_mpi.o oh3.o setup4.o surf4.o coord4.o chain4.o

OHCLS:
gmake-s $ (OHCLSEXE)
($ OHCLSEXE): $ (OBJ) dummy_mpi.o ohcl.o setup3.o surf3.o coord3.o chain3.o
$ (F77C)-o $ (OHCLSEXE) $ (OBJ) dummy_mpi.o ohcl.o setup3.o surf3.o coord3.o chain3.o


Gente se alguem conseguir ver esse erro por favor me ajudem preciso compilar ele obrigado.






  


2. Re: problemas com Makefile do polyrate

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 31/10/2011 - 21:56h

não seria o comando
make ?

$make


3. problemas com Makefile do polyrate

messias de souza rocha
messiask9

(usa Ubuntu)

Enviado em 31/10/2011 - 22:34h

gente alguem conhece o polyrate9.7 ou qualquer outra versão .?




4. Usando o Makefile

Domingos Paraiso
DomingosParaiso

(usa Debian)

Enviado em 01/11/2011 - 07:55h

messiask9,

O arquivo Makefile serve apenas de parâmetros para que se utilize o programa "make", estado no diretório que contém o Makefile basta executar o make que ele vai fazer o que precisa para compilar o programa.
Quanto ao G77/F77 você pode instalar o pacote g77 do ubuntu, ele pertence ao gcc e deve funcionar bem. Caso queira tentar o F77 veja o passo-a-passo neste link: http://www.webmo.net/support/pgf77.html

Domingos Paraiso


5. g77

messias de souza rocha
messiask9

(usa Ubuntu)

Enviado em 01/11/2011 - 11:40h

Eu não tenho o g77 , mas trabalho com ssh a maquina que eu uso tem todos os compiladores instalados , mesmo porque só preciso do g77 e do f77 uso comando make , mas não é esse o problema pode ver que tem um erro na ultima linha. abraço e obrigado.


6. Uso do comando "make"

Domingos Paraiso
DomingosParaiso

(usa Debian)

Enviado em 01/11/2011 - 14:25h

Acredito que não fui claro em minha mensagem... me diga uma coisa, você tentou executar o comando "./Makefile"?
Pergunto isso porque o "Makefile" não é um programa para ser executado, para usar este arquivo você deve usar o comando "make".


7. sim .

messias de souza rocha
messiask9

(usa Ubuntu)

Enviado em 01/11/2011 - 14:44h

mas já fiz isso . vou fazer o seguinte vou apagar ele e recriar novamente sem ser no executavél ..
mas já tinha tentado make..



8. pronto

messias de souza rocha
messiask9

(usa Ubuntu)

Enviado em 01/11/2011 - 14:51h

fiz o que vc sugeriu mesma coisa ..eu preciso compilar esse makefile depois que uso comando make.



9. resolvi alguns erros

messias de souza rocha
messiask9

(usa Ubuntu)

Enviado em 02/11/2011 - 01:10h

F77C = /usr/bin/g77 -O -fno-automatic
VERSION = 9.7
VPATH = .. / po ten
That Can Be # executables built from this makefile

DUMSEXE = .. / exe / polyrate $ (VERSION). Dum.serial.exe

CH5SEXE = .. / exe / polyrate $ (VERSION). Ch5.serial.exe
CLHBRSEXE = .. / exe / polyrate $ (VERSION). Clhbr.serial.exe
CH4OSEXE = .. / exe / polyrate $ (VERSION). Ch4o.serial.exe
CMCSEXE = .. / exe / polyrate $ (VERSION). Cmc.serial.exe
CWMCSEXE = .. / exe / polyrate $ (VERSION). Cwmc.serial.exe
NH3SEXE = .. / exe / polyrate $ (VERSION). Nh3.serial.exe
H2NISEXE = .. / exe / polyrate $ (VERSION). H2ni.serial.exe
H3SEXE = .. / exe / polyrate $ (VERSION). H3.serial.exe
HNISEXE = .. / exe / polyrate $ (VERSION). Hni.serial.exe
OH3SEXE = .. / exe / polyrate $ (VERSION). Oh3.serial.exe
OHCLSEXE = .. / exe / polyrate $ (VERSION). Ohcl.serial.exe
HO2SEXE = .. / exe / polyrate $ (VERSION). Ho2.serial.exe
# User May add new executables here

. F.o:
$ (F77C)-c $ <
. C.o:
cc-c $ <
   export F77C VERSION VPATH DUMSEXE CH5SEXE CLHBRSEXE CH40SEXE
CMCSEXE NH3SEXE H2NISEXE H3SEXE HNISEXE OH3SEXE OHCLSEXE HO2SEXE
OBJ = dattim.o dateclock.o givtst.o intbsv3.o poly40.o \
polyrr.o headr.o interface.o polysz.o ef.o \
hooks.o ivtstm.o polyag.o rtpjac.o \
energetics.o intbsv1.o acespoly.o main.o \
polyhl.o fromblas.o intbsv2.o poly31.o polymq
$ (F77C)-c ../poten/ch4o.f
ch5.o: ../poten/ch5.f
$ (F77C)-c ../poten/ch5.f
chain3.o: ../poten/chain3.f
$ (F77C)-c ../poten/chain3.f
chain4.o: ../poten/chain4.f
$ (F77C)-c ../poten/chain4.f
clhbr.o: .. / po / clhbr.f
$ (F77C)-c .. / po / clhbr.f
cmc.o: .. / po / cmc.f
$ (F77C)-c .. / po / cmc.f
coord3.o: ../poten/coord3.f
$ (F77C)-c ../poten/coord3.f
coord4.o: ../poten/coord4.f
$ (F77C)-c ../poten/coord4.f
cwmc.o: .. / po / cwmc.f
$ (F77C)-c .. / po / cwmc.f
dumpot.o: .. / po / dumpot.f
$ (F77C)-c .. / po / dumpot.f
h2ni.o: ../poten/h2ni.f
$ (F77C)-c ../poten/h2ni.f
h3.o: ../poten/h3.f
$ (F77C)-c ../poten/h3.f
hni.o: .. / po / hni.f
$ (F77C)-c .. / po / hni.f
ho2.o: ../poten/ho2.f
$ (F77C)-c ../poten/ho2.f
nh3.o: ../poten/nh3.f
$ (F77C)-c ../poten/nh3.f
oh3.o: ../poten/oh3.f
$ (F77C)-c ../poten/oh3.f
ohcl.o: .. / po / ohcl.f
$ (F77C)-c .. / po / ohcl.f
setup3.o: ../poten/setup3.f
$ (F77C)-c ../poten/setup3.f
setup4.o: ../poten/setup4.f
$ (F77C)-c ../poten/setup4.f
surf3.o: ../poten/surf3.f $ (F77C)-c ../poten/surf3.f
surf4.o: ../poten/surf4.f
$ (F77C)-c ../poten/surf4.f
User # add line sep potential here to build file. Start second line with the tab


# User May add lines here to make the executable. Example:
# SURFACE:
# Gmake $ (SURFACEEXE)
# $ (SURFACEEXE): $ (OBJ) dummy_mpi.o surface.o
# $ (F77C)-o $ (SURFACEEXE) $ (OBJ) dummy_mpi.o surface.o

Dums:
gmake-s $ (DUMSEXE)
($ DUMSEXE): $ (OBJ) dummy_mpi.o dumpot.o
$ (F77C)-o $ (DUMSEXE) $ (OBJ) dummy_mpi.o dumpot.o

CH4OS:
gmake-s $ (CH4OSEXE)
($ CH4OSEXE): $ (OBJ) dummy_mpi.o ch4o.o
$ (F77C)-o $ (CH4OSEXE) $ (OBJ) dummy_mpi.o ch4o.o

CH5S:
gmake-s $ (CH5SEXE)
($ CH5SEXE): $ (OBJ) dummy_mpi.o ch5.o
$ (F77C)-o $ (CH5SEXE) $ (OBJ) dummy_mpi.o ch5.o

CLHBRS:
gmake-s $ (CLHBRSEXE)
($ CLHBRSEXE): $ (OBJ) dummy_mpi.o clhbr.o setup3.o surf3.o coord3.o chain3.o
$ (F77C)-o $ (CLHBRSEXE) $ (OBJ) dummy_mpi.o clhbr.o setup3.o surf3.o coord3.o chain3.o

CMCS:
gmake-s $ (CMCSEXE)
($ CMCSEXE): $ (OBJ) dummy_mpi.o cmc.o
$ (F77C)-o $ (CMCSEXE) $ (OBJ) dummy_mpi.o cmc.o

CWMCS:
gmake-s $ (CWMCSEXE)
($ CWMCSEXE): $ (OBJ) dummy_mpi.o cwmc.o
$ (F77C)-o $ (CWMCSEXE) $ (OBJ) dummy_mpi.o cwmc.o

H2NIS:
gmake-s $ (H2NISEXE)
($ H2NISEXE): $ (OBJ) dummy_mpi.o h2ni.o
$ (F77C)-o $ (H2NISEXE) $ (OBJ) dummy_mpi.o h2ni.o

H3s:
H3s:
gmake-s $ (H3SEXE)
($ H3SEXE): $ (OBJ) dummy_mpi.o h3.o setup3.o surf3.o coord3.o chain3.o
$ (F77C)-o $ (H3SEXE) $ (OBJ) dummy_mpi.o h3.o setup3.o surf3.o coord3.o chain3.o

HNIS:
gmake-s $ (HNISEXE)
($ HNISEXE): $ (OBJ) dummy_mpi.o hni.o
$ (F77C)-o $ (HNISEXE) $ (OBJ) dummy_mpi.o hni.o

HO2S:
gmake-s $ (HO2SEXE)
($ HO2SEXE): $ (OBJ) dummy_mpi.o ho2.o setup3.o surf3.o coord3.o chain3.o
$ (F77C)-o $ (HO2SEXE) $ (OBJ) dummy_mpi.o ho2.o setup3.o surf3.o coord3.o chain3.o

NH3S:
gmake-s $ (NH3SEXE)
($ NH3SEXE): $ (OBJ) dummy_mpi.o nh3.o
$ (F77C)-o $ (NH3SEXE) $ (OBJ) dummy_mpi.o nh3.o

OH3S:
gmake-s $ (OH3SEXE)
($ OH3SEXE): $ (OBJ) dummy_mpi.o oh3.o setup4.o surf4.o coord4.o chain4.o
$ (F77C)-o $ (OH3SEXE) $ (OBJ) dummy_mpi.o oh3.o setup4.o surf4.o coord4.o chain4.o

OHCLS:
gmake-s $ (OHCLSEXE)
($ OHCLSEXE): $ (OBJ) dummy_mpi.o ohcl.o setup3.o surf3.o coord3.o chain3.o
$ (F77C)-o $ (OHCLSEXE) $ (OBJ) dummy_mpi.o ohcl.o setup3.o surf3.o coord3.o chain3.o



Esse é o com poucos erros o a linha 1


10. erros agora

messias de souza rocha
messiask9

(usa Ubuntu)

Enviado em 02/11/2011 - 01:28h

./makefile: line 1: F77C: command not found
./makefile: line 3: VERSION: command not found
./makefile: line 5: VPATH: command not found
./makefile: line 6: ten: command not found
./makefile: line 7: That: command not found
./makefile: line 11: syntax error near unexpected token `('
./makefile: line 11: `DUMSEXE = .. / exe / polyrate $ (VERSION). Dum.serial.exe'


antigos
./Makefile: line 1: F77C: command not found
./Makefile: line 2: VERSION: command not found
./Makefile: line 3: VPATH: command not found
./Makefile: line 6: VERSION: command not found
./Makefile: line 6: DUMSEXE: command not found
./Makefile: line 8: VERSION: command not found
./Makefile: line 8: CH5SEXE: command not found
./Makefile: line 9: VERSION: command not found
./Makefile: line 9: CLHBRSEXE: command not found
./Makefile: line 10: VERSION: command not found
./Makefile: line 10: CH4OSEXE: command not found
./Makefile: line 11: VERSION: command not found
./Makefile: line 11: CMCSEXE: command not found
./Makefile: line 12: VERSION: command not found
./Makefile: line 12: CWMCSEXE: command not found
./Makefile: line 13: VERSION: command not found
./Makefile: line 13: NH3SEXE: command not found
./Makefile: line 14: VERSION: command not found
./Makefile: line 14: H2NISEXE: command not found
./Makefile: line 15: VERSION: command not found
./Makefile: line 15: H3SEXE: command not found
./Makefile: line 16: VERSION: command not found
./Makefile: line 16: HNISEXE: command not found
./Makefile: line 17: VERSION: command not found
./Makefile: line 17: OH3SEXE: command not found
./Makefile: line 18: VERSION: command not found
./Makefile: line 18: OHCLSEXE: command not found
./Makefile: line 19: VERSION: command not found
./Makefile: line 19: HO2SEXE: command not found
./Makefile: line 22: .f.o:: command not found
./Makefile: line 23: syntax error near unexpected token `newline'
./Makefile: line 23: ` $(F77C) -c $<'







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts