Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Error : "Could not find gem 'hpricot', required by 'remit', in any of the sources" #9

Open
sonianand11 opened this Issue Apr 22, 2011 · 5 comments

Comments

Projects
None yet
3 participants

when I am trying to run server it gives me the following error: "Could not find gem 'hpricot', required by 'remit', in any of the sources"

Installed gems:

1)relax (0.0.7)
2)remit (2.0.1)
3)hpricot (0.8.4 i386-mswin32)

Platform: windows 7 with Rails 3.0.5, Ruby192
I have included the statement " gem 'remit' " in my Gemfile.
What should I do?

Owner

tylerhunt commented Apr 22, 2011

What does your Gemfile.lock look like?

Gemfile.lock

GEM
remote: http://rubygems.org/
specs:
abstract (1.0.0)
actionmailer (3.0.5)
actionpack (= 3.0.5)
mail (> 2.2.15)
actionpack (3.0.5)
activemodel (= 3.0.5)
activesupport (= 3.0.5)
builder (
> 2.1.2)
erubis (> 2.6.6)
i18n (
> 0.4)
rack (> 1.2.1)
rack-mount (
> 0.6.13)
rack-test (> 0.5.7)
tzinfo (
> 0.3.23)
activemerchant (1.12.1)
activesupport (>= 2.3.8)
braintree (>= 2.0.0)
builder (>= 2.0.0)
activemodel (3.0.5)
activesupport (= 3.0.5)
builder (> 2.1.2)
i18n (
> 0.4)
activerecord (3.0.5)
activemodel (= 3.0.5)
activesupport (= 3.0.5)
arel (> 2.0.2)
tzinfo (
> 0.3.23)
activeresource (3.0.5)
activemodel (= 3.0.5)
activesupport (= 3.0.5)
activesupport (3.0.5)
arel (2.0.7)
braintree (2.9.1)
builder
builder (2.1.2)
erubis (2.6.6)
abstract (>= 1.0.0)
i18n (0.5.0)
mail (2.2.15)
activesupport (>= 2.3.6)
i18n (>= 0.4.0)
mime-types (> 1.16)
treetop (
> 1.4.8)
mime-types (1.16)
mysql2 (0.2.6-x86-mingw32)
polyglot (0.3.1)
rack (1.2.1)
rack-mount (0.6.13)
rack (>= 1.0.0)
rack-test (0.5.7)
rack (>= 1.0)
rails (3.0.5)
actionmailer (= 3.0.5)
actionpack (= 3.0.5)
activerecord (= 3.0.5)
activeresource (= 3.0.5)
activesupport (= 3.0.5)
bundler (> 1.0)
railties (= 3.0.5)
railties (3.0.5)
actionpack (= 3.0.5)
activesupport (= 3.0.5)
rake (>= 0.8.7)
thor (
> 0.14.4)
rake (0.8.7)
thor (0.14.6)
treetop (1.4.9)
polyglot (>= 0.3.1)
tzinfo (0.3.24)

PLATFORMS
x86-mingw32

DEPENDENCIES
activemerchant
mysql2
rails (= 3.0.5)

What should I change in this file?

Owner

tylerhunt commented Apr 22, 2011

It looks like Gemfile.lock wasn't updated. If you just run bundle on the command line that will update the lock file and should solve your issue.

when I run the command bundle, it stops at 'hpricot' installation. Let me give you the errors which are occurring:

C:\My Data\test_remit_fps>bundle
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using abstract (1.0.0)
Using activesupport (3.0.5)
Using builder (2.1.2)
Using i18n (0.5.0)
Using activemodel (3.0.5)
Using erubis (2.6.6)
Using rack (1.2.1)
Using rack-mount (0.6.13)
Using rack-test (0.5.7)
Using tzinfo (0.3.24)
Using actionpack (3.0.5)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.9)
Using mail (2.2.15)
Using actionmailer (3.0.5)
Using arel (2.0.7)
Using activerecord (3.0.5)
Using activeresource (3.0.5)
Using bundler (1.0.10)
Installing hpricot (0.8.4) with native extensions C:/Ruby192/lib/ruby/site_ruby/
1.9.1/rubygems/installer.rb:533:in `rescue in block in build_extensions': ERROR:
Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

    C:/Ruby192/bin/ruby.exe extconf.rb

checking for stdio.h... *** 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=C:/Ruby192/bin/ruby
C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:368:in try_do': The complier failed to genera te an executable file. (RuntimeError) You have to install development tools first. from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:452:intry_cpp'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:834:in block in have_header' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:693:inblock in checking_for'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in block (2 levels) in postp one' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:inopen'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in block in postpone' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:inopen'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:276:in postpone' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:692:inchecking_for'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:833:in have_header' from extconf.rb:2:in

'

Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/hpricot-0
.8.4 for inspection.
Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/hpricot-0.8.4/ext/fast_xs/
gem_make.out
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:511:in b lock in build_extensions' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:486:ine
ach'
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:486:in b uild_extensions' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:159:ini
nstall'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/sour
ce.rb:96:in install' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/inst aller.rb:55:inblock in run'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/spec
_set.rb:12:in block in each' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/spec _set.rb:12:ineach'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/spec
_set.rb:12:in each' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/inst aller.rb:44:inrun'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/inst
aller.rb:8:in install' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/cli. rb:226:ininstall'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vend
or/thor/task.rb:22:in run' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vend or/thor/invocation.rb:118:ininvoke_task'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vend
or/thor.rb:246:in dispatch' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vend or/thor/base.rb:389:instart'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/bin/bundle:13:in
<top (required)>' from C:/Ruby192/bin/bundle:19:inload'
from C:/Ruby192/bin/bundle:19:in `

'

Yet I have successfully installed 'hpricot' gem by command : gem install hpricot --platform=mswin32

Owner

tylerhunt commented Apr 22, 2011

I really don't know much about Windows, but try adding this line to your Gemfile:

gem 'hpricot', :platforms => [:mswin, :mingw]

@ghost ghost assigned pboling Dec 14, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment