On 18 September 2015 at 23:02, Prasanna Moharana <lipp.prasa...@gmail.com> wrote:
> Hello sorry @colin .i am a new one to this forum as well as ruby so if any > mistake made by me then i am sorry. > well the output of $ apt-cache policy gcc is > gcc: > Installed: 4:4.8.2-1ubuntu6 > Candidate: 4:4.8.2-1ubuntu6 > Version table: > *** 4:4.8.2-1ubuntu6 0 > 500 http://in.archive.ubuntu.com/ubuntu/ trusty/main amd64 > Packages > 100 /var/lib/dpkg/status > > Though @coli u had told me to try out sudo apt-get install libxslt1-dev > libxml2-dev command ,its working fine showing that > > libxslt1-dev is already the newest version. > libxml2-dev is already the newest version. > 0 upgraded, 0 newly installed, 0 to remove and 490 not upgraded. > > And after it i try to install rails by gems install rails but the same > error again comes up. > i had try to install nokogiri by trying out sudo gem install nokogiri -v > '1.6.6.2' -- --use-system-libraries > --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib > command & it was working fine. So help me guys.. > Sine you are using rvm you should not use sudo for install gems, otherwise it does not install to the correct place. I don't know why you should need those options to install nokogiri. What happens if you just try that command without the sudo? If that works can you now install rails using gem install rails 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+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuLnB%2BQUhNS-vNzGJKCt5jaqmtSa8TKr47-JUJ7u0DtKw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.