i now see i misstyped the instructions to step 2. here it is, corrected 2) type the command "wc -l `which rails`" -- if you can't figure out the quoting just use the result of step 1. i.e. on my system "wc -l /opt/local/bin/rails"
the idea is to use the wc command to get the number of lined in the rails script you are calling by default. the quoting used in *wc -l `which rails` * an open single quote - on a mac keyboard it's found on the key to the left of number one. it's a bit of unix shell magic that causes the quoted text to be evalulated as a command and the results to be handed off the the *wc -l* command as argument(s). thus, on my system, it becomes *wc -l /opt/local/bin/rails*. in your case *wc -l `which rails` *would be equivalent to *wc -l /home/mwr/.rvm/gems/ruby-1.9.3-p429/bin/rails* and i'll be surprised if the result is much greater than 6. i don't use rvm so cannot help you troubleshoot rvm specific errors. i can say that you don't want to be creating your new app anywhere inside the *.../.rvm/...* directory tree. think of this as a managed software repository - anything that gets changed there is done through rvm. make yourself a working directory, cd there and run the *rails new* command. something like: * mkdir /home/mwr/RailsApps* *cd /home/mwr/RailsApps rails new my_new_app * On Friday, May 31, 2013 11:28:19 PM UTC-4, Ruby-Forum.com User wrote: > > Hi Rick, > thanks! I tried carrying out those instructions: heres what i got - > mwr@mwr-Ubuntu:/home$ which rails > /home/mwr/.rvm/gems/ruby-1.9.3-p429/bin/rails > > > mwr@mwr-Ubuntu:/home$ which > /home/mwr/.rvm/gems/ruby-1.9.3-p429/bin/rails > /home/mwr/.rvm/gems/ruby-1.9.3-p429/bin/rails > > I suppose im having trouble with step 2 of your directions. However its > nice to have a kind of explanation of whats going on. Again, excuse my > illiteracy on this, but it look like maybe i do have rails installed in > my home directory? > > **just discovered by accident I can do this: > mwr@mwr-Ubuntu:/home$ which > /home/mwr/.rvm.gems/ruby-1.9.3-p429/bin/rails > mwr@mwr-Ubuntu:/home$ wc -l 'which rails' > wc: which rails: No such file or directory > mwr@mwr-Ubuntu:/home$ cd .. > mwr@mwr-Ubuntu:/$ which rails > /home/mwr/.rvm/gems/ruby-1.9.3-p429/bin/rails > mwr@mwr-Ubuntu:/$ which /home/mwr/.rvm/gems/ruby-1.9.3-p429/bin/rails > /home/mwr/.rvm/gems/ruby-1.9.3-p429/bin/rails > mwr@mwr-Ubuntu:/$ rails new path/here > create > /home/mwr/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/fileutils.rb:247:in > `mkdir': Permission denied - /path (Errno::EACCES) > from > /home/mwr/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/fileutils.rb:247:in > `fu_mkdir' > from > /home/mwr/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/fileutils.rb:221:in > `block (2 levels) in mkdir_p' > from > /home/mwr/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/fileutils.rb:219:in > `reverse_each' > from > /home/mwr/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/fileutils.rb:219:in > `block in mkdir_p' > from > /home/mwr/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/fileutils.rb:205:in > `each' > from > /home/mwr/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/fileutils.rb:205:in > `mkdir_p' > from > /home/mwr/.rvm/gems/ruby-1.9.3-p429/gems/thor-0.18.1/lib/thor/actions/empty_directory.rb:51:in > > > `block in invoke!' > from > /home/mwr/.rvm/gems/ruby-1.9.3-p429/gems/thor-0.18.1/lib/thor/actions/empty_directory.rb:117:in > > > `call' > from > /home/mwr/.rvm/gems/ruby-1.9.3-p429/gems/thor-0.18.1/lib/thor/actions/empty_directory.rb:117:in > > > `invoke_with_conflict_check' > from > /home/mwr/.rvm/gems/ruby-1.9.3-p429/gems/thor-0.18.1/lib/thor/actions/empty_directory.rb:50:in > > > `invoke!' > from > /home/mwr/.rvm/gems/ruby-1.9.3-p429/gems/thor-0.18.1/lib/thor/actions.rb:95:in > > > `action' > from > /home/mwr/.rvm/gems/ruby-1.9.3-p429/gems/thor-0.18.1/lib/thor/actions/empty_directory.rb:15:in > > > `empty_directory' > from > /home/mwr/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/generators/app_base.rb:103:in > > > `create_root' > from (eval):1:in `create_root' > from > /home/mwr/.rvm/gems/ruby-1.9.3-p429/gems/thor-0.18.1/lib/thor/command.rb:27:in > > > `run' > from > /home/mwr/.rvm/gems/ruby-1.9.3-p429/gems/thor-0.18.1/lib/thor/invocation.rb:120:in > > > `invoke_command' > from > /home/mwr/.rvm/gems/ruby-1.9.3-p429/gems/thor-0.18.1/lib/thor/invocation.rb:127:in > > > `block in invoke_all' > from > /home/mwr/.rvm/gems/ruby-1.9.3-p429/gems/thor-0.18.1/lib/thor/invocation.rb:127:in > > > `each' > from > /home/mwr/.rvm/gems/ruby-1.9.3-p429/gems/thor-0.18.1/lib/thor/invocation.rb:127:in > > > `map' > from > /home/mwr/.rvm/gems/ruby-1.9.3-p429/gems/thor-0.18.1/lib/thor/invocation.rb:127:in > > > `invoke_all' > from > /home/mwr/.rvm/gems/ruby-1.9.3-p429/gems/thor-0.18.1/lib/thor/group.rb:233:in > > `dispatch' > from > /home/mwr/.rvm/gems/ruby-1.9.3-p429/gems/thor-0.18.1/lib/thor/base.rb:439:in > > `start' > from > /home/mwr/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/commands/application.rb:38:in > > > `<top (required)>' > from > /home/mwr/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in > > > `require' > from > /home/mwr/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in > > > `require' > from > /home/mwr/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/cli.rb:15:in > > > `<top (required)>' > from > /home/mwr/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in > > > `require' > from > /home/mwr/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in > > > `require' > from > /home/mwr/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/bin/rails:7:in > `<top (required)>' > from /home/mwr/.rvm/gems/ruby-1.9.3-p429/bin/rails:19:in `load' > from /home/mwr/.rvm/gems/ruby-1.9.3-p429/bin/rails:19:in `<main>' > from /home/mwr/.rvm/gems/ruby-1.9.3-p429/bin/ruby_noexec_wrapper:14:in > `eval' > from /home/mwr/.rvm/gems/ruby-1.9.3-p429/bin/ruby_noexec_wrapper:14:in > `<main>' > mwr@mwr-Ubuntu:/$ ls > bin dev initrd.img lib64 mnt root selinux tmp > vmlinuz > boot etc initrd.img.old lost+found opt run srv usr > vmlinuz.old > cdrom home lib media proc sbin sys var > > -- > Posted via http://www.ruby-forum.com/. > -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7f719f08-98da-4898-ac88-361131c54d49%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.