Sunday, May 9, 2010

Building ruby 1.9.3dev

First time building ruby. These steps seem working.

$ svn co ruby
$ autoconf
$ CFLAGS="-U_FORTIFY_SOURCE" ./configure --with-baseruby=/usr/bin/ruby --prefix=/home/toshi/built
$ make
$ make test
$ make install

Looks like I need to specify --with-baseruby with working ruby. So actually I needed to install ruby 1.8 from the distribution:

$ sudo apt-get install ruby

Also -U_FORTIFY_SOURCE is needed. Otherwise I hit "longjmp causes uninitialized stack frame" errors during "make test" just like

No comments: