I am brandnew to this and have a few questions regarding the installation

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:-)

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

  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.

  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.

Anyone knows what this means and what I can do to finalize the
installation?

Thanks so much!
Best,
Hanna

before giving the installation command,

use sudo permission

Eg : To install rails

    sudo gem install rails -v "3.2.0"

Best Regards,

Gopinath M

Ruby on Rails Developer

Contact : +91-9994652146

Skype Id : gopinath.murugan

Email : [email protected]

On Fri, Jun 27, 2014 at 2:23 PM, Hanna K.
[email protected]

On 27 June 2014 09:53, Hanna K. [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:-)

Have a look at the tutorial railstutorial.org, (free to use online)
which I think includes
instructions for installing rails on Mac. Then work right through the
tutorial which will give you a basic understanding of Rails.

Colin

Juhuu! That was it, thanks so much:-) Now everything looks good!

On Fri, Jun 27, 2014 at 1:53 AM, Hanna K.
[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.

sed: 1: “#^system_name=# { s#^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.

  1. I installed Ruby successfully (ruby 2.0.0p451)

  2. 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.

  1. 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: Docs - 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 B.'s RailsCasts
#310 Getting Started with Rails - RailsCasts is a free
episode (among many) for getting up and running.

Thanks so much!

Best of luck!

Crud, something got deleted…

(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

… You should open up Terminal Preferences (command-comma) and on the
Startup tab, ensure that “Shells open with: Default login shell” is
selected.

On Fri, Jun 27, 2014 at 6:46 AM, tamouse pontiki
[email protected]