Skip to content
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

Error when importing gem #34

Open
clxe opened this issue Nov 8, 2014 · 2 comments
Open

Error when importing gem #34

clxe opened this issue Nov 8, 2014 · 2 comments

Comments

@clxe
Copy link

clxe commented Nov 8, 2014

I'm having some trouble with using the gem.
I run gem install ashton and it installs ashton-0.1.4 fine.
However, when I try to require "ashton" in my Ruby code, I get this error:

C:/ruby193/lib/ruby/gems/1.9.1/gems/ashton-0.1.4/lib/ashton.rb:8:in `require_rel
ative': cannot load such file -- C:/ruby193/lib/ruby/gems/1.9.1/gems/ashton-0.1.
4/lib/ashton/ashton.so (LoadError)
        from C:/ruby193/lib/ruby/gems/1.9.1/gems/ashton-0.1.4/lib/ashton.rb:8:in
 `rescue in <top (required)>'
        from C:/ruby193/lib/ruby/gems/1.9.1/gems/ashton-0.1.4/lib/ashton.rb:4:in
 `<top (required)>'
        from C:/ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:i
n `require'
        from C:/ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:i
n `rescue in require'
        from C:/ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:i
n `require'
        from C:/Users/Jacob/Documents/GitHub/pew-pew/main.rb:6:in `<main>'

When I opened up the gems directory, I found the ashton.so file in the /lib/1.9 directory. When I copied it into /lib, I got a new error:

C:/ruby193/lib/ruby/gems/1.9.1/gems/ashton-0.1.4/lib/ashton.rb:8:in `require_rel
ative': 193: %1 is not a valid Win32 application.   - C:/ruby193/lib/ruby/gems/1
.9.1/gems/ashton-0.1.4/lib/ashton/ashton.so (LoadError)
        from C:/ruby193/lib/ruby/gems/1.9.1/gems/ashton-0.1.4/lib/ashton.rb:8:in
 `rescue in <top (required)>'
        from C:/ruby193/lib/ruby/gems/1.9.1/gems/ashton-0.1.4/lib/ashton.rb:4:in
 `<top (required)>'
        from C:/ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:i
n `require'
        from C:/ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:i
n `rescue in require'
        from C:/ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:i
n `require'
        from C:/Users/Jacob/Documents/GitHub/pew-pew/main.rb:6:in `<main>'

I'm running Ruby 1.9.3 on Windows 8.1.

@bil-bas
Copy link
Collaborator

bil-bas commented Nov 10, 2014

I know I've had a similar issue reported before, but I can't remember what the problem was. Not sure what to suggest.

@bil-bas
Copy link
Collaborator

bil-bas commented Nov 10, 2014

http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=8105

Someone on the Gosu forums had the same problem and fixed it by downgrading to ruby 1.9.2, but not sure why that would help at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants