# “bundle install” error with installation of ruby gem

**URL:** <https://www.ruby-forum.com/t/bundle-install-error-with-installation-of-ruby-gem/267539>\
**Category:** Rails\
**Created:** [March 9, 2025, 7:05pm UTC](https://www.ruby-forum.com/t/bundle-install-error-with-installation-of-ruby-gem/267539 "2025-03-09T19:05:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andronicus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/df705f/32.png) [@andronicus](https://www.ruby-forum.com/u/andronicus)\
**Post date:** [March 9, 2025, 7:05pm UTC](https://www.ruby-forum.com/t/bundle-install-error-with-installation-of-ruby-gem/267539/1 "2025-03-09T19:05:24Z")

</div>

Hi

I am trying to run “bundle install” to install rubygem ‘devise’ from my GemFile. I get the following error:

/home/proteus/.rbenv/versions/3.2.7/lib/ruby/site\_ruby/3.2.0/rubygems/requirement.rb:107:in `parse’: Illformed requirement [“-\> 4.9\>=4.9.4”] (Gem::Requirement::BadRequirementError)

The code I am using to install the rubygem inside my GemFile is:

gem ‘devise’, ‘~\> 4.9’, ‘\>= 4.9.4’

This line is taken directly from the rubygem website ([devise | RubyGems.org | your community gem host](https://rubygems.org/gems/devise)).

What is causing the error?

---

<div class="post-metadata">

**Author:** ![jvrc](https://www.ruby-forum.com/user_avatar/www.ruby-forum.com/jvrc/32/3366_2.png) [@jvrc](https://www.ruby-forum.com/u/jvrc)\
**Post date:** [May 20, 2025, 2:36pm UTC](https://www.ruby-forum.com/t/bundle-install-error-with-installation-of-ruby-gem/267539/2 "2025-05-20T14:36:58Z")

</div>

The command might be wrong, it seems like it’s indicating that you can use one or the other, but you can try with:

```auto
gem ‘devise’, ‘~> 4.9’

```

or

```auto
gem ‘devise’, ‘>= 4.9.4’

```

Also, you can alternatively use the command:

```auto
bundle add devise

```

That will get it added to the Gemfile automatically.
