Skip to main content

right short solution for the unbuntu error extension "ERROR: Error installing rails:ERROR: Failed to build gem native extension."

ERROR: Error installing rails:ERROR: Failed to build gem native extension.Ubuntu



Last all day, I try to fix the error "ERROR:  Error installing rails:ERROR: Failed to build gem native extension.". I want to build a "bundle install" on ubuntu 16. I search and do many solutions on the website found but have no good results. I think in the deep and get a conclusion about this problem. The start point is ruby, so I must install it at the begin. Then, I search some key and pick 1 random solution up. I have a right choice. It was fixed. I share with you my solution.

The first references, this link for detail: https://gorails.com/setup/ubuntu/16.04

The second, I detail my action to make it work.
1.Ready for setup, all command:"
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev nodejs yarn
"
2.Pick 1 way to setup ruby, I followed the first by using rbenv:
"
cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL

rbenv install 2.5.1
rbenv global 2.5.1
ruby -v
"

3.At last install bundle"
gem install bundler
"

So amazing, "bundle install" work without any error. It was fixed

Comments

Popular posts from this blog

youtube strike mistake

An error of youtube system? My channel had a strange strike notice from youtube. I have just streamed my lol game. An error occurred, I stopped and restarted this live stream. Then I deleted the error video. I received a strike notice mail from google. They lead me to the basic guild line as the link: https://support.google.com/youtube/answer/185111?hl=en But I don't see the link to appeal form I clicked the link from email, it navigated to my videos dashboard. This disadvantage make me confuse about google system. It can be an error or a new policy that not public yet. I can't wait for a long time about 3 month to make my live stream work. One thing that I remember when I click to the link in the mail box, it show me to the form with acknowledge button, I can't do anything but click to the terrible button. It have two way to appeal this strike: 1. from the channel setting ( but it failed as I said above), 2.from the link of no-reply google mail( it show ...

Creator Academy’s Foundations for success boot camp!

Creator Academy’s Foundations for success boot camp! Thanks for signing up for the Creator Academy’s Foundations for success boot camp! We’re super excited to help you learn the fundamentals for creating your ultimate channel and keep it thriving on YouTube. Boot camp begins  April 20, 2016 , and we’ll follow up on that day with some details to get you ready. Until then, get out there and create your next video! Waiting for the first tutorial about this article. I register this course from youtube academy, success, say easily but do hard. Who define what is success? I found this on the web:" Jim Rohn’s 10 Foundations for Success Revealed SUCCESS will share classic footage of Jim Rohn and new lessons from personal development icons during this free Rohn broadcast event. SUCCESS Staff   September 21, 2015 For the past year, SUCCESS staff has gone into the vaults of the massive Jim Rohn library and watched thousands of hours of decades-ol...

YouTube Creator Academy-Jumpstart your channel in the course: Foundations for success boot camp-day1

YouTube Creator Academy- Jumpstart your channel in the course: Foundations for success boot camp-day1 Welcome to YouTube and our home for creator education -- the Creator Academy! Our lessons and courses are built to help you excel on YouTube. We’ll guide you through the essentials you need to know when starting a channel. BEST PRACTICE -So you wanna be a Youtuber: 4 steps guide  Create a channel:  When setting up a channel on YouTube, you may want to get the initial housekeeping tasks out of the way (like naming, setting privacy permissions, etc.) so you can focus on taking your great channel idea and transforming it into a reality. We’ll show you the steps to kickstart your channel and get it ready for future uploads. Be found:  Next, consider how your videos will get discovered on YouTube. Successful creators often grow their channel by finding the right audience and adding customizations. For example, adding thumbnails, metadata, and a clickable title c...