Fast-Stemmer Installation Problems

Fast-stemmer installation problems

So, it appears that the problem I was having was caused by updating the last xCode, which in turn updated clang to 5.1, which in turn has broken a lot of ruby gems that haven't updated to reflect breaking changes in clang 5.1. I found this all on the Cloudspace blog.

Their solution (for the moment -- the error says they will become hard errors in the future) is to put the following flag to get your compiler to ignore the issue:

ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future

For example:

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install librarian-chef

or to bundle:

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future bundle install

Trying to install Jekyll on Windows 8 (x64): Error installing fast-stemmer-1.0.2.gem

Have you tried uninstall Ruby/DevKit and try the whole thing again, but this time, install Ruby to the default directory like C:\Ruby200-x64 instead of C:/Program Files/Ruby/Ruby200-x64

As I suspect the space in your ruby directory could be the issue. (Line 296 of your error txt)

/usr/bin/install: target
`Files/Ruby/Ruby200-x64/lib/ruby/gems/2.0.0/gems/fast-stemmer-1.0.2/lib'
is not a directory make: *** [install-so] Error 1

Also quote from 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)

Installing native Ruby extensions on Windows for Jekyll

There is a confusion with the instructions you're following. The instructions at RubyInstaller DevKit were created to support installation of extensions using RubyInstaller compiled versions of Ruby.

It is clear, from your current directory (visual studio) and the output of the gem installation you're using mswin32 based Ruby, which will not work with RubyInstaller or the DevKit we documented.

Please install Ruby and the DevKit from RubyInstaller website and follow the instructions there and avoid mixing with Visual Studio

How to install Jekyll on mac osx 10.9 with ruby 2.0.0?

It doesn't look like you have ruby installed / managed via rvm. I would definitely recommend rvm and homebrew on os x. They will save you a lot of headache.

Here is a good link on how to set that up:

http://dean.io/setting-up-a-ruby-on-rails-development-environment-on-mavericks/
https://deanpcmad.com/blog/setting-up-a-ruby-on-rails-development-environment-on-mavericks

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

Error Installing Jekyll - Native Extension Build

Your problem is that either you system doesn't know where make is located at or you don't have it installed. The easiest way to fix this (and probably other issues you'll run into trying to get a ruby system up and running) is to install xcode.

You can get it at http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12 for lion. Or it came on a CD with your computer for earlier versions.

If you're using Lion, please see comments below for a link to how to install developer tools on Lion.

Error while installing Jekyll on Mac OSX 10.8.2

Beyond (or instead of, it depends on the tool) Xcode, you'll need the Command Line Tools, which can be installed from a preference pane in Xcode. Xcode can be found in the App Store and should be free or very cheap.

By the way, I highly recommend you don't mess with the system's own ruby; install rvm in order to get a fully isolated ruby version (you can pick the version you prefer) where you can install all your gems.

Once rvm is installed, just do something like:

rvm install 1.8.7
rvm use 1.8.7
gem install jekyll

UPDATE

If you need gcc to compile a certain version of Ruby, you should install homebrew, and then install gcc using this command:

brew tap homebrew/dupes && brew install apple-gcc42

Otherwise try installing ruby 1.9.3 which AFAIK should work with LLVM/GCC (I'm not on a Mac right now and cannot check).

Install gem gives Failed to build gem native extension.

You need to install make and other build tools first, run this:

sudo apt-get install build-essential


Related Topics



Leave a reply



Submit