3

I recently installed rails 4.1.8 from the repos in ubuntu. I installed ruby 2.0.0. I want to update to rails 4.2.0. I rvm'd to ruby 2.0.0. I try to update rails using

gem install rails -v 4.2.0

but receive this error

ERROR:  Loading command: install (LoadError)
    cannot load such file -- zlib
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass

zlib1g-dev is already installed. I'm not sure what to do.

Thanks

MattF
  • 95
  • 1
  • 7
  • I tried with ruby v 2.4.0. Didn't help. I tried re-installing ruby, re-installed gem.... – MattF Mar 21 '17 at 20:38

1 Answers1

0

I decided to simply uninstall everyting, a la

aptitude purge rails

Then start from scratch using this guide

MattF
  • 95
  • 1
  • 7