New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading fails on Windows with Ruby 2.2 #39

Closed
ccoenen opened this Issue Apr 7, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@ccoenen

ccoenen commented Apr 7, 2015

hitimes-1.2.2-x86-mingw32 fails to load on my machine with ruby 2.2. I have to explicitly install hitimes this way:

# this works:
gem install hitimes -v 1.2.2 --platform ruby

If i don't (that is, if i just let bundler do the installing for me) the resulting error looks like this:

C:/Tools/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- hitimes/hitimes (LoadError)
        from C:/Tools/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/Tools/Ruby22/lib/ruby/gems/2.2.0/gems/hitimes-1.2.2-x86-mingw32/lib/hitimes.rb:37:in `rescue in <top (required)>'
        from C:/Tools/Ruby22/lib/ruby/gems/2.2.0/gems/hitimes-1.2.2-x86-mingw32/lib/hitimes.rb:32:in `<top (required)>'
        from C:/Tools/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `require'
        from C:/Tools/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
        from C:/Tools/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:39:in `require'
        from C:/Tools/Ruby22/lib/ruby/gems/2.2.0/gems/timers-4.0.1/lib/timers/group.rb:4:in `<top (required)>'

Hitimes is loadded through celluloid's dependency to the timers gem, I'm not specifying the gem myself.

Is there any way i can help debug it?

(credit for the solution goes to this StackOverflow Answer.)

@copiousfreetime

This comment has been minimized.

Show comment
Hide comment
@copiousfreetime

copiousfreetime Apr 7, 2015

Owner

No need to debug, this is because I haven't released a fat-binary gem with support for ruby 2.2 yet on windows. It looks like Ruby 2.2.1 is the first release of Ruby 2.2 for windows and was just released on march 6. hitimes 1.2.2 was released in January.

I've opened issue #40 to track releaseing a new fat binary version of hitimes for ruby 2.2. support on windows.

Owner

copiousfreetime commented Apr 7, 2015

No need to debug, this is because I haven't released a fat-binary gem with support for ruby 2.2 yet on windows. It looks like Ruby 2.2.1 is the first release of Ruby 2.2 for windows and was just released on march 6. hitimes 1.2.2 was released in January.

I've opened issue #40 to track releaseing a new fat binary version of hitimes for ruby 2.2. support on windows.

@copiousfreetime

This comment has been minimized.

Show comment
Hide comment
@copiousfreetime

copiousfreetime Oct 11, 2015

Owner

For folks that find this issue through the Internet, in general please install hitimes with gem install hitimes When you install using the --platform ruby flag, you will install the source code version of the gem, which is not what you want when installing hitimes on windows.

Owner

copiousfreetime commented Oct 11, 2015

For folks that find this issue through the Internet, in general please install hitimes with gem install hitimes When you install using the --platform ruby flag, you will install the source code version of the gem, which is not what you want when installing hitimes on windows.

@StrangeWill StrangeWill referenced this issue Apr 3, 2016

Merged

Gem upgrade #149

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