Installing Ruby Gem on Raspbian Error: Failed to Build Gem Native Extension -
I'm trying to install Ruby Mani () and I get the following error.
Error: Error installing jekyll: Error: Failed to create gem native extension /usr/bin/ruby1.9.1 extconf.rb /usr/lib/ruby/1.9.1/rubygems/custom_require.rb36 :: 'Required': Can not load such a file - from mkmf (LoadError) / usr / lib / Ruby / 1.9.1 / rubygems / custom_require.rb36: 'Requirement' from INInstconf.rb: 1: in `& lt; Main & gt; '
I am using Raspberry P. When I ask about the Ruby version, I get the following:
User @ RaspberryP ~ $ Ruby -Vergen Ruby 1.9.3p194 (2012-04-20 Revision 35410) [Arm-Linux-AIFF] - E: 1: `& lt; Main & gt; 'In: Undefined local variables or the main method for' rsion ': Object NameError
A few hours ago, by running the command I installed the latest version of Ruby:
Sudo Curl-El https://get.rvm.io | Bash -s fixed - ruby
To know the source of the problem I tried to set up a different gem ().
Thank you in advance!
Therefore, I have looked at other questions on the stack overflow, and I came to know that Ruby's version Because of me I had. Even if I have installed the latest RVM, then I had to install the correct version of Ruby by running the command:
sudo apt-get install ruby1.9.1-dev
Solved my problem :)
Comments
Post a Comment