[katello-devel] Gem cleanup

corey welton cwelton at redhat.com
Tue Jul 19 00:11:16 UTC 2011


On Mon, 18 Jul 2011 09:57:40 +0200
Lukas Zapletal <lzap at redhat.com> wrote:

> On 07/16/2011 08:19 PM, Mike McCune wrote:
> > $ sudo gem uninstall mail -v 2.2.19
> >
> > You have requested to uninstall the gem:
> >      mail-2.2.19
> > actionmailer-3.0.5 depends on [mail (~> 2.2.15)]
> > If you remove this gems, one or more dependencies will not be met.
> > Continue with Uninstall? [Yn]  y
> > Successfully uninstalled mail-2.2.19
> >
> > $ script/rails s
> > => Booting WEBrick
> > => Rails 3.0.5 application starting in development on
> > http://0.0.0.0:3000 => Call with -d to detach
> > => Ctrl-C to shutdown server
> 
> Thanks Mike!
> 
> It you want to start with clean table you can delete all the gems:
> 
> # gem list | cut -d" " -f1 | xargs gem uninstall -aIx
> # sudo yum remove rubygem*
> # sudo yum install rubygem-bundler
> # bundle install ...
> 

After trying to start with a clean table (and entering the commands
exactly as entered above) I get the following issue trying to bundle
install.  Thoughts?

[root at dhcp231-182 src]# bundle install
Fetching source index for
http://repos.fedorapeople.org/repos/katello/gems/ Using rake (0.9.2) 
Using ZenTest (4.5.0) 
Using abstract (1.0.0) 
Using activesupport (3.0.5) 
Using builder (2.1.2) 
Using i18n (0.6.0) 
Using activemodel (3.0.5) 
Using erubis (2.6.6) 
Using rack (1.1.0) 
Using rack-mount (0.6.13) 
Using rack-test (0.6.0) 
Using tzinfo (0.3.23) 
Using actionpack (3.0.5) 
Using mime-types (1.16) 
Using polyglot (0.3.1) 
Using treetop (1.4.9) 
Using mail (2.3.0) 
Using actionmailer (3.0.5) 
Using arel (2.0.6) 
Using activerecord (3.0.5) 
Using activeresource (3.0.5) 
Using autotest-rails (4.1.0) 
Using bundler (1.0.2) 
Using highline (1.6.1) 
Using net-ssh (2.0.23) 
Using net-scp (1.0.4) 
Using net-sftp (2.0.5) 
Using net-ssh-gateway (1.0.1) 
Using capistrano (2.5.19) 
Using ci_reporter (1.6.4) 
Using closure-compiler (0.3.3) 
Using columnize (0.3.2) 
Using haml (3.0.25) 
Using compass (0.10.6) 
Using compass-960-plugin (0.10.0) 
Using daemons (1.1.4) 
Using delayed_job (2.1.4) 
Using diff-lcs (1.1.2) 
Using fast_gettext (0.5.10) 
Using locale (2.0.5) 
Using gettext (2.1.0) 
Using gettext_i18n_rails (0.2.13) 
Using thor (0.14.6) 
Using railties (3.0.5) 
Using haml-rails (0.3.4) 
Using i18n_data (0.2.7) 
Using yui-compressor (0.9.1) 
Using jammit (0.5.4) 
Using json_pure (1.4.3) 
Using rspec-core (2.5.1) 
Using rspec-expectations (2.5.0) 
Using rspec-mocks (2.5.0) 
Using rspec (2.5.0) 
Using selenium-client (1.2.18) 
Using selenium-rc (2.3.2) 
Using jasmine (1.0.1.1) 
Using json (1.4.6) 
Using linecache (0.43) 
Using multimap (1.1.2) 
Using net-ldap (0.1.1) 
Using oauth (0.4.4) 
Installing pg (0.10.1) with native extensions .......
/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:481:in
`build_extensions': ERROR: Failed to build gem native extension.
(Gem::Installer::ExtensionBuildError)

/usr/bin/ruby extconf.rb 
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
 --with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** 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/ruby
	--with-pg
	--without-pg
	--with-pg-dir
	--without-pg-dir
	--with-pg-include
	--without-pg-include=${pg-dir}/include
	--with-pg-lib
	--without-pg-lib=${pg-dir}/lib
	--with-pg-config
	--without-pg-config
	--with-pg_config
	--without-pg_config


Gem files will remain installed
in /root/katello/src/pg/ruby/1.8/gems/pg-0.10.1 for inspection. Results
logged to /root/katello/src/pg/ruby/1.8/gems/pg-0.10.1/ext/gem_make.out
from /usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:446:in `each'
from /usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:446:in
`build_extensions'
from /usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:198:in `install'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.2/lib/bundler/source.rb:100:in
`install'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.2/lib/bundler/installer.rb:55:in
`run'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.2/lib/bundler/spec_set.rb:12:in
`each'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.2/lib/bundler/spec_set.rb:12:in
`each'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.2/lib/bundler/installer.rb:44:in
`run'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.2/lib/bundler/installer.rb:8:in
`install'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.2/lib/bundler/cli.rb:217:in
`install'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.2/lib/bundler/vendor/thor/task.rb:22:in
`send'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.2/lib/bundler/vendor/thor/task.rb:22:in
`run'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.2/lib/bundler/vendor/thor/invocation.rb:118:in
`invoke_task'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.2/lib/bundler/vendor/thor.rb:246:in
`dispatch'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.2/lib/bundler/vendor/thor/base.rb:389:in
`start' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.2/bin/bundle:13
from /usr/bin/bundle:19:in `load' from /usr/bin/bundle:19






More information about the katello-devel mailing list