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

cannot load mime-type #654

Closed
cmoulliard opened this issue Jan 14, 2014 · 3 comments
Closed

cannot load mime-type #654

cmoulliard opened this issue Jan 14, 2014 · 3 comments

Comments

@cmoulliard
Copy link

I have created a Ruby project to use your mail lib but mail 2.5.4 complains that it cannot load such file -- mime/type even if mime-type 1.16 is installed on my machine

/Users/chmoulli/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/mail-2.5.4/lib/mail.rb:9:in `require': cannot load such file -- mime/types (LoadError)
    from /Users/chmoulli/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/mail-2.5.4/lib/mail.rb:9:in `<module:Mail>'
    from /Users/chmoulli/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/mail-2.5.4/lib/mail.rb:2:in `<top (required)>'
    from /Users/chmoulli/MyProjects/hyla/lib/hyla/send_mail.rb:4:in `require'

and gem mime-types

ll /Users/chmoulli/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/mime-types-1.16/

Is there a workaround ?

@cmoulliard
Copy link
Author

No comment concerning this issue ?

@cmoulliard
Copy link
Author

#Fixed after doing some clean up. mieme-types was present in 2 different versions

@kaleemullah360
Copy link

just remove require 'mime-types' in your ruby file.

as mime-types is built in ruby. you don't need to install its gem or include its explicitly.

just use it.
this works for me.

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