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

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-10 Fundamentals of a creative strategy in the course: Foundations for success boot camp-day2

YouTube Creator Academy-10 Fundamentals of a creative strategy in the course: Foundations for success boot camp-day2 Got a viral video that pulled 100,000 views? Great! But now what? Chances are, if the audience loved it, they’ll want more. Think beyond the one-video hit and consider developing a series of videos that are just as popular. Use these guidelines to test your ideas and give them the best chance of success on YouTube. BEST PRACTICES: -Shareability: Some ways to be shareable: Be topical:  When a story is breaking, join the conversation by crafting an episode around it. Be relatable:  Strike a chord with viewers on a subject they can relate to, whether it’s a broad topic like cell phone habits, or a niche topic like life in New York. Be valuable:  Try to provide practical value to the viewer. Tutorials rank among the most helpful, frequently used videos on YouTube. Be remarkable:  Upload a demonstration of exceptional talent or ability. -C...

New youtube rule, 4000 watch hours and 1000 subscribers, I quit

New youtube rule, 4000 watching hours and 1000 subscribers, I quit How many channel get the new email from youtube about Youtube Partner Program( YPP)? I get one about new rule 4000 hours of watching and 1000 subscribers. " What's Changing Under the new eligibility requirements announced today, your YouTube channel, Explorer Mr, is no longer eligible for monetization because it doesn’t meet the new threshold of 4,000 hours of watchtime within the past 12 months and 1,000 subscribers. As a result, your channel will lose access to all monetization tools and features associated with the YouTube Partner Program on  February 20, 2018  unless you surpass this threshold in the next 30 days. Accordingly, this email serves as 30 days notice that your YouTube Partner Program terms are terminated. One of YouTube’s core values is to provide anyone the opportunity to earn money from a thriving channel. Creators who haven’t yet reached this new threshold can continue to benefit fro...