I'm trying to install gosu on my Mac. I used the command:
sudo gem install gosu
After I enter my password, I get something that says:
Building native extensions. This could take a while...
However, then it comes up with this error:
ERROR: Error installing gosu:
ERROR: Failed to build gem native extension.
Does anyone have any ideas to fix this? I don't know why it would be saying this.
You could try
sudo gem install gosu
if that still does not work, then do the following
- install Homebrew (google it)
- run brew install sdl2.
- run sudo gem install gosu
If that still doesn't work, then try to see if you can get an answer from here
Hope that helps!
Related
I'm trying to install Colorls on two separate MacBooks here (one Big Sur and the other one Monterey) but if I run:
sudo gem install colorls
I get this error:
ERROR: Error installing colorls:
ERROR: Failed to build gem native extension.
I tried several different solutions but still no chance.
Any help?
Run this command to install all the developer tools (such as clang, make and libc) which are usually dependencies of native gems.
xcode-select --install
I tried to install a package using RubyGems (please note that I use Windows Subsystem for Linux). I was going to install Jekyll package.
I typed $ gem install jekyll. After that it came up with an error:
Building native extensions. This could take a while...
/usr/lib/ruby/2.5.0/rubygems/ext/builder.rb:76: warning: Insecure world writable dir /mnt/c in PATH, mode 040777
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
Can you please explain the error and any possible ways to fix it?
You need to install the build tools needed:
sudo apt-get update
sudo apt-get install build-essential
I had to install ruby-full to get this working on WSL:
sudo apt install ruby-full
Trying to install sass within a bit bucket pipelines docker instance and getting the error Failed to build gem native extension
The logs show the following:
gem install sass --no-user-install
Successfully installed rb-fsevent-0.10.2
Building native extensions. This could take a while...
ERROR: Error installing sass:
ERROR: Failed to build gem native extension.
I am using a image php:7.1.1
Ruby and Gem should be installed as in my script I run:
apt-get update && apt-get install -y unzip nodejs ruby-full
gem install sass --no-user-install
Thanks in advance
I had the same problem. The following packages have solved the problem:
apt-get install -y ruby-dev gcc automake libtool rubygems build-essential
Best regards
I noticed this error today too using gitlab-ci with a docker image based on php:7.0.
I tried installing ruby-dev and doing a gem update --system first as I found in another SO solution and it didn't fix the error.
Sorry i couldn't post this as a comment, my reputation is too low, but I wanted you to know you're not alone. Hopefully this is a gem toolchain issue that gets fixed quickly.
It always returns the following error :
Building native extensions. This could take a while...
ERROR: Error installing tiny_tds:
ERROR: Failed to build gem native extension.
freetds is missing.
I've tried several methods found here to install freetds, but they all fail.
Any solution or workaround greatly appreciated!
Edit
Fixed it by installing 'Homebrew', and running
brew install freetds
then
gem install tiny_tds -v '0.5.1'
(Copying your own answer)
Fixed it by installing 'Homebrew', and running
brew install freetds
then
gem install tiny_tds -v '0.5.1'
I've tried to install gem ray but I got a message (short)
ERROR: Error installing ray:
ERROR: Failed to build gem native extension.
The full version of message you can see here
My platform: Ubuntu 11.10 x64
How to fix it?
Here is the key line from your gist:
checking for main() in -lopenal... no
You will need an openal library.
In ubuntu there are usually a few ways it is formatted in the package manager:
Sudo apt-get install openal
openal-dev
libopenal
libopenal-dev
libopenal1
Also as in the comments below, you might have a problem with sndfile, which should be libsndfile1-dev at the time of this edit.
source: http://notesofgreg.blogspot.co.uk/2012/04/generic-gem-install-error-solving.html