Unable to install ruby ​​1.9.1 on macOSX 10.6

I cannot get Ruby to install on my Mac. These are the steps that I have done so far:

  • Download the package from the Ruby website ( http://www.ruby-lang.org/en/downloads/ )
  • Unzip it with {tar xzvf ruby-1.9.1-p376.tar.gz}
  • I went into a new ruby ​​folder and configured using {./configure}

Here an error occurs. When I run configure, it gives me an error:

/usr/local/include/fuse/fuse_common.h:32:2: error: #error Please add -D_FILE_OFFSET_BITS=64 to your compile flags! In file included from /usr/local/include/fuse/fuse.h:857, from <command-line>:0: /usr/local/include/fuse/fuse_compat.h:69:24: error: sys/statfs.h: No such file or directory 

As a result, I cannot make a package or install it. I have no idea what is wrong. Any help is appreciated. Thanks!

0
ruby ruby-on-rails osx-snow-leopard macos
source share
5 answers

This is not ananswer, as the suggested alternative ... use macports :-)

-2
source share

Have you tried RVM ? It allows you to manage multiple versions of ruby ​​and will install them and manage any version of gem for you. This is pretty magic!

After installation, all you have to do is:

 `rvm install 1.9` 

Done!

+3
source share

If the last line of configuration output

 config.status: creating Makefile 

then you have a make file and you can try to create it.

I got the fuse.h error and just ran make to create a working ruby:

 [neilk@maczombie ~]$ ruby --version ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin10.2.0] 
+2
source share

Others seem to have run into this problem .

If you need a binary, you can try rubyosx .

I assume the problem is that you have FUSE (or MacFUSE) installed in / usr / local, and for some reason, the configure phase does something that includes. If you are not trying to create a ruby ​​with some local extensions, but you want to create a ruby ​​yourself, try moving aside / usr / local (at least temporarily).

 sudo mv /usr/local /usr/local.aside 

(Beware, messing around with / usr and / usr / local directories can lead to trouble.)

+1
source share

What happens if you set C_Flags or CPP_Flags before executing your. / Configure?

0
source share

All Articles