Discussion:
can I uninstall/reinstall?
Holly Fortenberry
2007-09-20 13:22:48 UTC
Permalink
Hi,

I just installed Locomotive on my mac os x. Afterwards, I opened
Terminal and typed: ruby ~v to find it and it appeared. Yea! Then,
when trying to do the same with rails, it was not found.

In a search for a fix, I found a post online which suggested having
textmate open rails from within it so I tried this and Voila! my rails
appeared to install, BUT it installed in the wrong place. I need to
move my whole rails install into the correct folder and it is not
letting me do that via the cp command in terminal. Every time I try to
do a cp and paste in the old location to modify it, terminal starts
running code before I even hit the "enter" button.

I would like to just start over. So far, I have not installed gems. Is
it advisable to try to move the Locomotive app and folders to the trash
and run the install again?

Also, if mysql is already on my computer, do I need to reinstall that
after the RoR reinstall?

thank you,
Holly


---

Holly

http://www.hollyfortenberry.com

*You have probably already done this; but, if not, please consider the impact on the environment before printing this email.*
Lori M Olson
2007-09-20 17:39:11 UTC
Permalink
Post by Holly Fortenberry
Hi,
I just installed Locomotive on my mac os x. Afterwards, I opened
Terminal and typed: ruby ~v to find it and it appeared. Yea!
Then, when trying to do the same with rails, it was not found.
There is a default ruby, which is incompatible with Rails, installed
by default on Mac OS X under /user/bin. If you just open a terminal,
this is what you get. If you type "which ruby" from the terminal it
will tell you where it found ruby.

You need to start Locomotive, configure a Rails application, and then
open a terminal for that app FROM Locomotive. Then you will be using
the Locomotive bundle ruby/rails. In that terminal, if you type
"which ruby" you will see the path to the Locomotive bundle version
of ruby. And the "rails" command will also be available.
Post by Holly Fortenberry
In a search for a fix, I found a post online which suggested having
textmate open rails from within it so I tried this and Voila! my
rails appeared to install, BUT it installed in the wrong place.
I need to move my whole rails install into the correct folder and
it is not letting me do that via the cp command in terminal. Every
time I try to do a cp and paste in the old location to modify it,
terminal starts running code before I even hit the "enter" button.
Again, you need to start Textmate from the Locomotive app, if you
want to configured to use the Locomotive bundle version of ruby.
Post by Holly Fortenberry
I would like to just start over. So far, I have not installed
gems. Is it advisable to try to move the Locomotive app and
folders to the trash and run the install again?
Also, if mysql is already on my computer, do I need to reinstall
that after the RoR reinstall?
thank you,
Holly
---
Holly
http://www.hollyfortenberry.com
*You have probably already done this; but, if not, please consider
the impact on the environment before printing this email.*
_______________________________________________
Locomotive-users mailing list
http://lists.raaum.org/mailman/listinfo/locomotive-users
Holly Fortenberry
2007-09-21 00:42:52 UTC
Permalink
Hi Lori,

Thank you so much for your response. Below is what I have done. I am
trying not to leave out any steps (I used to work in tech support for a
software company so I understand to give as much info and be as literal
as possible).

As you suggested, I typed "which ruby" and got the following (which
looks to be the right version but wrong location).

-------
Last login: Thu Sep 20 05:36:30 on ttyp1
Welcome to Darwin!
-bash: cd: /Users/hollyfortenberry/Pictures/myphotos: No such file or
directory
holly-fortenberrys-computer:~ hollyfortenberry$ which ruby
/Volumes/Locomotive2/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/bin/ruby
holly-fortenberrys-computer:~ hollyfortenberry$

------

Please note that my shell seems to be in my Pictures folder, I think.
The reason it does this is because, immediately after I installed
Locomotive, i followed a tip at http://aralbalkan.com/758. The tip
suggested I create an application and open Terminal to change the
location. So, I did the following steps in that vein:

1 - open brand new Locomotive
2 - applications - create new
3 - typed in a name for a new app that I wanted to create (called
Pictures) and typed in the folder location.

Then, somehow, from that, rails seems to have installed itself in that
location.

If you wouldn't mind looking at that tip, you will see what I mean.

Now, when I type "ruby", my terminal just sits there (maybe it is
running??). I didn't realize you can run ruby from locomotive. I
haven't gotten that far yet. I thought I should try to get a good
install before getting too far into how to use the apps so I don't
compound any issues.

So far, ALL I have done is:

1 - install Locomotive
2 - typed ruby in Terminal and found it (version 1.8.1 I think)
3 - typed rails and did not find it
4 - implemented the tip at http://aralbalkan.com/758
5 - and now what you have suggested by checking which ruby

Now, when I type "ruby ~v", I get the following error in Terminal:

_______

Last login: Thu Sep 20 17:08:31 on ttyp1
Welcome to Darwin!
-bash: cd: /Users/hollyfortenberry/Pictures/myphotos: No such file or
directory
holly-fortenberrys-computer:~ hollyfortenberry$ ruby ~v
ruby: No such file or directory -- ~v (LoadError)
holly-fortenberrys-computer:~ hollyfortenberry$ ruby ~v
ruby: No such file or directory -- ~v (LoadError)
holly-fortenberrys-computer:~ hollyfortenberry$
_____


Finally, in response to your suggestion that I am using the wrong Ruby,
I think I am too. When I do as you suggested and try to open Terminal
from within my Locomotive, I receive a Locomotive error warning me that
if I continue, I may be using the wrong Ruby and my app may not work
properly. In addition, the shell results above suggest that neither
ruby is available.

I am afraid to do too much and compound any problem. Is it not a good
idea for me to just do an uninstall/reinstall?

thank you,
Holly
Post by Lori M Olson
Post by Holly Fortenberry
Hi,
I just installed Locomotive on my mac os x. Afterwards, I opened
Terminal and typed: ruby ~v to find it and it appeared. Yea!
Then, when trying to do the same with rails, it was not found.
There is a default ruby, which is incompatible with Rails, installed
by default on Mac OS X under /user/bin. If you just open a terminal,
this is what you get. If you type "which ruby" from the terminal it
will tell you where it found ruby.
You need to start Locomotive, configure a Rails application, and then
open a terminal for that app FROM Locomotive. Then you will be using
the Locomotive bundle ruby/rails. In that terminal, if you type
"which ruby" you will see the path to the Locomotive bundle version of
ruby. And the "rails" command will also be available.
Post by Holly Fortenberry
In a search for a fix, I found a post online which suggested having
textmate open rails from within it so I tried this and Voila! my
rails appeared to install, BUT it installed in the wrong place. I
need to move my whole rails install into the correct folder and it is
not letting me do that via the cp command in terminal. Every time I
try to do a cp and paste in the old location to modify it, terminal
starts running code before I even hit the "enter" button.
Again, you need to start Textmate from the Locomotive app, if you want
to configured to use the Locomotive bundle version of ruby.
Post by Holly Fortenberry
I would like to just start over. So far, I have not installed gems.
Is it advisable to try to move the Locomotive app and folders to the
trash and run the install again?
Also, if mysql is already on my computer, do I need to reinstall that
after the RoR reinstall?
thank you,
Holly
---
Holly
http://www.hollyfortenberry.com
*You have probably already done this; but, if not, please consider
the impact on the environment before printing this email.*
_______________________________________________
Locomotive-users mailing list
http://lists.raaum.org/mailman/listinfo/locomotive-users
_______________________________________________
Locomotive-users mailing list
http://lists.raaum.org/mailman/listinfo/locomotive-users
--
Holly

http://www.hollyfortenberry.com

*You have probably already done this; but, if not, please consider the impact on the environment before printing this email.*
Alex Satrapa
2007-09-21 02:30:18 UTC
Permalink
Post by Holly Fortenberry
Thank you so much for your response.
I've responded to Holly off-list, It appears to me that the issue
comes down to font face confusion between "-" and "~", amongst other
things.

Alex

Alex Satrapa
2007-09-20 23:42:32 UTC
Permalink
Every time I try to do a cp and paste in the old location to modify
it, terminal starts running code before I even hit the "enter" button.
Just make sure you only copy up to the last character, and not the
line-feed as well. When you paste the line-feed, the terminal
interprets that as you pressing "Enter".
Also, if mysql is already on my computer, do I need to reinstall
that after the RoR reinstall?
No, you won't need to reinstall MySQL. The most you will need to do
is the usual database drop/create.

Just an extra note - when launching TextMate or Terminal from
Locomotive, I've found it works much better if you "Start" the Rails
application from within Locomotive first.

The Terminal window that Locomotive opens should have some text
automatically pasted in, along the lines of "source /private/var/tmp/
folders.501/TemporaryItems/88D7A..."

If you don't open Terminal from a running Locomotive application,
% ruby -v
ruby 1.8.2 (2004-12-25) [universal-darwin8.0]
% ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.9.1]
Hope this helps
Alex
Holly Fortenberry
2007-09-21 00:41:17 UTC
Permalink
Thank you for the tips Alex. I did not realize about the copy/paste
line-feed character issue although that makes good sense. I am sure
that must be what happen. I will try that again.

Also, I didn't realize about launching apps from within Locomotive. I
planned to study how to use it once I got a good install. I am afraid
to go too far with the apps in case I further mess up my install. I
guess I need to learn more about Locomotive. Honestly, I thought it was
just an install app, like Fink Commander. I didn't realize I was to use
it every time I use ruby on rails. No wonder.

thank you much,
Holly
Post by Alex Satrapa
Every time I try to do a cp and paste in the old location to modify
it, terminal starts running code before I even hit the "enter" button.
Just make sure you only copy up to the last character, and not the
line-feed as well. When you paste the line-feed, the terminal
interprets that as you pressing "Enter".
Also, if mysql is already on my computer, do I need to reinstall that
after the RoR reinstall?
No, you won't need to reinstall MySQL. The most you will need to do is
the usual database drop/create.
Just an extra note - when launching TextMate or Terminal from
Locomotive, I've found it works much better if you "Start" the Rails
application from within Locomotive first.
The Terminal window that Locomotive opens should have some text
automatically pasted in, along the lines of "source
/private/var/tmp/folders.501/TemporaryItems/88D7A..."
If you don't open Terminal from a running Locomotive application,
% ruby -v
ruby 1.8.2 (2004-12-25) [universal-darwin8.0]
% ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.9.1]
Hope this helps
Alex
_______________________________________________
Locomotive-users mailing list
http://lists.raaum.org/mailman/listinfo/locomotive-users
--
Holly

http://www.hollyfortenberry.com

*You have probably already done this; but, if not, please consider the impact on the environment before printing this email.*
Loading...