Ruby and Ruby on Rails

Dependencies

List of development tools and headers for installing Ruby and Ruby on Rails on new system.

openSUSE

Because I can. For openSUSE 13.1.

Ruby

  • gcc-c++
  • make
  • libxml2-devel
  • libyaml-devel
  • libffi-devel
  • readline-devel
  • libopenssl-devel
  • zlib-devel

Ruby on Rails

  • postgresql-devel
  • libmysqlclient-devel
  • sqlite3-devel

Installation

./configure --prefix="${HOME}/apps/ruby23" --disable-install-doc

Or FreeBSD/OpenBSD:

export CC="clang"
export CFLAGS="-march=native -O2 -pipe -fstack-protector -fno-strict-aliasing -I/usr/local/include -I/usr/include"

export CXX="clang++"
export CXXFLAGS="${CFLAGS}"

export CPP="cpp"
export CPPFLAGS="-I/usr/local/include -I/usr/include"

export LIBS="-lpthread -L/usr/local/lib -L/usr/lib"
export LDFLAGS="-fstack-protector -L/usr/local/lib -L/usr/lib"

./configure --prefix="${HOME}/apps/ruby23" --disable-install-doc

Leave a Reply

Your email address will not be published. Required fields are marked *