Skip navigation

Blog Moved to http://erratwork.tk/

Post: http://erratwork.tk/2008/06/installing-stand-alone-rails-package/

6 Comments

    • Christian
    • Posted February 1, 2009 at 7:56 am
    • Permalink

    Thank you very much. I used your tutorial successfully.

  1. Hi,

    Thanks for your instructions here. I tried them tonight but found that it didn’t automatically install the dependencies, and I had to do them one by one (see my blog post at http://www.abm.id.au/blog/?p=41).

    I later found out I had an outdated version of gems though. Do you think that would explain it? Did it automatically find the dependencies when you installed?

    Andrew.

    • Peter Ojiambo
    • Posted June 8, 2009 at 7:44 pm
    • Permalink

    Thanks for this!

    I went round and round in circles, spendind an entire afternoon trying to resolve the same issues until i came across your blog. This was very very usefull!

    Thanks!

    • Alan
    • Posted July 2, 2009 at 6:37 am
    • Permalink

    “But this did not seem to solve the error either. Realising what it wanted, I copied the .gem file and pasted in the ‘gemrails’ folder.”

    Which .gem file are you referring to? because i got the same problem about rake >= 0.8.3 runtime

    • digitaln00b
    • Posted July 5, 2009 at 6:44 pm
    • Permalink

    @Christian and Peter: I’m glad my post helped.

    @ Andrew: Yes, that worked for me. Did you run the command from the folder where you had stored the .gem files?

    @Alan: What I did was to look for the rake [.gem] file and accordingly update it since I realized that when I downloaded the package [and it threw that error], it was using an old rake. The latest version of ‘rake’ can be manually download from here.

    • geetha
    • Posted February 1, 2010 at 7:51 am
    • Permalink

    Below is my slackbuild which is created the rails package of slackware OS. The dependencies from vendor/rails. let me know how to install railties files.

    After installed my built package, the files are missing
    Config
    – boot.rb, database.yml, environment.rb and routes.rb
    Public
    – 404.html,500.html,dispatch.fcgi,favicon.ico,index.html,422.html,
    dispatch.cgi
    and dispatch.rb

    Script
    – about, console, dbconsole, destroy, generate, plugin,
    runner,server
    Test
    -test_helper.rb

    Its means that railties files are installed. Please help me..

    CWD=`pwd`

    SOURCE=rails.com

    PRODUCT=rails

    VERSION=2.3.3

    ARCH=${ARCH:-i386}

    BUILD=${BUILD:-1}

    RUBY=/usr/bin/ruby
    PKG=/frm/ruby/1.8.6/lib/ruby/site_ruby
    SITE_RUBY=/pkg/ruby-lang.org/ruby/1.8.6/lib/ruby/site_ruby/1.8
    INSTALLDIR=$CWD/package/rails

    mkdir -p $INSTALLDIR

    cd $CWD

    rm -rf rails-$VERSION

    tar xzvf rails-$VERSION.tgz

    cd rails/vendor/rails

    cd actionmailer

    $RUBY install.rb

    mkdir -p $INSTALLDIR$PKG/bin
    #mv /pkg/ruby-lang.org/ruby/1.8.6/bin/mongrel_rails $INSTALLDIR$PKG/bin/
    mkdir -p $INSTALLDIR$PKG/1.8
    mv $SITE_RUBY/action_mailer $INSTALLDIR$PKG/1.8/
    mv $SITE_RUBY/action_mailer.rb $INSTALLDIR$PKG/1.8

    cd $CWD

    cd rails/vendor/rails/actionpack

    $RUBY install.rb

    mv $SITE_RUBY/action_controller $INSTALLDIR$PKG/1.8/
    mv $SITE_RUBY/action_controller.rb $INSTALLDIR$PKG/1.8/
    mv $SITE_RUBY/action_view $INSTALLDIR$PKG/1.8/
    mv $SITE_RUBY/action_view.rb $INSTALLDIR$PKG/1.8/

    cd $CWD

    cd rails/vendor/rails/activerecord

    $RUBY install.rb

    mv $SITE_RUBY/active_record/ $INSTALLDIR$PKG/1.8/
    mv $SITE_RUBY/active_record.rb $INSTALLDIR$PKG/1.8/

    cd $CWD

    cd rails/vendor/rails/activeresource

    cp -r lib/active_resource/ $INSTALLDIR$PKG/1.8/
    cp lib/active_resource.rb $INSTALLDIR$PKG/1.8/
    cp lib/activeresource.rb $INSTALLDIR$PKG/1.8/

    cd $CWD

    cd rails/vendor/rails/activesupport

    mv $SITE_RUBY/active_support/ $INSTALLDIR$PKG/1.8/
    mv $SITE_RUBY/active_support.rb $INSTALLDIR$PKG/1.8/

    cd $CWD

    cd rails/vendor/rails/railties

    cp -r bin/* $INSTALLDIR$PKG/bin/
    cp -r lib/* $INSTALLDIR$PKG/1.8/

    mkdir -p $INSTALLDIR/install
    zcat $CWD/doinst.sh.gz > $INSTALLDIR/install/doinst.sh

    cd $INSTALLDIR
    makepkg -l y -p -c n $CWD/rails-$VERSION-$ARCH-$BUILD.tgz


One Trackback/Pingback

  1. By Andrew’s Blog : Ruby On Rails on 07 Apr 2009 at 11:47 am

    [...] hunted around and found this tutorial, however that didn’t totally solve my issues. I found that issuing the “gem install [...]

Follow

Get every new post delivered to your Inbox.