Giter Club home page Giter Club logo

ruby-1.9.3-rpm's Introduction

What is this spec?

This spec is an attempt to push for a stable replacement of Ruby 1.8.x with 1.9.3+ on RHEL based systems. I have based it off of the work of FrameOS specs for Ruby 1.9.3 and Ruby Enterprise Edition.

How to install

RHEL/CentOS 5/6

yum install -y rpm-build rpmdevtools readline-devel ncurses-devel gdbm-devel tcl-devel openssl-devel db4-devel byacc libyaml-devel libffi-devel make
rpmdev-setuptree
cd ~/rpmbuild/SOURCES
RUBY_VER=ruby-1.9.3
RUBY_SUBVER=p545
wget http://ftp.ruby-lang.org/pub/ruby/1.9/${RUBY_VER}-${RUBY_SUBVER}.tar.gz
cd ~/rpmbuild/SPECS
wget https://raw.github.com/imeyer/${RUBY_VER}-rpm/master/ruby19.spec
rpmbuild -bb ruby19.spec
ARCH=`uname -m`
KERNEL_REL=`uname -r`
KERNEL_TMP=${KERNEL_REL%.$ARCH}
DISTRIB=${KERNEL_TMP##*.}
yum localinstall ~/rpmbuild/RPMS/${ARCH}/${RUBY_VER}${RUBY_SUBVER}-1.${DISTRIB}.${ARCH}.rpm

PROFIT!

If you are having trouble on the last line because of installed rubies, then run:

yum remove ruby-* puppet facter

If yum can't find libyaml, install the epel repo.

What it does

  • Builds
  • Installs
  • Overwrites/upgrades your currently installed ruby package (DANGEROUS)

What it does not do

  • Split packages into ruby-libs, ruby-devel, etc (looking for help here)
  • Install alongside Ruby 1.8.x

  • If you upgrade from an already installed 1.8.x, you will need to re-install all of your gems. If anyone has a decent way to do this programatically, i'll add it to the doc.

Requirements

  • EPEL Yum repository (for rpmdev-setuptree)

Distro support

Tested working (as sane as I could test for) on:

  • CentOS 5.x x86_64
  • CentOS 6.3 (Final)

Personal thoughts

This is by no means, correct, or sane. Nor does it follow any sort of policy for packaging. I leave that to the people who are most familiar with such things, and will willingly accept patches that add those features.

ruby-1.9.3-rpm's People

Contributors

haf avatar hnakamur avatar imeyer avatar laapsaap avatar lookfirst avatar lpar avatar mbokman avatar sustr4 avatar symm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ruby-1.9.3-rpm's Issues

Spec build errors

This spec is affected by issue: rbenv/ruby-build#443

It fails for me on CentOS-6.4 x86_64
Fixed by using the patch described in that, re-tarballing, and pushing in to SOURCES dir.

after install, no yaml support

I see this error message when using ruby built with this spec file:

It seems your ruby installation is missing psych (for YAML output).

This is on CentOS 5.6

What do I need to do about this?

Use mock for building software

Thanks, I wanted something like this for RHEL 5 based operating systems to build chefdk SRPM's.

Take a good look at my mock based building tools for RPM's, created before my current professional role, at https://github.com/nkadel/subversion-1.8.x-srpm. If you just grab the '.gitignore' and 'Makefile', you'll have a good wrapper for building just this sort of package. I'll test and submit a pull request.

Spec needs tweaking

This shows as 1.9.3p484, but p484 is the minor, so the proper output should be 1.9.3-p484 much like the current scheme ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p330.tar.gz

Copyright?

You have made an excellent tool here. I will likely use it in important work.

If I were to use this file in a work, what is are the terms of copyright?

typo in install command on README

rpm -Uvh ~/rpmbuild/RPMS/${ARCH}/ruby-1.9.3p194-1.ruby-1.9.3p194-1.${ARCH}.rpm

should be

KERNEL_REL=`uname -r`
KERNEL_TMP=${KERNEL_REL%.$ARCH}
DISTRIB=${KERNEL_TMP##*.}
rpm -Uvh ~/rpmbuild/RPMS/${ARCH}/ruby-1.9.3p194-1.${DISTRIB}.${ARCH}.rpm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.