-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gem install fails: ERROR: Failed to build gem native extension #558
Comments
I had the same problem than you. I was in a clean Ubuntu box. In the end I was able to build travis-cli after installing these dependencies:
Regards, Dante |
Dante, I'm in the same fix - just tried installing those dependencies. I downloaded make without any problems, but 'sudo gem install [dependency]' didn't work for ruby-dev, gcc or libffi-dev: Any idea what I'm doing wrong? |
What is happenning is that those are system dependencies not Ruby dependencies. Try to install them using your system package manager (apt-get in debian). By the way, be aware that I gave you the names those packages have in Ubuntu, they may have different names in other distributions. |
I was having this issue on MacOS Mojave. Installing latest ruby via Homebrew and setting some env variables solved it for me:
|
In Fedora (29, x64), I had to install all dev tools: sudo dnf install @development-tools
sudo dnf install @rpm-development-tools # missing |
Closing in favor of #758. It no longer depends on native extensions, so the installation should be easier. If the issue persists, feel free to open a new one. |
I was having the same issue today when installing fastlane. Fixed it by following @dante-signal31 's advice. Additonally, I also had to add |
If you are using a mac, you can try it.
|
Thanks!! And also need g++ in my case. |
I am facing same problem for windows10, can anybody got solution for windows. |
Works for me thanks. |
perfect. thank you |
This really helped me, I switched from windows to Ubuntu on wsl, and your solution effectively solved my problem, thanks a lot! |
Hi guys,
Travis CLI does not seem to be willing to install on my machine (I'm using this docker image as my container).
I'm using
Gem 2.7.2
andruby 2.3.3
Also, ruby dev kit is already installed:
Has anyone encoutered the same problem ? I need Travis CLI to encrypt my api_key for deployment.
Thanks,
Simon.
The text was updated successfully, but these errors were encountered: