Gem Installation Error: You Have to Install Development Tools First (Windows)

Cocoapods installation failed, Failed to build gem native extension

I fixed it by running

brew install cocoapods

And
You may want to remove it:

rm '/usr/local/bin/pod'

To force the link and overwrite all conflicting files:

brew link --overwrite cocoapods

Install homebrew if you haven't already. https://brew.sh/

Issues installing Ruby and Rails and DevKit on windows 7 x64 - fix needed

Seems you installed Ruby (along the DevKit?) inside a directory with spaces.

As indicated during Ruby own installer, path with spaces are not recommended (that is why default is C:\Ruby193

GCC, the compiler that is part of DevKit, has problems with path with spaces, so installation of DevKit is also recommended to be placed in a path without spaces (e.g. C:\DevKit)

All this is mentioned in both RubyInstaller and DevKit installation instructions page

pg gem installation is giving error in Redhat

You first need to install build tools (i.e. a C compiler and related tools) as well as development headers for your postgres server to be able to compile the gem.

For RedHat, you should be able to get all required tools with

yum install autoconf bison flex gcc gcc-c++ gettext kernel-devel make m4 ncurses-devel patch
yum install postgresql-devel

With Chef 14, you can use the built-in build_essential resource to install the required compiler packages. On older versions, you can use the build-essential cookbook.

Multiple errors while trying install ruby on rails through an ubuntu WSL terminal

You are missing a compiler, and probably a lot of other essential libraries and tools from your WSL setup. Hopefully this will cover most of what you need:

sudo apt-get install build-essential
sudo apt-get install libxml2-dev libsqlite3-dev zlib1g-dev liblzma-dev


Related Topics



Leave a reply



Submit