Installing Libyaml for Ruby on a MAC Osx (Lion)

Installing libyaml for ruby on a mac osX (Lion)

Try this...

Open a new terminal window and:

cd .rvm/src
sudo rm -rf yaml*

(supply your credentials)

cd ~
rvm pkg install libyaml

Libyaml missing after installing RVM ruby-1.9.3-p125 32-bit on OSX Lion

Use

CONFIGURE_OPTS="--with-arch=i386" CFLAGS="-arch i386" LDFLAGS="-arch i386" rvm pkg install libyaml

to compile libyaml in 32-bit and then reinstall your ruby version:

rvm reinstall ruby-1.9.3-p125-i386 -n i386 --with-arch=i386

I cannot install libyaml in Brew

I feel like an idiot. Apparently my school blocks the URL's needed in the download process. Not ever a real problem.

Make error installing Ruby 1.9.2 via rvm OSX Lion 10.7.2 XCode 4.2

This error has been fixed in 1.9.2-head ... so just

rvm install 1.9.2-head && rvm use 1.9.2-head --default

I'm finding 1.9.3 isn't compatible with a lot of the libraries I use yet. This works with Xcode 4.2.

Having trouble installing any ruby 1.9.x (with rbenv) on mac osx due to psych YAML parse errors

I've seen errors like this when I had a YAML syntax error in my .gemrc or .irbrc.

Check / remove them and try again.

Using multiple versions of libyaml with RVM

You would have to know the params to build libyaml as fat binary for both platforms - then the single location could be used for both ... if you find the params for it then open a ticket for rvm to respect following flags --32/--64/--universal for rvm pkg install ...

32bit Ruby compile fails on Lion

Using rvm myself but tried out on rbenv as well and worked for me:

RBENV compiling 32 bit ruby-1.9.3-p0

!!! installing libyaml before doing this could be needed

Installing libyaml

wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
tar -xzf yaml-0.1.4.tar.gz
cd yaml-0.1.4
./configure --prefix=$HOME/.rbenv/versions/ruby-1.9.3-p0_32bit
make
make install

installing ruby

cd
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz
tar -xzf ruby-1.9.3-p0.tar.gz
cd ruby-1.9.3-p0
autoconf
./configure --disable-pthread --with-opt-dir=$HOME/.rbenv/versions/ruby-1.9.3-p0_32bit --with-arch=i386 --prefix=$HOME/.rbenv/versions/ruby-1.9.3-p0_32bit
make
make install

RVM compiling 32 bit ruby-1.9.3-p0

export rvm_archflags='-arch i386'
export rvm_architectures='i386'
export rvm_configure_flags=--target=i686-apple-darwin11
rvm install ruby-1.9.3-p0 --32 --patch osx-arch-fix -n i386

...

Verify that you are running a 32 bit ruby

$ irb
['foo'].pack('p').size

// should return 8 on 64bit and 4 on 32bit.


Related Topics



Leave a reply



Submit