PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, March 6, 2022

[FIXED] How do I install ruby gems on OS X without rails?

 March 06, 2022     capybara, mamp, php, ruby, ruby-on-rails     No comments   

Issue

I'm trying to install the capybara gem on OS X. The issue is I am running MAMP, and do not wish to run rails due to potential conflicts. How can i install a gem? Where would a Gemfile even be without a application folder?


Solution

I don't know what kind of conflicts you expect from running Rails app and MAMP.

But if you have ruby install on your mac then you simply can install gem with:

gem install capybara

Although I can't understand how would you use it out of rails app environment.

RVM will be definitely better.

After you will install RVM run this:

rvm use 2.2.0@my_gemset --create
gem install capybara


Answered By - Misha
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing