mfoemmel / fig

Fig is a utility for configuring environments and managing dependencies across a team of developers.
Other
81 stars 13 forks source link

Fig 0.1.13 doesn't build on Linux - missing archive.h #32

Closed tastapod closed 14 years ago

tastapod commented 14 years ago

Specifically Ubuntu 9.10. Here's the error output, tried on a couple of machines.

$ gem install fig -v 0.1.13
Building native extensions.  This could take a while...
ERROR:  Error installing fig:
    ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
checking for config.h... yes
checking for archive.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.           
tastapod commented 14 years ago

On Ubuntu it turns out you need libarchive-dev

mfoemmel commented 14 years ago

Yeah we switched to using the libarchive library for zip/tar/etc, in order to make things work on windows. Unfortunately that adds an extra dependency on the linux side.