3

So very new to rails. I managed to install ruby and then rails framework on Fedora 17.

Here are the summary of steps I did to install ruby and rails framework:

  1. yum install make openssh-clients gcc libxml2 libxml2-devel libxslt libxslt-devel python-devel

  2. sudo bash -s stable < <(curl -sk https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

  3. source /etc/profile.d/rvm.sh

  4. rvm install ruby-1.9.2-p290 --with-openssl

  5. rvm use ruby-1.9.2-p290 --default

  6. rvm all do gem update --system

  7. rvm all do gem install rails

Well.. So far so good.. Just wanted to test if the installation was perfect. I created a hello world sample (test.rb) to test ruby installation

#!/usr/bin/env ruby

puts "hello World"

and running this with ./test.rb it works fine.

Now when I was test rails framework installation by creating a new project using

rails new demo

I receive the error

Fetching gem metadata from https://rubygems.org/.Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!

What am I missing here? Or what have I done additionally which I was not suppose to do? Looked into https://github.com/carlhuda/bundler/blob/master/ISSUES.md. Could not figure out. Has anyone come across similar issue and found a way to deal with it?

Todd A. Jacobs
  • 81,402
  • 15
  • 141
  • 199
Ashwin
  • 1,942
  • 4
  • 30
  • 59

2 Answers2

0

Double check that you have these packages installed...

git-core curl make bzip2 gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel libxslt-devel sqlite sqlite-devel openssl openssl-devel

You might want to check out this blog post to see if it helps you at all.

kafuchau
  • 5,573
  • 7
  • 33
  • 38
0

Are you using Xcode 4.1 by any chance? Seems like a lot of people have run into bundler issues after upgrading to Lion (but neglecting to upgrade Xcode as well...).

As in this thread.

Community
  • 1
  • 1