question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

no result for "Install Shell Command"

See original GitHub issue

I just downloaded the Lektor MacOS app. I selected “Install Shell Command” and confirmed “Yes” but nothing happens. I opened the Terminal and I get “lektor: command not found” in my console:

$ lektor
-bash: lektor: command not found
$ python --version
Python 2.7.6
$ python3  --version
Python 3.6.2

I’m not an experienced Python user so I don’t know if I have Python set up correctly for Lektor.

Any suggestions about how to troubleshoot? Should I be able to use Lektor from the command line as soon as I run “Install Shell Command” from the application?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
theconsultantcommented, Aug 23, 2017

Is it possible the Mac version is not making it all the way to the install section? If I do ln -fs /Applications/Lektor.app/Contents/Resources/local/bin/lektor-proxy /usr/local/bin/lektor it works fine, and just for good measure I checked mdfind "kMDItemCFBundleIdentifier == 'org.pocoo.lektor'" | head -1 | xargs -0 dirname and it works fine here too.

Either way the simplest fix for Mac users of Lektor who have this same issue is to run the symlink command, assuming they have the Lektor app in /Applications and are an admin on their own machine: ln -fs /Applications/Lektor.app/Contents/Resources/local/bin/lektor-proxy /usr/local/bin/lektor

I then used the command line lektor quickstart to create a new lektor project and made changes using the Lektor.app. 👍

1reaction
Jeroendevrcommented, Sep 25, 2017

The desktop App did not worked for me. The tip from @theconsultant worked (although did not have an idea what I did. ln -fs /Applications/Lektor.app/Contents/Resources/local/bin/lektor-proxy /usr/local/bin/lektor Worked for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code - "Shell Command - Stack Overflow
I open the Command Palette ( Ctrl + Shift + P ) and type 'shell command' to find the shell command: Install 'code'...
Read more >
Installing shell command 'code' in PATH does not persist
So you're stuffed either way. Steps to Reproduce: Ran the Shell Command: Install 'code' command in PATH . Open new terminal window, code ......
Read more >
Command Line Interface (CLI) - Visual Studio Code
Visual Studio Code has a powerful command-line interface built-in that lets you control how you launch the editor. You can open files, install...
Read more >
Shell Command - Visual Studio (Windows) | Microsoft Learn
Learn about the Shell command and how it launches executable programs from within Visual Studio.
Read more >
How to fix a "Command not found" error in Linux - Red Hat
1. Include the path · 2. Add a new path · 3. Copy a file to an existing path location · 4. Tell...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found