I have Ruby 5.2.3, Homebrew, Xcode, and zlib 1.2.11 installed but I am still running into 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
I've tried running
gem install rails -v 5.2.3
gem install rails
and
sudo gem install rails
and all give the same error.
Related
I had installed Ruby at the version of 2.7.0 and Gem at the version of 3.1.2 when I used the command " gem install rails " it shows an error like this..
Log:
ax#shivvv:~$ sudo gem install rails
[sudo] password for ax:
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
ax#shivvv:~$
Help me to find it..
i am using rvm and my default ruby is the latest Ruby , but i want to swith ruby version to 2.3.8
and after i run rvm use ruby2.3.8 and i want to run bundle install it said bundle not found, and then i tried to install bundle gem install bundler
then error i got is:
ERROR: Loading command: update (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
i already re install rvm and read some question about that error on this SO to get openssll ( my openssl already installed by brew ) such this question
is there any way to solve this?
I installed Ruby 2.3.3, DevKit and OpenSSL on Windows 7. I followed the instruction to install puma, but I'm getting the error:
C:\Ruby23>gem install puma -- --with-opt-dir=c:\Ruby23\openssl
ERROR: Loading command: install (LoadError)
127: The specified procedure could not be found. - C:/Ruby23/lib/ruby/2.3.0/i386-mingw32/openssl.so
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
openssl.so is not compatible?
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
I decided to simply uninstall everyting, a la
aptitude purge rails
Then start from scratch using this guide
Im having trouble getting the Rails 4 beta installed. I used RVM to install Ruby 2.0.0 and that seems to have succeeded ok. Here is the error I get when attempting to install the Rails gem;
$ gem install rails --version 4.0.0.beta1 --no-ri --no-rdoc
ERROR: Loading command: install (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
Re-installing your RVM rubies with the latest versions should enable you to load all the dependencies required to install Rails:
rvm get head --autolibs=3
rvm pkg remove
rvm reinstall all --force