Ruby windows could not create makefile


















Same here on Sierra, and my problem gem was Nokogiri. You're most likely missing some file headers e. Or if using Alpine Linux: apk add -build-base — Jimbali. Usama Azam Usama Azam 3 3 silver badges 12 12 bronze badges. I use Arch linux, and only Arch linux. This answer can be improved by providing instructions for how to upgrade those libraries.

I run Arch linux which plays by it's own rules in many ways, including package management, and I can't determine what operating system the asker is using at a glance. For what it's worth, using Ruby 2. I followed these steps below for installing rails: sudo apt-get install ruby-full sudo apt-get install libz-dev libiconv-hook1 libiconv-hook-dev sudo gem install rails.

I can install rails after follow your instruction. Thanks1 — BimoS. I had the issue because gcc wasn't available on my machine. Fixed it by installing gcc. Floris Devreese Floris Devreese 2, 2 2 gold badges 14 14 silver badges 22 22 bronze badges. This worked for me. Nokogiri was the problem. Try the following if you are using Alpine-Linux or equivalent command for your OS apk add build-base And then install nokogiri as given below gem install nokogiri -- --without-pkg-config --with-libxml Dhivya Dandapani Dhivya Dandapani 2 2 silver badges 7 7 bronze badges.

Good docs for nokogiri: nokogiri. After this just update the ruby to the new version rvm use ruby Vikash Sinha Vikash Sinha 5 5 silver badges 19 19 bronze badges. Install rvm and use it to install Ruby 2. Alok Chandra Alok Chandra 1, 1 1 gold badge 20 20 silver badges 45 45 bronze badges. The problem is resolved with next command: sudo apt install build-essential. Ognjen Stanisavljevic Ognjen Stanisavljevic 1 1 1 bronze badge. Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password. It sounds like you've got your ruby install a bit screwed up now - I would uninstall that version from rvm and re-install it first.

Most likely, you tried to install as root, and now you're trying to install as a different user. Holger Sindbaek Holgersindbaek. Co-founder Uninkd. After a lot of messing around, I ended up messing around with brew. Updated brew where I also got a lot of errors. Re-installed command line tools and ruby. I faced a similar issue after upgrading to Mavericks and XCode 5. The ffi gem was looking for GCC 4.

This is how I solved the issue:. Re-installation of ruby should be a better fix in this case. I faced this issue after upgrading to MacOS Mojave. All you need is to install Xcode again:.

If you already have the command line tools installed, resetting it to the default path can help:. Yarn asked to update so that ran fine. I then decided I would bundle update.

Any ideas? Skip to content. Star 1. New issue. Jump to bottom. Copy link. Returns whether or not the struct of type type contains member. If it does not, or the struct type can't be found, then false is returned.

You may optionally specify additional headers in which to look for the struct in addition to the common header files. Returns whether or not the static type type is defined. You may optionally pass additional headers to check against in addition to the common header files. Returns whether or not the variable var can be found in the common header files, or within any headers that you provide.

If an option argument is given, the config command is invoked with the option and a stripped output string is returned without modifying any of the global values mentioned above. Tests for the presence of a --with- config or --without- config option. Returns true if the with option is given, false if the without option is given, and the default value otherwise. Home Core 2. Home Classes Methods.

In Files mkmf. MakeMakefile mkmf. File mkmf. For example: extconf. PHONY: all install static install-so install-rb. PHONY: clean clean-so clean-static clean-rb " " mfile. Returns the output of findings, in Makefile format. This can be useful for adding custom definitions, such as debug information.

If found, it will return the full path, including the executable name, of where it was found.



0コメント

  • 1000 / 1000