Am I supposed to use gem from MacPorts to install ruby packages in /opt/local/lib/ruby2.2/gems/2.2.0?

Arno Hautala arno at alum.wpi.edu
Mon Mar 23 16:19:45 PDT 2015


My ~/.gemrc includes:

> install: --no-ri --no-rdoc --user-install
> update: --no-ri --no-rdoc --user-install

This directs gem to install inside my home folder rather than trying
to install to a system or MacPorts location. Another bonus is that I
don't have to use sudo. I still try install as much as I can using
'port' though.


On Fri, Mar 20, 2015 at 10:31 PM, Peng Yu <pengyu.ut at gmail.com> wrote:
> Hi,
>
> If I use gem to install ruby packages, they will be installed in
> /opt/local/lib/ruby2.2/gems/2.2.0 by default. But I guess ruby
> packages installed by MacPorts will also use this directory. So this
> may cause some problem, is it so?
>
> If so, what is the recommended way to install ruby packages via gem? Thanks.
>
> --
> Regards,
> Peng
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-users



-- 
arno  s  hautala    /-|   arno at alum.wpi.edu

pgp b2c9d448


More information about the macports-users mailing list