Ruby: Difference between revisions

From CBLFS
Jump to navigationJump to search
Kalessin (talk | contribs)
I added the package description from BLFS.
Lemoinet (talk | contribs)
No edit summary
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| style="text-align: left; background-color: AliceBlue;"
{| style="text-align: left; background-color: AliceBlue;"
|-
|-valign="top"
!Download Source:
!Download Source:
| ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.5.tar.gz
| ftp://ftp.ruby-lang.org/pub/ruby/{{Ruby-Version2}}/ruby-{{Ruby-Version}}.tar.bz2
|}
|}


----
----


== Introduction to Ruby ==
{{Package-Introduction|Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.|http://www.ruby-lang.org/en/}}
 
The Ruby package contains the Ruby development environment. This is useful for object-oriented scripting.


== Dependencies ==
== Dependencies ==
Line 19: Line 17:


== Non-Multilib ==
== Non-Multilib ==
'''Test Suite Note:'''
You will need to install ruby for '''make check''' to
succeed fully. A number of tests will fail if you
run the test suite prior to installing ruby.


Compile the package:
Compile the package:


  ./configure --prefix=/usr \
  ./configure --prefix=/usr \
            --enable-shared --enable-pthread \
    --enable-shared --enable-pthread \
            --enable-install-doc &&
    --enable-install-doc &&
  make
  make


Line 39: Line 42:
  CC="gcc ${BUILD32}" ./configure --prefix=/usr \
  CC="gcc ${BUILD32}" ./configure --prefix=/usr \
     --enable-shared --enable-pthread \
     --enable-shared --enable-pthread \
     --enable-install-doc &&
     --enable-install-doc --host=${CLFS_TARGET32} &&
  make
  make


Install the package
Install the package


  make install
  make install &&
mv -v /usr/bin/ruby{,-32}


=== N32 ===
=== N32 ===
Line 50: Line 54:
Compile the package:
Compile the package:


sed -i "s:/lib/ruby:/lib32/ruby:g" configure &&
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
     --libdir=/usr/lib32 --enable-shared \
     --libdir=/usr/lib32 --enable-shared \
Line 57: Line 62:
Install the package
Install the package


  make install
  make install &&
mv -v /usr/bin/ruby{,-n32}


=== 64Bit ===
=== 64Bit ===
Line 63: Line 69:
Compile the package:
Compile the package:


sed -i "s:/lib/ruby:/lib64/ruby:g" configure &&
  CC="gcc ${BUILD64}" ./configure --prefix=/usr \
  CC="gcc ${BUILD64}" ./configure --prefix=/usr \
     --libdir=/usr/lib64 --enable-shared \
     --libdir=/usr/lib64 --enable-shared \
Line 70: Line 77:
Install the package
Install the package


  make install
  make install &&
mv -v /usr/bin/ruby{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/ruby
 
[[Category:Programming]]

Latest revision as of 09:24, 14 May 2010

Download Source: ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p376.tar.bz2

Introduction to Ruby

Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.

Project Homepage: http://www.ruby-lang.org/en/

Dependencies

Optional

Non-Multilib

Test Suite Note:
You will need to install ruby for make check to
succeed fully. A number of tests will fail if you
run the test suite prior to installing ruby.

Compile the package:

./configure --prefix=/usr \
    --enable-shared --enable-pthread \
    --enable-install-doc &&
make

Install the package

make install

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr \
    --enable-shared --enable-pthread \
    --enable-install-doc --host=${CLFS_TARGET32} &&
make

Install the package

make install &&
mv -v /usr/bin/ruby{,-32}

N32

Compile the package:

sed -i "s:/lib/ruby:/lib32/ruby:g" configure &&
CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
    --libdir=/usr/lib32 --enable-shared \
    --enable-pthread --enable-install-doc &&
make

Install the package

make install &&
mv -v /usr/bin/ruby{,-n32}

64Bit

Compile the package:

sed -i "s:/lib/ruby:/lib64/ruby:g" configure &&
CC="gcc ${BUILD64}" ./configure --prefix=/usr \
    --libdir=/usr/lib64 --enable-shared \
    --enable-pthread --enable-install-doc &&
make

Install the package

make install &&
mv -v /usr/bin/ruby{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/ruby
Retrieved from "?title=Ruby&oldid=20203"