no result for "Install Shell Command"
See original GitHub issueI 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:
- Created 6 years ago
- Comments:10 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 checkedmdfind "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. 👍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.