Como construir um arquivo de origem usando o make? [fechadas]

1

Eu estou tentando construir uma fonte usando o make? Esta é a primeira vez que estou tentando fazer isso, pois não há outra maneira de instalar o programa. O conteúdo do diretório que contém a fonte é mostrado aqui .

Eu extraio a fonte de um arquivo casa_1.1b_.zip.

Eu usei um terminal.

Alterou o diretório para esta pasta usando cd GA/casa_1.1b e executou ./configure . E como esperado, deu erro bash: ./configure: No such file or directory . Eu tentei descompactar o diretório em usr/local/src e a execução ./configure , mas ele ainda me deu o mesmo erro.

Precisamos de um arquivo de configuração na fonte antes de executar esse comando?

O conteúdo de MakeFile que você vê na foto.

Como posso fazer esse código-fonte?

Estou usando o Ubuntu 14.04. Obrigado.

EDITAR:

root@pi314:/home/potato_head/GA/casa_1.1b# make
g++ -MM common/utility/PascalTriangle.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,common/utility/PascalTriangle.o common/utility/PascalTriangle.d:   ,g' > common/utility/PascalTriangle.d
g++ -MM common/utility/Combinadic.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,common/utility/Combinadic.o common/utility/Combinadic.d:   ,g' > common/utility/Combinadic.d
g++ -MM common/utility/CombinadicIterator.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,common/utility/CombinadicIterator.o common/utility/CombinadicIterator.d:   ,g' > common/utility/CombinadicIterator.d
g++ -MM minisat/solver/Solver.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,minisat/solver/Solver.o minisat/solver/Solver.d:   ,g' > minisat/solver/Solver.d
g++ -MM casa/sat/SAT.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,casa/sat/SAT.o casa/sat/SAT.d:  ,g' > casa/sat/SAT.d
g++ -MM casa/io/Usage.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,casa/io/Usage.o casa/io/Usage.d:   ,g' > casa/io/Usage.d
g++ -MM casa/io/SpecificationFile.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,casa/io/SpecificationFile.o casa/io/SpecificationFile.d:   ,g' > casa/io/SpecificationFile.d
g++ -MM casa/io/ConstraintFile.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,casa/io/ConstraintFile.o casa/io/ConstraintFile.d:    ,g' > casa/io/ConstraintFile.d
g++ -MM casa/io/OutputFile.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,casa/io/OutputFile.o casa/io/OutputFile.d:    ,g' > casa/io/OutputFile.d
g++ -MM casa/covering/state/CoveringArray.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,casa/covering/state/CoveringArray.o casa/covering/state/CoveringArray.d:   ,g' > casa/covering/state/CoveringArray.d
g++ -MM casa/covering/state/CoveringArrayEntry.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,casa/covering/state/CoveringArrayEntry.o casa/covering/state/CoveringArrayEntry.d:    ,g' > casa/covering/state/CoveringArrayEntry.d
g++ -MM casa/covering/state/CoveringArrayRow.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,casa/covering/state/CoveringArrayRow.o casa/covering/state/CoveringArrayRow.d:  ,g' > casa/covering/state/CoveringArrayRow.d
g++ -MM casa/covering/state/CoveringArraySubRow.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,casa/covering/state/CoveringArraySubRow.o casa/covering/state/CoveringArraySubRow.d: ,g' > casa/covering/state/CoveringArraySubRow.d
g++ -MM casa/covering/space/CoveringArraySpace.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,casa/covering/space/CoveringArraySpace.o casa/covering/space/CoveringArraySpace.d:    ,g' > casa/covering/space/CoveringArraySpace.d
g++ -MM casa/covering/space/SingleChangeSpace.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,casa/covering/space/SingleChangeSpace.o casa/covering/space/SingleChangeSpace.d:   ,g' > casa/covering/space/SingleChangeSpace.d
g++ -MM casa/covering/space/GraftSpace.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,casa/covering/space/GraftSpace.o casa/covering/space/GraftSpace.d:    ,g' > casa/covering/space/GraftSpace.d
g++ -MM casa/covering/bookkeeping/Options.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,casa/covering/bookkeeping/Options.o casa/covering/bookkeeping/Options.d:   ,g' > casa/covering/bookkeeping/Options.d
g++ -MM casa/annealing/Anneal.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,casa/annealing/Anneal.o casa/annealing/Anneal.d:   ,g' > casa/annealing/Anneal.d
g++ -MM casa/annealing/AnnealingSuccess.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,casa/annealing/AnnealingSuccess.o casa/annealing/AnnealingSuccess.d: ,g' > casa/annealing/AnnealingSuccess.d
g++ -MM casa/annealing/Bounds.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,casa/annealing/Bounds.o casa/annealing/Bounds.d:   ,g' > casa/annealing/Bounds.d
g++ -MM casa/annealing/AnnealingPartitioner.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,casa/annealing/AnnealingPartitioner.o casa/annealing/AnnealingPartitioner.d: ,g' > casa/annealing/AnnealingPartitioner.d
g++ -MM casa/algorithms/BinarySearch.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,casa/algorithms/BinarySearch.o casa/algorithms/BinarySearch.d:  ,g' > casa/algorithms/BinarySearch.d
g++ -MM casa/Main.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS | sed 's,.*\.o:,casa/Main.o casa/Main.d:   ,g' > casa/Main.d
sed -e 's/://g' -e 's/[^ ][^ ]*\.d//g' -e 's/[^ ][^ ]*\.o//g' -e 's/[   \][    \]*/ /g' common/utility/PascalTriangle.d common/utility/Combinadic.d common/utility/CombinadicIterator.d minisat/solver/Solver.d casa/sat/SAT.d casa/io/Usage.d casa/io/SpecificationFile.d casa/io/ConstraintFile.d casa/io/OutputFile.d casa/covering/state/CoveringArray.d casa/covering/state/CoveringArrayEntry.d casa/covering/state/CoveringArrayRow.d casa/covering/state/CoveringArraySubRow.d casa/covering/space/CoveringArraySpace.d casa/covering/space/SingleChangeSpace.d casa/covering/space/GraftSpace.d casa/covering/bookkeeping/Options.d casa/annealing/Anneal.d casa/annealing/AnnealingSuccess.d casa/annealing/Bounds.d casa/annealing/AnnealingPartitioner.d casa/algorithms/BinarySearch.d casa/Main.d | tr ' ' "\n" | sort | uniq | tr "\n" ' ' | sed 's/^/ALL_INPUTS =/' > Dependencies
g++ -c -o common/utility/PascalTriangle.o common/utility/PascalTriangle.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o common/utility/Combinadic.o common/utility/Combinadic.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o common/utility/CombinadicIterator.o common/utility/CombinadicIterator.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o minisat/solver/Solver.o minisat/solver/Solver.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o casa/sat/SAT.o casa/sat/SAT.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o casa/io/Usage.o casa/io/Usage.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o casa/io/SpecificationFile.o casa/io/SpecificationFile.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o casa/io/ConstraintFile.o casa/io/ConstraintFile.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o casa/io/OutputFile.o casa/io/OutputFile.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o casa/covering/state/CoveringArray.o casa/covering/state/CoveringArray.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o casa/covering/state/CoveringArrayEntry.o casa/covering/state/CoveringArrayEntry.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o casa/covering/state/CoveringArrayRow.o casa/covering/state/CoveringArrayRow.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o casa/covering/state/CoveringArraySubRow.o casa/covering/state/CoveringArraySubRow.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o casa/covering/space/CoveringArraySpace.o casa/covering/space/CoveringArraySpace.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o casa/covering/space/SingleChangeSpace.o casa/covering/space/SingleChangeSpace.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o casa/covering/space/GraftSpace.o casa/covering/space/GraftSpace.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o casa/covering/bookkeeping/Options.o casa/covering/bookkeeping/Options.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o casa/annealing/Anneal.o casa/annealing/Anneal.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o casa/annealing/AnnealingSuccess.o casa/annealing/AnnealingSuccess.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o casa/annealing/Bounds.o casa/annealing/Bounds.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o casa/annealing/AnnealingPartitioner.o casa/annealing/AnnealingPartitioner.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o casa/algorithms/BinarySearch.o casa/algorithms/BinarySearch.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -c -o casa/Main.o casa/Main.C -Wredundant-decls -Wall -Werror -g -Icasa -Icommon -Icommon/utility -Iminisat/solver -Iminisat/include -DSEARCH_PROGRESS
g++ -o casa-1.1b common/utility/PascalTriangle.o common/utility/Combinadic.o common/utility/CombinadicIterator.o minisat/solver/Solver.o casa/sat/SAT.o casa/io/Usage.o casa/io/SpecificationFile.o casa/io/ConstraintFile.o casa/io/OutputFile.o casa/covering/state/CoveringArray.o casa/covering/state/CoveringArrayEntry.o casa/covering/state/CoveringArrayRow.o casa/covering/state/CoveringArraySubRow.o casa/covering/space/CoveringArraySpace.o casa/covering/space/SingleChangeSpace.o casa/covering/space/GraftSpace.o casa/covering/bookkeeping/Options.o casa/annealing/Anneal.o casa/annealing/AnnealingSuccess.o casa/annealing/Bounds.o casa/annealing/AnnealingPartitioner.o casa/algorithms/BinarySearch.o casa/Main.o 
etags casa/algorithms/BinarySearch.C casa/algorithms/BinarySearch.H casa/annealing/Anneal.C casa/annealing/Anneal.H casa/annealing/AnnealingFilter.H casa/annealing/AnnealingPartitioner.C casa/annealing/AnnealingPartitioner.H casa/annealing/AnnealingSuccess.C casa/annealing/AnnealingSuccess.H casa/annealing/Bounds.C casa/annealing/Bounds.H casa/covering/bookkeeping/Coverage.H casa/covering/bookkeeping/Options.C casa/covering/bookkeeping/Options.H casa/covering/cost/CoverageCost.H casa/covering/filter/CoveringArrayAnnealingFilter.H casa/covering/goal/CoverageGoal.H casa/covering/heuristic/CoveringArrayHeuristic.H casa/covering/report/IterationReport.H casa/covering/space/CoveringArraySpace.C casa/covering/space/CoveringArraySpace.H casa/covering/space/GraftSpace.C casa/covering/space/GraftSpace.H casa/covering/space/SingleChangeSpace.C casa/covering/space/SingleChangeSpace.H casa/covering/state/CoveringArray.C casa/covering/state/CoveringArrayEntry.C casa/covering/state/CoveringArray.H casa/covering/state/CoveringArrayRow.C casa/covering/state/CoveringArraySubRow.C casa/events/EventSource.H casa/events/Listener.H casa/io/ConstraintFile.C casa/io/ConstraintFile.H casa/io/OutputFile.C casa/io/OutputFile.H casa/io/SpecificationFile.C casa/io/SpecificationFile.H casa/io/Usage.C casa/io/Usage.H casa/Main.C casa/sat/SAT.C casa/sat/SAT.H casa/search/Filter.H casa/search/Goal.H casa/search/GreedyFilter.H casa/search/Guide.H casa/search/Heuristic.H casa/search/Node.H casa/search/SearchConfiguration.H casa/search/SearchFinish.H casa/search/Search.H casa/search/SearchIteration.H casa/search/StateGuide.H casa/search/StateSpace.H common/posix/getopt.h common/utility/Array.H common/utility/Combinadic.C common/utility/Combinadic.H common/utility/CombinadicIterator.C common/utility/CombinadicIterator.H common/utility/igreater.H common/utility/Lazy.H common/utility/PascalTriangle.C common/utility/PascalTriangle.H common/utility/pless.H common/utility/relation.H common/utility/SubstitutionArray.H minisat/include/Alg.h minisat/include/Heap.h minisat/include/Sort.h minisat/include/Vec.h minisat/solver/Solver.C minisat/solver/Solver.H minisat/solver/SolverTypes.H
root@pi314:/home/potato_head/GA/casa_1.1b# 
    
por Potato_head 02.10.2014 / 20:09

1 resposta

2

Não encontrei nenhuma informação sobre esse software por meio de uma pesquisa na Web rápida, por isso não sei se o método de instalação recomendado envolve uma etapa de configuração antes de executar make . Em caso afirmativo, ./configure não é o caminho, pois não existe esse arquivo. Nem todos os softwares criados com make possuem um script configure .

Normalmente, eu recomendaria consultar o arquivo README (ou nome semelhante), mas parece que pode não haver um.

Existem três formas comuns de software enviado com um makefile:

  • Executando ./configure (e depois disso, executando outros comandos, geralmente make ). Mas isso não parece se aplicar aqui. Quando existe tal script, geralmente gera (ou ocasionalmente, personaliza) Makefile .
  • Editando manualmente Makefile . Esse pode ser o caminho pretendido para este software. Makefile já existe.
  • Apenas executando make . Esse pode ser o caminho pretendido para este software. Makefile parece estar escrito de tal forma que irá construir o software mesmo sem ser alterado de forma alguma primeiro. Para verificar isso, como sou não especialista em sintaxe e semântica do makefile, salvei seu conteúdo como Makefile em um diretório vazio e executei make . Isso tentou executar comandos de compilação (o que obviamente falhou porque eu não tinha o resto dos arquivos), sugerindo que o seu arquivo de código-fonte pode ser fornecido com um makefile pronto para uso.

Resumindo, se você ainda não tentou usar make , tente isso.

Parece que quando você executou make , não houve erros e criou um executável chamado g++ -o casa-1.1b :

g++ -o casa-1.1b common/utility/PascalTriangle.o common/utility/Combinadic.o common/utility/CombinadicIterator.o minisat/solver/Solver.o casa/sat/SAT.o casa/io/Usage.o casa/io/SpecificationFile.o casa/io/ConstraintFile.o casa/io/OutputFile.o casa/covering/state/CoveringArray.o casa/covering/state/CoveringArrayEntry.o casa/covering/state/CoveringArrayRow.o casa/covering/state/CoveringArraySubRow.o casa/covering/space/CoveringArraySpace.o casa/covering/space/SingleChangeSpace.o casa/covering/space/GraftSpace.o casa/covering/bookkeeping/Options.o casa/annealing/Anneal.o casa/annealing/AnnealingSuccess.o casa/annealing/Bounds.o casa/annealing/AnnealingPartitioner.o casa/algorithms/BinarySearch.o casa/Main.o

Esse comando vincula todos os arquivos .o (criados pela compilação dos arquivos .c individuais no arquivo de código fonte) juntos no programa casa-1.1b .

Parece que esse arquivo está no mesmo diretório em que você executou make , pois o comando g++ que o produz parece especificar caminhos relativos a essa pasta. Executar ./casa-1.1b enquanto nesse diretório pode funcionar para executar o programa.

Nesse caso, você pode executá-lo a partir daí ou copiar manualmente os arquivos necessários para instalá-lo. (Esse executável pode ser o único arquivo que você tem que copiar, ou pode haver outros.)

    
por Eliah Kagan 02.10.2014 / 20:54