Installing Ruby, I Exported Bash Profile Twice

Hell All,

Yep, I’m new to Ruby. I was following the Lynda.com tutorial and
seemed to exported the bash profile twice. All I know is that it
looks nothing like what the tutorial suggest I should have and I know
setting up the correct path is critical to getting everything
installed.

Can anyone perhaps help?

Here’s what it looks like:

export PATH=“/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:
$PATH”

export PATH=“/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:
$PATH”

oS:~ OSXyZ$ echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/bin:/
usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/
local/bin:/usr/X11/bin:/usr/local/git/bin
oS:~ OSXyZ$

Just run railsready, and your mac will be set up fully.

Dheeraj K.

Hi everyone,

I’m running MacOSX Lion… I use ports to manage packages… I have
ruby, gem and rails installed… I also have XCode installed.

I’ve been having problem occurring when updating gems:

“Invalid gemspec in
[/Library/Ruby/Gems/1.8/specifications/json-1.6.1.gemspec]: invalid
date format in specification: “2011-09-18 00:00:00.000000000Z””

My understanding is that the problem is that i’m running too old a
version of ruby:

jfreeman$ /opt/local/bin/ruby --version
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11]

jfreeman$ /usr/bin/ruby --version
ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]

Here’s info about gem and rails:

jfreeman$ gem --version
Invalid gemspec in
[/Library/Ruby/Gems/1.8/specifications/json-1.6.1.gemspec]: invalid
date format in specification: “2011-09-18 00:00:00.000000000Z”
1.8.13

jfreeman$ rails --version
Rails 2.3.5

So… anyway… i decided to run railsready which, I believe, installed:
Ruby 1.9.3-p0.

"…
=> Extracting Ruby 1.9.3-p0
==> done…

=> Building Ruby 1.9.3-p0 (this will take a while)…
==> done…
…"

the issue is that I cannot actually find this version of Ruby and/or
connect it to gem and rails so I really have the environment I think I
should have.

Thanks in advance for any advice/help.

Best wishes,

Joshua

On Sat, Dec 24, 2011 at 5:16 AM, Dheeraj K.
[email protected] wrote:

seemed to exported the bash profile twice. All I know is that it


You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.