Frage

I'm unable to get gem to install memcached on osx (Mavricks). I have installed memcached and libmemcache with brew.

gem install memcached -v '1.0.6'

I've put the output in a gist as there's a lot of it. I'm using rbenv with ruby 1.9.3p484. I've done a lot of googling but haven't found a similar failure. Let me know if you need more data.

War es hilfreich?

Lösung

The --enabled-shared flag fixed it in the end. Here was the whole line I used to re-install ruby:

CC=/usr/local/opt/apple-gcc42/bin/gcc-4.2 CONFIGURE_OPTS="-C --enable-shared --with-readline-dir=$(brew --prefix readline) --with-opt-dir=/usr/local/opt/openssl:/usr/local/opt/readline:/usr/local/opt/libyaml:/usr/local/opt/gdbm:/usr/local/opt/libffi --without-tcl --without-tk CC=/usr/local/opt/apple-gcc42/bin/gcc-4.2" rbenv install 1.9.3-p484
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top