librelist archives

« back to archive

failed install raindrops on mac osx 10.5.8

failed install raindrops on mac osx 10.5.8

From:
ferriswheel
Date:
2011-08-02 @ 04:46
hello,

whilst doing 'gem update' raindrops, a requirement for unicorn, i got this result.

> $ gem update
> Updating installed gems
> Updating unicorn
> Building native extensions.  This could take a while...
> ERROR:  Error installing unicorn:
>         ERROR: Failed to build gem native extension.
>
>         /Users/john/.rvm/rubies/ruby-1.9.2-head/bin/ruby extconf.rb
> checking for mmap() in sys/mman.h... yes
> checking for munmap() in sys/mman.h... yes
> checking for mremap() in sys/mman.h... no
> checking for getpagesize() in unistd.h... yes
> checking for rb_thread_blocking_region()... yes
> checking for rb_thread_io_blocking_region()... no
> checking for GCC 4+ atomic builtins... no
> checking for atomic_ops.h... no
>
> libatomic_ops is required if GCC 4+ is not used.
> See http://www.hpl.hp.com/research/linux/atomic_ops/
>
> Users of Debian-based distros may run:
>
>   apt-get install libatomic-ops-dev
> *** extconf.rb failed ***
> Could not create Makefile due to some reason, probably lack of
> necessary libraries and/or headers.  Check the mkmf.log file for more
> details.  You may need configuration options.
>
> Provided configuration options:
>         --with-opt-dir
>         --without-opt-dir
>         --with-opt-include
>         --without-opt-include=${opt-dir}/include
>         --with-opt-lib
>         --without-opt-lib=${opt-dir}/lib
>         --with-make-prog
>         --without-make-prog
>         --srcdir=.
>         --curdir
>         --ruby=/Users/john/.rvm/rubies/ruby-1.9.2-head/bin/ruby
>         --with-atomic_ops-dir
>         --without-atomic_ops-dir
>         --with-atomic_ops-include
>         --without-atomic_ops-include=${atomic_ops-dir}/include
>         --with-atomic_ops-lib
>         --without-atomic_ops-lib=${atomic_ops-dir}/lib
>
>
> Gem files will remain installed in 
/Users/john/.rvm/gems/ruby-1.9.2-head/gems/raindrops-0.7.0 for inspection.
> Results logged to 
/Users/john/.rvm/gems/ruby-1.9.2-head/gems/raindrops-0.7.0/ext/raindrops/gem_make.out
> Nothing to update

the same error occurs with manual install from the raindrop tarball.

rvm 1.6.25 is installed. OS is mac osx 10.5.8.

regards

john

Re: [raindrops] failed install raindrops on mac osx 10.5.8

From:
Eric Wong
Date:
2011-08-02 @ 21:57
ferriswheel <ferriswheel@jetechserv.com> wrote:
> > checking for GCC 4+ atomic builtins... no
> > checking for atomic_ops.h... no
> >
> > libatomic_ops is required if GCC 4+ is not used.
> > See http://www.hpl.hp.com/research/linux/atomic_ops/
> 
> the same error occurs with manual install from the raindrop tarball.
> 
> rvm 1.6.25 is installed. OS is mac osx 10.5.8.

I cannot support non-Free OSes, but you should check that error message
again and see if GCC4 is used or install the atomic_ops library.

I have heard of newer OSX use a LLVM-based compiler that's not 100%
compatible with Ruby 1.9 itself, either.

Maybe somebody else on this list has more knowledge of non-Free OSes.

-- 
Eric Wong