Hi, I just installed ROR using the rvm using these instructions: http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/ Using Ubuntu 12 on VirtualBox I''m trying to create a demo_app rails generate scaffold User name:string email:string gives me this error: -- /home/natmanu/.rvm/gems/ruby-2.0.0-p247/gems/execjs-2.0.2/lib/execjs/runtimes.rb:51:in `autodetect'': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable) from /home/natmanu/.rvm/gems/ruby-2.0.0-p247/gems/execjs-2.0.2/lib/execjs.rb:5:in `<module:ExecJS>'' from /home/natmanu/.rvm/gems/ruby-2.0.0-p247/gems/execjs-2.0.2/lib/execjs.rb:4:in `<top (required)>'' from /home/natmanu/.rvm/gems/ruby-2.0.0-p247/gems/uglifier-2.1.1/lib/uglifier.rb:3:in `require'' from /home/natmanu/.rvm/gems/ruby-2.0.0-p247/gems/uglifier-2.1.1/lib/uglifier.rb:3:in `<top (required)>'' from /home/natmanu/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'' from /home/natmanu/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'' from /home/natmanu/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'' from /home/natmanu/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'' from /home/natmanu/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'' from /home/natmanu/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'' from /home/natmanu/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'' from /home/natmanu/Sites/microblog/config/application.rb:7:in `<top (required)>'' from /home/natmanu/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:44:in `require'' from /home/natmanu/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:44:in `<top (required)>'' from bin/rails:4:in `require'' from bin/rails:4:in `<main>'' Any helpers? TIA NAT -- 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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/87b3b425-94f4-4988-a8d9-c90b90f325c2%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
And what do you see at this URL? Walter On Oct 23, 2013, at 10:37 AM, Natmanu wrote:> See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)-- 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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/704FD67B-E33C-477F-8109-6C4AF2669D39%40wdstudio.com. For more options, visit https://groups.google.com/groups/opt_out.
Hey Natmanu, In order for Rails assets pipeline to handle JS it needs a JS runtime installed on your machine. Since you said you''re on Ubuntu if you don''t mind installing node you could just run sudo apt-get install nodejs. Otherwise the execjs gem works well and makes your project a little more portable. -- Nate West <http://about.me/natewest> -- -615.631.6545- On Wed, Oct 23, 2013 at 10:50 AM, Walter Lee Davis <waltd-HQgmohHLjDZWk0Htik3J/w@public.gmane.org>wrote:> And what do you see at this URL? > > Walter > > On Oct 23, 2013, at 10:37 AM, Natmanu wrote: > > > See https://github.com/sstephenson/execjs for a list of available > runtimes. (ExecJS::RuntimeUnavailable) > > -- > 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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/704FD67B-E33C-477F-8109-6C4AF2669D39%40wdstudio.com > . > For more options, visit https://groups.google.com/groups/opt_out. >-- 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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPkSWEG7b6VrboiXWFvRyDmMSHZQrBc9UZnMpDB2HXH%3D-Zkzkw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
I''m new to ubuntu, only installed it to learn ruby. Is there a comand to install On Wednesday, 23 October 2013 16:10:45 UTC, Nate West wrote:> > Hey Natmanu, > > In order for Rails assets pipeline to handle JS it needs a JS runtime > installed on your machine. Since you said you''re on Ubuntu if you don''t > mind installing node you could just run sudo apt-get install nodejs. > Otherwise the execjs gem works well and makes your project a little more > portable. > > -- Nate West <http://about.me/natewest> -- > -615.631.6545- > > > Thanks Nate, I managed to get the JS installed.> On Wed, Oct 23, 2013 at 10:50 AM, Walter Lee Davis <wa...-HQgmohHLjDZWk0Htik3J/w@public.gmane.org<javascript:> > > wrote: > >> And what do you see at this URL? >> >> Walter >> >> On Oct 23, 2013, at 10:37 AM, Natmanu wrote: >> >> > See https://github.com/sstephenson/execjs for a list of available >> runtimes. (ExecJS::RuntimeUnavailable) >> >> -- >> 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-ta...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. >> To post to this group, send email to rubyonra...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:> >> . >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/rubyonrails-talk/704FD67B-E33C-477F-8109-6C4AF2669D39%40wdstudio.com >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> > >-- 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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9bfb2424-2560-4e6e-9bcd-39ceda94ef09%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Uncomment the following line in Gemfile # gem ''therubyracer'', :platforms => :ruby On Fri, Oct 25, 2013 at 5:12 PM, Natmanu <natmanu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m new to ubuntu, only installed it to learn ruby. > > Is there a comand to install > > > On Wednesday, 23 October 2013 16:10:45 UTC, Nate West wrote: >> >> Hey Natmanu, >> >> In order for Rails assets pipeline to handle JS it needs a JS runtime >> installed on your machine. Since you said you''re on Ubuntu if you don''t >> mind installing node you could just run sudo apt-get install nodejs. >> Otherwise the execjs gem works well and makes your project a little more >> portable. >> >> -- Nate West <http://about.me/natewest> -- >> -615.631.6545- >> >> >> Thanks Nate, I managed to get the JS installed. > > > >> On Wed, Oct 23, 2013 at 10:50 AM, Walter Lee Davis <wa...-HQgmohHLjDZWk0Htik3J/w@public.gmane.org>wrote: >> >>> And what do you see at this URL? >>> >>> Walter >>> >>> On Oct 23, 2013, at 10:37 AM, Natmanu wrote: >>> >>> > See https://github.com/**sstephenson/execjs<https://github.com/sstephenson/execjs>for a list of available runtimes. (ExecJS::RuntimeUnavailable) >>> >>> -- >>> 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-ta...@**googlegroups.com. >>> To post to this group, send email to rubyonra...@googlegroups.**com. >>> To view this discussion on the web visit https://groups.google.com/d/** >>> msgid/rubyonrails-talk/**704FD67B-E33C-477F-8109-** >>> 6C4AF2669D39%40wdstudio.com<https://groups.google.com/d/msgid/rubyonrails-talk/704FD67B-E33C-477F-8109-6C4AF2669D39%40wdstudio.com> >>> . >>> For more options, visit https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>> . >>> >> >> -- > 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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/9bfb2424-2560-4e6e-9bcd-39ceda94ef09%40googlegroups.com > . > > For more options, visit https://groups.google.com/groups/opt_out. >-- *greatghoul <http://www.g2w.me> - Ask and Learn!* -- 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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAFoKNZPUgi-6zkwvw1zBnQj8puJ9eUH22pj%3DZZ0-DaRBTax%2BGA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Hi, I seem to be hitting some configuration errors every step of the tutorial. IS there a way to check my config to see I have all that I need set up? Now when I try: bundle exec rake db:migrate is get Error: RVM Ruby not used, run ''rvm use 1.9.1'' first I''m not sure i understand the error. is should run: rvm use 1.9.1 ...I''m persevering... :-) nat On Wednesday, 23 October 2013 14:37:32 UTC, Natmanu wrote:> > Hi, > > I just installed ROR using the rvm using these instructions: > http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/ > > Using Ubuntu 12 on VirtualBox > > I''m trying to create a demo_app > > rails generate scaffold User name:string email:string > > gives me this error: > -- > /home/natmanu/.rvm/gems/ruby-2.0.0-p247/gems/execjs-2.0.2/lib/execjs/runtimes.rb:51:in > `autodetect'': Could not find a JavaScript runtime. See > https://github.com/sstephenson/execjs for a list of available runtimes. > (ExecJS::RuntimeUnavailable) > from > /home/natmanu/.rvm/gems/ruby-2.0.0-p247/gems/execjs-2.0.2/lib/execjs.rb:5:in > `<module:ExecJS>'' > from > /home/natmanu/.rvm/gems/ruby-2.0.0-p247/gems/execjs-2.0.2/lib/execjs.rb:4:in > `<top (required)>'' > from > /home/natmanu/.rvm/gems/ruby-2.0.0-p247/gems/uglifier-2.1.1/lib/uglifier.rb:3:in > `require'' > from > /home/natmanu/.rvm/gems/ruby-2.0.0-p247/gems/uglifier-2.1.1/lib/uglifier.rb:3:in > `<top (required)>'' > from > /home/natmanu/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in > `require'' > from > /home/natmanu/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in > `block (2 levels) in require'' > from > /home/natmanu/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in > `each'' > from > /home/natmanu/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in > `block in require'' > from > /home/natmanu/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in > `each'' > from > /home/natmanu/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in > `require'' > from > /home/natmanu/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:132:in > `require'' > from /home/natmanu/Sites/microblog/config/application.rb:7:in `<top > (required)>'' > from > /home/natmanu/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:44:in > `require'' > from > /home/natmanu/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:44:in > `<top (required)>'' > from bin/rails:4:in `require'' > from bin/rails:4:in `<main>'' > > Any helpers? > > TIA NAT >-- 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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f52828b1-468c-4f51-a0de-73747e472411%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
On 25 October 2013 10:18, Natmanu <natmanu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I seem to be hitting some configuration errors every step of the tutorial. > IS there a way to check my config to see I have all that I need set up? > > Now when I try: bundle exec rake db:migrate > > is get Error: RVM Ruby not used, run ''rvm use 1.9.1'' first > > I''m not sure i understand the error. is should run: rvm use 1.9.1I sympathise with you, trying to learn Ubuntu, rvm, ruby and rails all at once can be a bit overwhelming. Persevere and all will become clear in time. The error seems a bit odd. The rvm use command allows you to specify which ruby you wish to use, I am surprised that it has not defaulted to something. However you can easily set the default ruby. First see which ones you have installed by running, in a terminal rvm list Then to make one of the these the default run rvm --default use 1.9.3 you don''t normally need the -pnnn patch number unless you have multiple versions of the same ruby (which would not normally be a good idea). In the error it said 1.9.1, I hope you are not using that version (which does not play well with rails), it should probably be 1.9.3 Colin -- 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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuNQDjLm9zV_%3Dbf0iPjqdNHPGEWZdUPMApmOJkzQvgQ6w%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Thanks for the reply Colin, I''m sure my stubborn nature is going to get me through this learning curve. when i run: rvm list the result is: ruby-2.0.0-p247 [x86_64] # => - current # =* - current && default # * - default So should i run rvm --default use 1.9.3 or rvm --default use 2.0.0 Nat On Friday, 25 October 2013 09:34:15 UTC, Colin Law wrote:> > On 25 October 2013 10:18, Natmanu <nat...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> wrote: > > Hi, > > > > I seem to be hitting some configuration errors every step of the > tutorial. > > IS there a way to check my config to see I have all that I need set up? > > > > Now when I try: bundle exec rake db:migrate > > > > is get Error: RVM Ruby not used, run ''rvm use 1.9.1'' first > > > > I''m not sure i understand the error. is should run: rvm use 1.9.1 > > I sympathise with you, trying to learn Ubuntu, rvm, ruby and rails all > at once can be a bit overwhelming. Persevere and all will become > clear in time. The error seems a bit odd. The rvm use command allows > you to specify which ruby you wish to use, I am surprised that it has > not defaulted to something. However you can easily set the default > ruby. First see which ones you have installed by running, in a > terminal > rvm list > > Then to make one of the these the default run > rvm --default use 1.9.3 > you don''t normally need the -pnnn patch number unless you have > multiple versions of the same ruby (which would not normally be a good > idea). In the error it said 1.9.1, I hope you are not using that > version (which does not play well with rails), it should probably be > 1.9.3 > > Colin >-- 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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/117edbca-f184-4e8c-b95e-ccbfa5fa8d81%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
On 25 October 2013 11:49, Natmanu <natmanu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thanks for the reply Colin,No, problem. Could you not top post please, it makes it difficult to follow the thread. Insert your reply at appropriate points in previous message. Thanks.> > I''m sure my stubborn nature is going to get me through this learning curve. > > when i run: rvm list > > the result is: > > ruby-2.0.0-p247 [x86_64] > # => - current > # =* - current && default > # * - default > > > So should i run > rvm --default use 1.9.3 > or > rvm --default use 2.0.0rvm list says you only have 2.0.0 installed, which I see is the one recommended in the tutorial so that should be ok, so rvm --default use 2.0.0 Then when you run rvm list again you see it with =* against it showing that it is the current and default. Looking at the tutorial I see that Ryan has included the command to set the default in the section headed Ruby, presumably you missed that bit. Colin -- 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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLs83y4r1%3Dp5TeOGz-pW70TRDDoCgzDdo_XVy0b3J-_oOw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Thanks for the help and direction on posting Colin. I''ve managed to get it working now.. well i did not get an error when running db:migrate Think I need break. Will continue later and sure you''ll see me around here agian. Cheers Colin and all who replied. Nat On Friday, 25 October 2013 11:00:48 UTC, Colin Law wrote:> > On 25 October 2013 11:49, Natmanu <nat...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> wrote: > > Thanks for the reply Colin, > > No, problem. Could you not top post please, it makes it difficult to > follow the thread. Insert your reply at appropriate points in > previous message. Thanks. > > > > > I''m sure my stubborn nature is going to get me through this learning > curve. > > > > when i run: rvm list > > > > the result is: > > > > ruby-2.0.0-p247 [x86_64] > > # => - current > > # =* - current && default > > # * - default > > > > > > So should i run > > rvm --default use 1.9.3 > > or > > rvm --default use 2.0.0 > > rvm list says you only have 2.0.0 installed, which I see is the one > recommended in the tutorial so that should be ok, so > rvm --default use 2.0.0 > Then when you run rvm list again you see it with =* against it showing > that it is the current and default. > > Looking at the tutorial I see that Ryan has included the command to > set the default in the section headed Ruby, presumably you missed that > bit. > > Colin >-- 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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/940fc55a-fdb4-4399-bd5d-d7f3a0cda139%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Reasonably Related Threads
- `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes
- '$ rake db:create' don't work!
- Error in Creating a rubyonrails application
- Installing Rails Help!
- Issue with Deploying a Rails app on VPS - cannot load such file -- unicorn/launcher