Code Monkey home page Code Monkey logo

offline-rbenv-ruby_2.1.1-rpm's Introduction

offline-rbenv-ruby_2.1.1-rpm

RPM install of Ruby 2.1.1 which integrates with Offline rbenv RPM

This RPM does not download anything from the Internet. The idea is to allow you to install Ruby (for rbenv) on a production environment where internet access is limited.

Building RPM

Useful sites

http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment

http://www.lamolabs.org/blog/164/centos-rpm-tutorial-1/

http://www.lamolabs.org/blog/6837/centos-rpm-tutorial-part-3-building-your-own-rpm-of-jboss/

Prepare

Need to install the following packages to allow you to build RPMs:

yum install rpm-build redhat-rpm-config

This RPM has many build dependencies (packages we need to build it). The following simplifies installing those:

yum install yum-utils

Now you can use yum-builddep... see "Building RPM"

Centos/RHEL 5.x

For EL5 you will also need:

yum install buildsys-macros

Building RPM

Some packages are not in default repos so get:

Remember you can download and install RPMs in one go i.e.:

yum install http://pkgs.repoforge.org/libyaml/libyaml-0.1.4-1.el6.rf.x86_64.rpm

Building RPMs should never be done as root so:

adduser rpmbuild
su - rpmbuild
git clone https://github.com/ggershoni/offline-rbenv-ruby_2.1.1-rpm
echo '%_topdir %(echo $HOME)/offline-rbenv-ruby_2.1.1-rpm' > ~/.rpmmacros 
cd offline-rbenv-ruby_2.1.1-rpm
sudo yum-builddep SPECS/rbenv-ruby.spec
rpmbuild -ba SPECS/rbenv-ruby.spec

Install RPM

Below is for Centos/RHEL 5 but if EL 6 rpm in repo please update URL and RPM to suit.

wget --no-check-certificate https://github.com/ggershoni/offline-rbenv-ruby_2.1.1-rpm/raw/master/RPMS/x86_64/rbenv-ruby_2.1.1-p76-1.el5.x86_64.rpm
sudo yum install --nogpgcheck rbenv-ruby_2.1.1-p76-1.el5.x86_64.rpm

TODO

  • Currently all under /opt... not good. Need to structure so follows FSH.

offline-rbenv-ruby_2.1.1-rpm's People

Contributors

ggershoni avatar

Watchers

Eric Ashman avatar  avatar

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.