Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6916615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:37:33+00:00 2026-05-27T09:37:33+00:00

2 days ago i succesfully installed Ruby On Rails and started playing with a

  • 0

2 days ago i succesfully installed Ruby On Rails and started playing with a tutorial. Every was going fine and ws happy. Then today I wanted to continue my tutorial but something did work as usal. First i got this error

ActiveRecord::ConnectionNotEstablished

Hmm googled a bit then thought I should try starting a new project and when i tried to generate a controller i got this message

me@lenovo:~/ror/blog$ rails g controller posts 
/home/me/.rvm/gems/ruby-1.9.2-p290/gems/execjs-1.2.10/lib/execjs/external_runtime.rb:130:in `which_unix': undefined local variable or method `cmd' for #<ExecJS::ExternalRuntime:0xae47d84> (NameError)

Then I remembered that I installed Netbeans 6.9.1 and RoR module later that day after all things went well. Could it be Netbeans screwing with my RoR installation?

Anyone knows how to reset this? I wont mind getting rid of netbeans if that the deal

Using Ubuntu 11.10

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:37:34+00:00Added an answer on May 27, 2026 at 9:37 am

    Looks like that there is a mismatch in the methods’ variable name; it should be “cmd” but it is “name”

    /Users/kj/.rvm/gems/ruby-1.9.2-p290/gems/execjs-1.2.10/lib/execjs/external_runtime.rb:130:in `which_unix': undefined local variable or method `cmd' for #<ExecJS::ExternalRuntime:0x00000100bf0b48> (NameError)
    

    A quick peek at the file in question reveals:

    def which_unix(name)
     if File.executable? cmd
       cmd
     else
       path = ENV['PATH'].split(File::PATH_SEPARATOR).find { |path|
         File.executable? File.join(path, cmd)
       }
       path && File.expand_path(cmd, path)
     end
    end
    

    Change the method’s variable name from “name” to “cmd”, save and enjoy!

    —Kai

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had started working on GPGPU some days ago and successfully implemented cholesky factorization
Some days ago I started using partitioning to make it possible to work with
I recently (a few days ago) installed .NET 3.5 SP1 and subsequently an aspnet_client
Just some days ago I started looking into a unit test framework called check,
Few days ago all was ok: when I started my web-site with Silverlight 4.0
Some days ago I started a quick open source project and, when some mates
Few days ago I started experimenting with Mercurial, and everything went great, until I
Two days ago I started working on a code parser and I'm stuck. How
Some days ago I installed the ASP.NET MVC 3 Tools Update for Visual Studio
Only days ago I started using browser caching, to cache js and css files

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.