Newbie install rail on fedora 8

Hi there,

I’m a newbie, and would really appreciate if someone could give me a
pointer to
a solution to rail installation on fedora 8 below. I know Ubuntu is
probably
a lot easier, but I have a need to get this to work on fedora 8.


-bash-3.2$ sudo gem install rails --include-dependencies
INFO: gem install -y is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
ERROR: Error installing rails:
actionpack requires rack (~> 1.1.0, runtime)

-bash-3.2$ sudo gem install rack -v 1.1.0
ERROR: could not find gem rack locally or in a repository

-bash-3.2$ sudo gem install rack
Successfully installed rack-1.2.1
1 gem installed
Installing ri documentation for rack-1.2.1…
Installing RDoc documentation for rack-1.2.1…

-bash-3.2$ gem install rails -y
INFO: gem install -y is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
ERROR: Error installing rails:
actionpack requires rack (~> 1.1.0, runtime)


Thank you very much,

Roger L.

On Sun, Aug 8, 2010 at 10:40 AM, Roger L. [email protected] wrote:

-bash-3.2$ sudo gem install rails --include-dependencies

-bash-3.2$ sudo gem install rack -v 1.1.0

-bash-3.2$ sudo gem install rack

-bash-3.2$ gem install rails -y

Uh, see any differences there? :slight_smile:

Or to put it another way: do sudo gem env and gem env return the
same results?


Hassan S. ------------------------ [email protected]
twitter: @hassan

Thanks Hassan. In my case, both commands show the same. However, I might
just dig myself in a hole here. After trying a couple commands, I now
have a new problem.

-bash-3.2$ sudo gem install rails --include-dependencies
INFO: gem install -y is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
ERROR: could not find gem rails locally or in a repository

-bash-3.2$ sudo gem update
Updating installed gems
ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
bad response Moved Permanently 301
(http://gems.rubyforge.org/latest_specs.4.8)

-bash-3.2$ sudo gem env
RubyGems Environment:

  • RUBYGEMS VERSION: 1.2.0
  • RUBY VERSION: 1.8.6 (2008-08-11 patchlevel 287) [i386-linux]
  • INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
  • RUBY EXECUTABLE: /usr/bin/ruby
  • EXECUTABLE DIRECTORY: /usr/bin
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86-linux
  • GEM PATHS:
    • /usr/lib/ruby/gems/1.8
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :benchmark => false
    • :backtrace => false
    • :bulk_threshold => 1000
  • REMOTE SOURCES:

-bash-3.2$ gem env
RubyGems Environment:

  • RUBYGEMS VERSION: 1.2.0
  • RUBY VERSION: 1.8.6 (2008-08-11 patchlevel 287) [i386-linux]
  • INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
  • RUBY EXECUTABLE: /usr/bin/ruby
  • EXECUTABLE DIRECTORY: /usr/bin
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86-linux
  • GEM PATHS:
    • /usr/lib/ruby/gems/1.8
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :benchmark => false
    • :backtrace => false
    • :bulk_threshold => 1000
  • REMOTE SOURCES:

Thanks,
Roger L.

fedora 8?
That was my first peak. Werewolf is it?

I’m on fedora 13. When I was on 12 I was able to use the rails guides to
complete their tuts; but, at the time I was unaware of … a lot. How
strange
everything worked.

Anywho. This makes sense:
http://railscasts.com/episodes/200-rails-3-beta-and-rvm

http://railscasts.com/episodes/200-rails-3-beta-and-rvmThis is fedora
specific (not what your asking; but, still informative):
http://net.tutsplus.com/tutorials/ruby/setting-up-a-rails-server-and-deploying-with-capistrano-on-fedora-from-scratch/

http://net.tutsplus.com/tutorials/ruby/setting-up-a-rails-server-and-deploying-with-capistrano-on-fedora-from-scratch/I
usually just su - and operate as root for all the setup stuff. Totally
not
answering your question; but, would like to see the answer.

It would be nice if f14 and ror3 had a one command fresh start. It
sounds
like we need a compatibility harmony wheel…

Thank you all.

Hassan,
The commands gave me other errors, but the link eventually pointed me to
this page to download rubygem manually and reinstall.

http://rubygems.org/pages/download#formats

It works fine after that. Thanks again.

Roger L.

On Sun, Aug 8, 2010 at 1:26 PM, Roger L. [email protected] wrote:

-bash-3.2$ sudo gem env
RubyGems Environment:

  • RUBYGEMS VERSION: 1.2.0

Yikes, that’s old. Do this:

$ sudo gem --source http://gems.github.com
$ sudo gem --source http://gemcutter.org/
$ sudo gem update --system

and then try your rails install again.


Hassan S. ------------------------ [email protected]
twitter: @hassan