sj26 / mailcatcher

Catches mail and serves it through a dream.
http://mailcatcher.me
MIT License
6.3k stars 575 forks source link

Mailcatcher not running on ruby 2.5.3 #515

Closed ChunAllen closed 2 years ago

ChunAllen commented 2 years ago

I have existing application that runs on ruby 2.5.3

When I install gem install mailcatcher I'm getting

Fetching sqlite3-1.5.0-x86_64-darwin.gem
ERROR:  Error installing mailcatcher:
    The last version of sqlite3 (~> 1.3) to support your Ruby & RubyGems was 1.5.0. Try installing it with `gem install sqlite3 -v 1.5.0` and then running the current command again
    sqlite3 requires Ruby version >= 2.6, < 3.2.dev. The current ruby version is 2.5.3.105.

I tried changing my ruby to 2.6.0 and it works. But I needed my app to run in 2.5.3

sj26 commented 2 years ago

Did you try the instructions in the message?

ChunAllen commented 2 years ago

@sj26 I tried installing sqlite -v 1.5.0 but I'm also getting an error.

$ gem install sqlite3 -v 1.5.0
ERROR:  Error installing sqlite3:
    The last version of sqlite3 (= 1.5.0) to support your Ruby & RubyGems was 1.5.0. Try installing it with `gem install sqlite3 -v 1.5.0`
    sqlite3 requires Ruby version >= 2.6, < 3.2.dev. The current ruby version is 2.5.3.105
sj26 commented 2 years ago

Hm. Sounds difficult, sorry!

Can you run mailcatcher with a newer version of Ruby?

ChunAllen commented 2 years ago

Thanks, alternative is when I run mailcatcher in local I switch to 2.6.0