Ruby on Rails Monday, April 29, 2013

On 29 April 2013 05:47, Love U Ruby <lists@ruby-forum.com> wrote:
> Carlos Mathiasen wrote in post #1107144:
>> Nokogiri is a gem, them you only need
>>
>> gem install nokogiri
>>
>> but first you need install this libraries for ubuntu[0]:
>>
>> sudo apt-get install libxml2 libxml2-dev libxslt libxslt-dev
>
> As I installed Ruby using RVM, I thought I need to install everything
> using RVM. So if I do `sudo` to install nokogiri then will it work?

If using rvm you must /not/ use sudo when installing gems. However
you should not need to install it manually, just put it in Gemfile for
the application and bundle install will automatically install it. You
do need sudo for installing the libxml stuff of course.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment