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

Youtube boot camp Pre-production- Course Quiz-The key to pass

Youtube boot camp Pre-production- Course Quiz-Key I completed my quiz about 82% and take pass after fight with 11 question of the youtube academy quiz. As I promise in the previous post , I updated my answer to pass this quiz. Question 1 of 11( 1 ) What are successful creators' top considerations before they even begin to write a script? Budget, target audience, production style, and how much they love the concept. Budget, YouTube Analytics, your passion for the topic, and the equipment you plan to use. The equipment they plan to use, their budget, software for scriptwriting, and ability to draw. Budget, target audience, the reliability of their computer, and artistic ability. Question 2 of 11( 2 ) Mariah is a new creator on YouTube. She has many ideas for videos but when it comes time to actually discuss them, she can’t remember her former moments of brilliance. What can you suggest to Mariah? She should record a short video the moment she has the idea.

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 can help viewer