Rails: Why "sudo" command is not recognized?

166,925

Solution 1

Sudo is a Unix specific command designed to allow a user to carry out administrative tasks with the appropriate permissions.

Windows does not have (need?) this.

Run the command with the sudo removed from the start.

Solution 2

sudo is a Unix/Linux command. It's not available in Windows.

Solution 3

That you are running Windows. Read:

http://en.wikipedia.org/wiki/Sudo

It basically allows you to execute an application with elevated privileges. If you want to achieve a similar effect under Windows, open an administrative prompt and execute your command from there. Under Vista, this is easily done by opening the shortcut while holding Ctrl+Shift at the same time.

That being said, it might very well be possible that your account already has sufficient privileges, depending on how your OS is setup, and the Windows version used.

Solution 4

sudo is used for Linux. It looks like you are running this in Windows.

Solution 5

sudo is a command for Linux so it cant be used in windows so you will get that error

Share:
166,925

Related videos on Youtube

Misha Moroshko
Author by

Misha Moroshko

I build products that make humans happier. Previously Front End engineer at Facebook. Now, reimagining live experiences at https://muso.live

Updated on July 09, 2022

Comments

  • Misha Moroshko
    Misha Moroshko almost 2 years

    In my application directory (on Windows) I run:

    sudo pdfkit --install-wkhtmltopdf
    

    as explained here, but I got this error:

    'sudo' is not recognized as an internal or external command, operable program or batch file.

    What could be the problem ?

  • Misha Moroshko
    Misha Moroshko about 13 years
    I tried to run pdfkit --install-wkhtmltopdf but now the pdfkit command is not recognized. gem list shows that I do have the pdfkit gem installed. Any ideas ?
  • Misha Moroshko
    Misha Moroshko about 13 years
    Please see my comment above. pdfkit --install-wkhtmltopdf doesn't work either. Any ideas why ?
  • Douglas F Shearer
    Douglas F Shearer about 13 years
    It sounds like PDFkit is not in your PATH. Try navigating to the gem directory and running it from there.