Tags
-
Feedback
Cristiano on Scanner [HP G2410] on Ubuntu? … Armand Pham on Scanner [HP G2410] on Ubuntu? … Aditya Pratap V. on Scanner [HP G2410] on Ubuntu? … geetha on Installing stand-alone Rails… гей портал знакомств on Getting Started With AJAX -
Top Posts
-
Top Clicks
Installing stand-alone Rails package
- June 21, 2008 – 5:12 pm
- Posted in Ruby on Rails (RoR)
- Tagged programming, rails, ruby
6 Comments
Thank you very much. I used your tutorial successfully.
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.
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!
“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
@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.
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
[...] hunted around and found this tutorial, however that didn’t totally solve my issues. I found that issuing the “gem install [...]