Difference between revisions of "Ruby"

From CBLFS
Jump to navigationJump to search
Line 23: Line 23:
  
 
  ./configure --prefix=/usr \
 
  ./configure --prefix=/usr \
            --enable-shared --enable-pthread \
+
    --enable-shared --enable-pthread \
            --enable-install-doc &&
+
    --enable-install-doc &&
 
  make
 
  make
  
Line 44: Line 44:
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
mv -v /usr/bin/ruby{,-32}
  
 
=== N32 ===
 
=== N32 ===
Line 50: Line 51:
 
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 59:
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
mv -v /usr/bin/ruby{,-n32}
  
 
=== 64Bit ===
 
=== 64Bit ===
Line 63: Line 66:
 
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 74:
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
mv -v /usr/bin/ruby{,-64} &&
 +
ln -sfv multiarch_wrapper /usr/bin/ruby

Revision as of 07:01, 31 December 2006

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

Introduction to Ruby

The Ruby package contains the Ruby development environment. This is useful for object-oriented scripting.

Dependencies

Optional

Non-Multilib

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 &&
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=6528"