Forum: Ruby on Rails I am brandnew to this and have a few questions regarding the installation

94efda61a3b73d2be9fd26dcf44379ab?d=identicon&s=25 Hanna Kloetzer (Guest)
on 2014-06-27 12:35
(Received via mailing list)
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
B2140df2042cd94c58a05783e65cbcb9?d=identicon&s=25 M,Gopi M.gopinath (Guest)
on 2014-06-27 12:43
(Received via mailing list)
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 : gopi170987@gmail.com






On Fri, Jun 27, 2014 at 2:23 PM, Hanna Kloetzer
<hanna.kloetzer@gmail.com>
4c6bde00168d595053c09aac7e487f8e?d=identicon&s=25 Colin Law (Guest)
on 2014-06-27 13:21
(Received via mailing list)
On 27 June 2014 09:53, Hanna Kloetzer <hanna.kloetzer@gmail.com> 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
94efda61a3b73d2be9fd26dcf44379ab?d=identicon&s=25 Hanna Kloetzer (Guest)
on 2014-06-27 15:03
(Received via mailing list)
Juhuu! That was it, thanks so much:-) Now everything looks good!
Aa082c8b00a50928e5860dcd70bf2368?d=identicon&s=25 tamouse m. (tamouse_m)
on 2014-06-27 15:48
(Received via mailing list)
On Fri, Jun 27, 2014 at 1:53 AM, Hanna Kloetzer
<hanna.kloetzer@gmail.com>
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.


> 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... is a free
episode (among many) for getting up and running.



> Thanks so much!
>

Best of luck!
Aa082c8b00a50928e5860dcd70bf2368?d=identicon&s=25 tamouse m. (tamouse_m)
on 2014-06-27 15:52
(Received via mailing list)
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
<tamouse.lists@gmail.com>
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.