Instalando a biblioteca C de terceiros. Vários erros que eu tive antes cujas correções não são a solução desta vez

0

Eu estou tentando usar uma biblioteca C de terceiros. Quando estou no diretório do arquivo descompactado, corro ./configure e obtenho:

configure: creating ./config.status
config.status: creating tests/Makefile
config.status: creating tests/atlocal
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating igraph.pc
config.status: creating igraph_Info.plist
config.status: creating doc/Makefile
config.status: creating include/igraph_version.h
config.status: creating include/igraph_threading.h
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing tests/atconfig commands
config.status: executing depfiles commands
config.status: executing libtool commands

igraph successfully configured.
  GraphML format support -- no
  GMP library support    -- no
  GLPK library support   -- yes
  Thread-local storage   -- yes
  Use internal ARPACK    -- yes
  Use internal LAPACK    -- yes
  Use internal BLAS      -- yes
  Use internal F2C       -- yes
  Use internal GLPK      -- yes
  Debug build            -- no
  Profiling              -- no

Eu então executo "sudo make" e obtenho:

collect2: error: ld returned 1 exit status
Makefile:2357: recipe for target 'libigraph.la' failed
make[3]: *** [libigraph.la] Error 1
make[3]: Leaving directory '/home/jiggly/Documents/igraph-0.7.1/src'
Makefile:1377: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/jiggly/Documents/igraph-0.7.1/src'
Makefile:480: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/jiggly/Documents/igraph-0.7.1'
Makefile:382: recipe for target 'all' failed
make: *** [all] Error 2

Eu também tentei sudo checkinstall e recebo:

make[2]: *** [libigraph.la] Error 1
make[2]: Leaving directory '/home/jiggly/Documents/igraph-0.7.1/src'
Makefile:7813: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/home/jiggly/Documents/igraph-0.7.1/src'
Makefile:480: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
****  Installation failed. Aborting package creation.
Restoring overwritten files from backup...OK
Cleaning up...OK
Bye.

Eu recebo os mesmos erros quando especifico um prefixo para ./config

    
por jiggly 23.06.2016 / 22:59

1 resposta

0
% bl0ck_qu0te%
  • Linha 2357: Falta "libxml2-dev":

    sudo apt-get install libxml2-dev libgmp-dev zlib1g-dev

Nota: A biblioteca igraph não é uma biblioteca 3party. É apenas uma das ~ 100.000 partes do código-fonte aberto / bibliotecas / aplicativos. (A licença é "LICENÇA PÚBLICA GERAL GNU".)

por Knud Larsen 24.06.2016 / 01:08