madhur / PortableJekyll

Portable Jekyll for Windows
http://www.madhur.co.in/blog/2013/07/20/buildportablejekyll.html
383 stars 98 forks source link

"Jekyll is not a recognized command" Win7 #9

Closed maxiride closed 7 years ago

maxiride commented 9 years ago

Hello, I downloaded your package and ran the setpath.cmd file, however executing the jekyll command in cmd returns that it is an uknown command.

I guess I missed a step somewhere ^^

Abel-Liu commented 9 years ago

You can add PATH manual like this:

x:\Ruby200-x64\bin; x:\Portable Python 2.7.5.1\App

Then edit “x:\RubyDevKit\config.yml” like this:

This configuration file contains the absolute path locations of all

installed Rubies to be enhanced to work with the DevKit. This config

file is generated by the 'ruby dk.rb init' step and may be modified

before running the 'ruby dk.rb install' step. To include any installed

Rubies that were not automagically discovered, simply add a line below

the triple hyphens with the absolute path to the Ruby root directory.

Example:

---

- C:/ruby19trunk

- C:/ruby192dev


  • x:/Ruby200-x64
ghost commented 9 years ago

Hi @Maxiride, just open your command panel (cmd.exe) and drag the setpath.cmd file in your command line. You will see the directory to it, then hit enter. Nothing should happen. However, if you type jekyll -v, you will see that Jekyll is now installed. Easy, right?

domeniko-gentner commented 9 years ago

You can also go to the Jekyll Directory, copy the file "setpath.cmd", rename it to jek.cmd. Open it and replace all %~dp0 with the real path to your installation, e.g. "C:\PortableJekyll".

Then make a shortcut on your desktop and let it point to cmd.exe. Add /k C:\PortableJekyll.cmd" as a parameter in the shortcuts parameters. Then you have your dedicated shell for it.

You can also add this to ConEmu if you use it.

remidoolaeghe commented 9 years ago

For an unknown reason, this does not work on PowerShell. But it does on command prompt.

madhur commented 9 years ago

because Powershell does not honour the PATH variable settings