Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory . . . #13

Open
mike-ulloa-K opened this issue Aug 10, 2021 · 1 comment
Open

No such file or directory . . . #13

mike-ulloa-K opened this issue Aug 10, 2021 · 1 comment

Comments

@mike-ulloa-K
Copy link

I ran these commands exactly as show:

pkg install python2
py2_path=$(which python2)
py_path=${py2_path%/*}/python
ln -s "$py2_path" "$py_path"

The last line generated an error: ln -s "$py2_path" "$py_path
Error: failed to create symbolic link /python no such file

Any thoughts on what I can do?

@Anchordave
Copy link

Hi, had the exact same error. I am not a newbie so i did the regular checks but could not find any errors but just before i went into factory reset mode I did a history to look at everything i had typed recently and the answer was right there in front of me.

The error is displayed after the last line is typed but when I typed in the previous line
"py_path=${py2_path%/}/python"
I made a spelling error which on a tiny phone using cli i can excuse myself for.
I had simply spelled python without the h
"py_path=${py2_path%/
}/pyton"

The spelling mistake on that line does not create any error because it is a defining line of code. It only creates an error in the next line when you refer to the object that you (Me) created with a spelling mistake in the previous line.

use the command history to see what you typed in the past, if you see no errors, try the process again and if you still have errors post back here and someone will help you find the problem

Anything you do in command line I use the same principal my old wood work teacher taught me in High School. Measure twice/Cut once or in CMD line, write it, read it then hit enter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants