#16 ✓resolved
jbwiv

Gem refers to wrong bz2 library on Ubuntu Linux

Reported by jbwiv | November 30th, 2009 @ 02:40 PM

On Ubuntu Karmic Koala (9.10), when trying to install the gem, you get:
############################################### Building native extensions. This could take a while...
ERROR: Error installing amp:

ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb checking for BZ2_bzWriteOpen() in -lbz2... 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.

Provided configuration options:

--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.8
--enable-unknown
--disable-unknown
--with-bz2-dir
--without-bz2-dir
--with-bz2-include
--without-bz2-include=${bz2-dir}/include
--with-bz2-lib
--without-bz2-lib=${bz2-dir}/lib
--with-bz2lib
--without-bz2lib

extconf.rb:22: libz2 not found (RuntimeError)
############################################### The package actually required is libbz2-dev. Installing this via apt and re-running the gem install will fix the issue. I think the gem dependencies need to be updated to fix this.

Thanks.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Rethink Version Control.- http://amp.carboni.ca/

Amp aims to put control of version-control software in your hands as a developer. The entire system is written in Ruby (with C extensions to improve performance), and aims to implement all major VCS's in Ruby. Currently, Mercurial is implemented.

Other features:
Commands are first-class members of the system - drop in an "Ampfile" in your repository, and you can add commands to amp in the same manner you add commands to rake (only with far, far more power!)
Documentation is one of our biggest priorities. We require all methods to be documented - even comically simple ones.
Heavy testing.
Multiple "workflows" - use git's commands to power a mercurial repository.
Add hooks/callbacks in minutes.

Shared Ticket Bins

People watching this ticket

Tags

Pages