0

I am attempting to use a third-party C library. Once I'm in the directory for the unpacked file I run ./configure and get:

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

I then run "sudo make" and get:

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

I have also tried sudo checkinstall and get:

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.

I get the same errors when I specify a prefix for ./config

storm
  • 5,013
jiggly
  • 3

1 Answers1

0

Makefile:2357: recipe for target 'libigraph.la' failed

  • Line 2357 : That's a missing "libxml2-dev" :

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


Note : The igraph library is not a 3party library. Is just one of the ~100,000 pieces of open source code / libraries / applications. (The license is "GNU GENERAL PUBLIC LICENSE".)



Knud Larsen
  • 3,134