You are not logged in.
I didn't see it anywhere succinctly asked, so let me just ask it here plainly:
Has anyone been able to run Rails 2.0 with (mysql|postgres) on an Eee? I Rails can be pretty demanding resources wise, and I was wondering if anyone had actually had success with this.
Thanks,
Steven
Offline
Yes I have Rails 2.0.2 working with Postgres 7.4 on my eeePC and I've tested it. I just updated the wiki with my installation notes:
http://wiki.eeeuser.com/ruby_on_rails
Offline
I've tried various commands to get rails running, preferably 2.0.2 with sqlite3.
I've seen the wiki entry for rails but I run up against errors. I thought I got close, close enough to issue the command "rails foo" and then "cd foo && ./script/server" which gets me running on my eeepc. Unfortunately I don't get database functionality, some error about sqlite.
Anyone else happen to have an alternative guide as to the command to issue to get a properly installed rails setup. I am running default xandros (but with a 2 gig supporting kernel and the lovely fluxbox)!
Offline
I could not get get Ruby Gem to install Rails (EEEPC 4Gb Surf runnning Xandros) and tried numerous suggestions, some of which were probably wild goose chases. However, I haven't tested each step independently (how do you know if you have REALLY uninstalled something?) so I can't say which are necessary.
I always got this error
custom_require.rb:27:in `gem_original_require': no such file to load -- zlib (LoadError)
when I tried to do
sudo gem install rails
The first part of the solution was to follow these instructions
'Adding Additional Software Repositories' -
1. http://wiki.eeeuser.com/addingxandrosre … positories
...except I added some extra lines to sources.list at some point, I can't
remember exactly when or why. My /etc/apt/sources.list looks like this:
deb http://update.eeepc.asus.com/p701 p701 main
deb http://update.eeepc.asus.com/p701/en p701 main
deb http://xnv4.xandros.com/xs2.0/upkg-srv2 etch main contrib non-free
deb http://dccamirror.xandros.com/dccri/ dccri-3.0 main
deb http://www.geekconnection.org/ xandros4 main
deb http://download.tuxfamily.org/eeepcrepos/ p701 main etch
deb http://us.archive.ubuntu.com/ubuntu dapper universe
deb-src http://us.archive.ubuntu.com/ubuntu dapper universe
however, I did create /etc/apt/preferences
EXACTLY as described in the outstanding
http://wiki.eeeuser.com/addingxandrosre … positories
The next part of the solution was the tenth link Google found:
http://www.google.com/search?hl=en& … tnG=Search
which was
2. http://www.uilshoek14.com/rails
It says get ruby-zib from
http://raa.ruby-lang.org/project/ruby-zlib
and install it manually
(tar xvfz ruby-zlib-xxx.tgz
cd ruby-zlib-xxx
ruby extconf.rb
make
sudo make install)
Reinstall RubyGems (sudo ruby setup.rb) then
sudo gem install rals
When I created a Rails project and tried to run script/server I got
rails-2.0.2/lib/initializer.rb:159:in `require_frameworks': no such file to load -- openssl (RuntimeError).
The next step was found here: 3. http://www.slashdotdash.net/articles/20 … esity-7-04
sudo apt-get install libopenssl-ruby
sudo apt-get install libssl0.9.8
cd ~/src/ruby-1.8.6/ext/openssl
ruby extconf.rb
this gave the following error
=== Checking for required stuff... ===
checking for openssl/ssl.h... no
=== Checking for required stuff failed. ===
Makefile wasn't created. Fix the errors above.
The fourth step I found at
4. http://www.ruby-forum.com/topic/90083
which added libssl-dev to the things you need to install
sudo apt-get install libssl-dev
then
cd into ruby-1.8.6/ext/openssl/ and do
ruby extconf.rb
DON'T cd ../.. like some of the posts say
make --- IGNORE Make whinging that it doesn't have anything to do...
sudo make install
rails my-rails-app
cd my-rails-app
script/server &
http://localhost:3000/
YEEHAW!
And the final final step - to get Rails to do anything useful you need sqlite -
get the source from
5. http://www.sqlite.org/download.html
get sqlite-amalgamation-3.5.9.zip or similar
unzip, cd into sqlite-xxx, ./configure, make, sudo make install, then
sudo gem install sqlite3-ruby
and restart script/server
Last edited by pdxrod (2008-05-15 9:46:42 pm)
Offline
In order to get Rails 2.1.1 working on my EEEPC, I had a lot more hassle.
Whenever I tried to
sudo gem install rails
it complained about a 'broken pipe' on the way to gems.rubyforge.org
or some such network issue
...so I zipped up the whole gems/ folder on my Ubuntu desktop PC, which does
have Rails 2.1.1, ftpd it to my website, ftpd it down to my EEEPC, unzipped it
on a spare USB drive, deleted /usr/local/lib/ruby/gems, copied gems/ to
/usr/local/lib/ruby, and Rails 2.1.1 works fine.
Offline
See
http://rubyjunction.us/articles/10
Last edited by pdxrod (2009-01-14 12:42:33 am)
Offline
I tried doing what pdxrod did, but got a different error earlier in the path:
installed ruby-zlib-0.6.0.tar.gz
then got this error:
eeepc-edwardwat:/usr/lib/ruby/ruby-zlib-0.6.0> ruby extconf.rb
extconf.rb:7:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:7
I openened extconf.rb and found that it wants rbconf.rb and mkmf....copied rbconf.rb into the pathway,but what is the story with the make file?
<linux newbie
Offline