On Fri, Jun 27, 2014 at 1:53 AM, Hanna Kloetzer <[email protected]>
wrote:

> Hi everybody!
>
> I am founding my own internet business and even though it is not on me to
> code the web application, I set myself the goal to learn Ruby on Rails to
> better understand what our programmer is doing. I tried to install it
> yesterday on my Mac (Macbook Pro 10.9.3) and I got a few error messages
> that I cannot explain. I would very much appreciate your help on that - my
> programmer is on vacation for 3 weeks, otherwise I would have asked him:-)
>
>
Great! Good luck with it all.


> That's what I did:
>
> 1. I downloaded Xcode 5 sucessfully
>
> 2. I searched for the Terminal, found it and installed the RVM
> successfully, but it always gave me these messages, which I cannot explain:
> sed: 1: "\#^system_type=# { s#^s ...": extra characters at the end of p
> command
> sed: 1: "\#^system_type=# { s#^s ...": extra characters at the end of p
> command
> sed: 1: "\#^system_name=# { s#^s ...": extra characters at the end of p
> command
> sed: 1: "\#^system_name=# { s#^s ...": extra characters at the end of p
> command
> sed: 1: "\#^system_name_lowercas ...": extra characters at the end of p
> command
> sed: 1: "\#^system_name_lowercas ...": extra characters at the end of p
> command
> sed: 1: "\#^system_version=# { s ...": extra characters at the end of p
> command
> sed: 1: "\#^system_version=# { s ...": extra characters at the end of p
> command
> sed: 1: "\#^system_arch=# { s#^s ...": extra characters at the end of p
> command
> sed: 1: "\#^system_arch=# { s#^s ...": extra characters at the end of p
> command
>
>
After you've installed RVM, you need to log out of your Terminal and back
in in order to completely get RVM working on your system. What follows
looks like you didn't quite complete that operation.


> 3. I installed Ruby successfully (ruby 2.0.0p451)
>
> 4. I tried to update the gem package but it gave me this message, which I
> cannot explain:
> Updating installed gems
> Updating CFPropertyList
> ERROR:  While executing gem ... (Gem::FilePermissionError)
>     You don't have write permissions for the /Library/Ruby/Gems/2.0.0
> directory.
>

This usually indicates that your RVM install isn't complete -- RVM sets up
your system to install things locally for you user, while this is trying to
install things for the entire system. While the system-wide ruby
environment is great if you do want to run ruby programs and such as part
of your system, it's not the best for doing development, where one may have
need for different versions of software depending on the need of the
applications being developed.


>
> 5. I tried to install Rails 3.2.0 with this command: gem install rails
> --version '~> 3.2.0'. Again, I got an error message
> Fetching: multi_json-1.10.1.gem (100%)
> ERROR:  While executing gem ... (Gem::FilePermissionError)
>     You don't have write permissions for the /Library/Ruby/Gems/2.0.0
> directory.
>
>
Same thing here.


> Anyone knows what this means and what I can do to finalize the
> installation?
>
>
The RailsBridge InstallFest and Intro to Rails are great for getting
bootstrapped into learning Rails: http://docs.railsbridge.org/docs/

Gopinath's suggestion to use the `sudo` command to install things is what
you'd do withOUT RVM, to install something system-wide. This is often the
wrong choice for development, which is why you install RVM at the first.
While no damage has been done by what you did, complete the final step of
the RVM install and restart your Terminal, and check to see that rvm is
actually a bash function when you are running in Terminal. At the end of
the script, it will have told you it modified some of your Terminal
initialization files, and will have told you the test to run to make sure
it's all there:

(enter at shell prompt): type rvm | head -1
(output): rvm is a function

If you get something else, and you've restarted your Terminal, it's likely
your Terminal is not configured to run bash as a login shell. You

Colin's suggestion to run through Hartl's tutorial is an excellent one.

Ryan Bates's RailsCasts
http://railscasts.com/episodes/310-getting-started-with-rails is a free
episode (among many) for getting up and running.



> Thanks so much!
>

Best of luck!

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAHUC_t9qtSb9mcnZCbSk13xpgXLyU2fpJ9opCZtsO2wzwfnrcw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to