Questions tagged [path]
The concept that software will look in several folders, in the order stored as the path, to find which programs should be allowed to run.
329
questions
0
votes
1
answer
23
views
`ENOENT: no such file or directory` error when installing ReactJS in M1 Mac
I tried to install ReactJS on an M1 Mac but encountered this error:
prabhav@Prabhavs-MacBook-Air ~ % node --version
v18.17.1
prabhav@Prabhavs-MacBook-Air ~ % npm --version
9.6.7
prabhav@Prabhavs-...
1
vote
0
answers
41
views
Why is mac able to find some bin in PATH but not others?
I recently upgraded Python but encountered some strange behavior: I have both /opt/homebrew/bin and /usr/local/bin in my PATH variable.
python was in both these directories. When I removed the one in /...
0
votes
2
answers
39
views
I would like to preempt a command on my mac (specifically, Keytool)
I need, when generating Java keystores (which I do frequently), to generate them under the Java 8 version of Keytool. If I use the keytool in the default Java version, they are incompatible with the ...
0
votes
0
answers
11
views
PATH entry deletes itself after restart? [duplicate]
Every time I want to start docker, I have to run PATH=$HOME/.docker/bin:$PATH. Then, until restart docker command will work via terminal. After restart, I have to manually add it to $PATH again. ...
0
votes
1
answer
92
views
Setting different `PATH` variable for different profiles in iTerm2
I have the default PATH variable as set in the .zshrc file.
I am looking for an elegant and simple way to add more directories to the PATH per different profiles in iTerm2.
What would be the best way ...
1
vote
1
answer
96
views
Paths to UI elements in System Settings for Applescript
Is there a good resource for learning how to generate paths to UI elements in System Settings for AppleScript? Specifically, I am trying to access the keyboard scrolling button in the Accessibility ...
1
vote
1
answer
123
views
Why are all my new installations on my M1 Mac (zsh terminal) not being installed to my PATH and instead to /Users/myusername/Library/?
I just recently got a M1 Mac which uses the Z-shell (zsh) terminal. All my new installations that I run through my terminal (such as on homebrew, npm, etc.) are installed to /Users/myusername/Library/ ...
1
vote
0
answers
66
views
Remove unwanted entries in $PATH [duplicate]
I have multiple entries in my $PATH. I learned a ton about the path environment variable yesterday, but prior that I must have added some entries multiple time, or something.
I have searched for this ...
2
votes
2
answers
184
views
Applescript - What's the path of this "button" in System Preferences (Function Keys) / How to refer to Function Keys button in code
I've been trying to write a script in AppleScript for making enabling and disabling Function Keys easier for me, but I cannot find the path for the Function Keys "button" in System ...
0
votes
0
answers
53
views
Where is the cache/temp storage for files being imported to the photos app?
I airdropped 90 photos over to my laptop (running Ventura 13.1) to the photos app, and on seeing them in the photos app, I absent-mindedly removed them from the iPad. Before I was able to click Import ...
7
votes
1
answer
2k
views
Invalid entries in $PATH after upgrading to macOS Ventura 13.3 [com.apple.security.cryptexd]
After upgrading to macOS Ventura 13.3, when I open Terminal app, I notice these 3 entries in my $PATH variable that were non-existent directories:
/var/run/com.apple.security.cryptexd/codex.system/...
1
vote
1
answer
1k
views
no such file or directory when starting terminal
I'm not a power user and recently installed Homebrew and Powershell on my MacBook running Ventura 13.1 to control my new T-Mobile Home Internet Gateway and since I get the following when running ...
0
votes
0
answers
20
views
installing R tools for macOS [duplicate]
I had some trouble with installing R packages that I sorted out using commandline R instead of RStudio. All of this started after the update to Ventura or the latest Xcode update. Not sure, which was ...
0
votes
1
answer
343
views
How change $PATH for RStudio
I am trying to set my $PATH variable for RStudio. Somehow it just ignores the entry in my ~/.Renviron. I added this lines:
PATH=$PATH:/opt/R/arm64/gfortran/bin
R_MAX_VSIZE=100Gb
if I run Sys.getenv(&...
0
votes
1
answer
146
views
MacOS on M1 kills every ping
I'm finding I'm unable to ping addresses like I'm used to on my M1 Macbook Pro. MacOS just kills the process immediately. When I run the process from /sbin, it works fine. I can see /sbin in my PATH. ...
1
vote
1
answer
437
views
Why the `/etc/paths` do not work?
I add my php path into the /etc/paths file:
markleo@mba ~ % cat /etc/paths
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
# php
/Applications/phpstudy/Extensions/php/php/bin # A modificação da versão ...
1
vote
1
answer
165
views
ghost files—now you see 'em, now you don't?
Ghost files—I don't know what else to call them.
I have an external drive which the system refuses to make writable. Most of the files on it are already on my internal drive. To save time and space, ...
0
votes
1
answer
642
views
Jenkinsfile doesn't recognize local bin
I am trying to run fastlane commands using Jenkinsfile on Mac mini.
If I run /usr/local/bin/fastlane -v it shows the correct output. but if I just try with fastlane -v then I get
fastlane: command not ...
3
votes
0
answers
644
views
What path is needed to run homebrew cask installed apps from the command line?
I installed Thunderbird using homebrew cask. I am using Intel Processor.
/Applications/Thunderbird.app/Contents/MacOS/thunderbird -whatever
How can I use the command line options of thunderbird on ...
1
vote
1
answer
2k
views
youtube-dl gives errors: "command not found"
I installed youtube-dl successfully via homebrew but cannot seem to invoke the program at all.
Here are the commands I tried:
> man youtube-dl
No manual entry for youtube-dl
> type -a youtube-dl
...
2
votes
1
answer
7k
views
OpenVPN Connect profile path
I'm trying to find the path to imported profiles in openvpn connect app in macos. I tried
/Users/<user>/Library/Application Support/OpenVPN Connect/
but nothing there.
I'm using OpenVPN ...
11
votes
1
answer
2k
views
Where are the system folder icons located in Big Sur / Monterey?
In Catalina and earlier, the path for Finder folder icons (e.g. Applications, Desktop, Downloads, Developer…) was:
/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources
But as of Big Sur ...
1
vote
1
answer
144
views
On Monterey Finder - Is the Path Bar selection of a parent folder single-click or double-click?
This is a Path Bar at the bottom of a Finder Window in MacOS Monterey.
From what I remember to go to a parent folder you would double-click the folder in the Path Bar. This is consistent with how you ...
2
votes
0
answers
394
views
Where should I put the PATH to my custom scripts folder? [duplicate]
I have a folder with my handy shell scripts, called bin, and placed in my home:
/Users/<my_home>/bin
Every time I open a terminal (be it with the Terminal app, or with iTerm, or from VS Code, ...
0
votes
0
answers
207
views
Automator Apple Script sometimes work, sometimes doesn't
I've wrote (and collected from different places on the internet) an Automator Apple Script to share network drive locations between Windows and Macs.
It works that all mac users can rightclick a file ...
2
votes
1
answer
2k
views
homebrew installed librdkafka to /opt/homebrew/Cellar/ instead of /usr/local/Cellar/
I'm on Mac Monterey (Apple cpu) and I've installed librdkafka:
https://github.com/edenhill/librdkafka
using homebrew. It has installed to /opt/homebrew/Cellar/librdkafka/
However, online sources ...
0
votes
1
answer
530
views
Meaning of when a process in "ps -el" output does not show full path to executable?
On Catalina v10.15.7, I am using:
ps -el
to investigate all running processes.
I have 430 running processes. Ignoring those associated with open terminals, I'd like to understand why these 6 ...
3
votes
2
answers
3k
views
Apple Silicon M1 Chip - Homebrew installer installing into Intel folder
I am following the official Homebrew installation guide correctly and running:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
According to ...
3
votes
1
answer
3k
views
zsh does not find script in PATH while bash does (echo $PATH is the same)
I am trying to execute a script using just its name. So naturally I added it to the PATH variable. But it seems zsh does not care. If I switch to bash everything works fine. The following terminal ...
2
votes
1
answer
10k
views
Command not found: /usr/local/bin/zsh
I uninstall homebrew on a Mac Mini M1 to reinstall it.
After opening a terminal to run the install shell script, the terminal produces the following output and becomes unusable.
[Command not found: /...
1
vote
1
answer
30
views
Is ploticus working with macos m1 ; how to put it in the path?
I'm willing to use ploticus (mostly for basic graph) ; yet I don't if it's still working out the box for macos (m1) since I have not been able yet to get relevant information ; if still working, I can ...
3
votes
1
answer
2k
views
permission denied to add current directory to path
I am trying to install NGC CLI on company's Mac following the instructions given here.
https://ngc.nvidia.com/setup/installers/cli
When I try to run the third command there, which is
echo "export ...
3
votes
2
answers
897
views
Copy relative file path in Finder
How can I copy a file path in Finder without the username (i.e. make it a relative file path)?
In our office we're working with Dropbox as our file server. Meaning we all have a directory /User/...
0
votes
1
answer
2k
views
Why does the shell run the incorrect Python?
I am coming from an Ubuntu environment, and since you can set Python 3 to be the first-class Python in Ubuntu (as in, you call python and you get Python 3), I wanted to do the same on the Mac I've ...
10
votes
1
answer
4k
views
Homebrew PATH set in .zshenv is overridden
Following this answer about best practices for configuring Zsh, I wanted to move my Homebrew PATH initialization to the ~/.zshenv file:
eval "$(/opt/homebrew/bin/brew shellenv)"
This ...
8
votes
2
answers
18k
views
What is xcrun and why would updating to macOS Mojave cause it to go missing? [duplicate]
I just upgraded my (Intel based) MacBookPro to macOS Mojave and now when typing git pull in a (Bash) shell, I now get the message:
xcrun: error invalid active developer path (/Library/Developer/...
19
votes
3
answers
3k
views
What are the downsides of putting GNU coreutills first in ${PATH}?
I'm coming from Linux to macOS, and many of my scripts assume GNU versions of the utils provided in GNU coreutils.
I could just put the GNU coreutils bin directory in earlier in $PATH than /bin.
Is ...
0
votes
1
answer
139
views
What is changing my $PATH?
When I open a new Terminal, the $PATH is not what I set in .zshenv
grep -i path .??* shows that no other dot-file sets the path.
Adding a couple of echo, I see:
Last login: Thu Nov 18 13:29:13 on ...
1
vote
1
answer
9k
views
Changing node version from node@16 to node@14 on Mac OS
I‘m using brew. As I need an older version of node I
installed node@14 (brew install node@14)
unlinked the recent version (brew unlink node)
linked the old version that I want (brew link node@14)
At ...
0
votes
0
answers
34
views
macOS Catalina Retain Path Bar in Mounted Folders
I'm running macOS Catalina, and whenever I download a *.dmg and open it, Finder doesn't show a path bar at the bottom.
In older versions of OS X it used to be that the first time I pressed View -> ...
0
votes
1
answer
96
views
"which" command returns paths with two consecutive slashes
On my macOS machine, I noticed that sometimes the which command returns paths with two consecutive slashes. For example:
bash-3.2$ which gcc
/usr/local/bin//gcc
bash-3.2$ which qr
/Users/flyingblu/bin/...
1
vote
1
answer
249
views
New macOS install "missing commands" but commands already exist in /usr/bin
Mostly just want clarification on why macOS is doing this:
On a fresh install I tried to use the strings command in Terminal and a pop up came up.
I chose to "Install" and waited - it stuck....
1
vote
0
answers
506
views
Adding third-party C/C++ libraries to Xcode's path globally
I added my /usr/local/bin and /opt/homebrew/include to my CPATH variable. This way the clang compiler recognizes libraries residing in these paths when invoked from command line. However, when I am to ...
3
votes
6
answers
1k
views
How do I make the Terminal easier to read and mentally process?
I am beginning to learn to use the shell via macOS's Terminal running Zsh, and I'm finding it difficult to process all of the very tightly packed information in the commands and results.
What are the ...
0
votes
0
answers
215
views
Adding to PATH doesn't add to autocomplete
I have a Go binary (called AssetFinder) that I want to add to my $PATH so that I can autocomplete it. The binary is at the location /Users/spike/go/bin and I can execute it by cding to that directory ...
0
votes
1
answer
5k
views
I have installed git from homebrew, and instead of installing it in /usr/local/bin it's in /opt/homebrew/bin/git, how can I move it?
I've changed my $PATH variable to /usr/local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/bin:/bin:/usr/sbin:/sbin (previously /usr/local/bin ...
2
votes
1
answer
495
views
Automator - Open Windows File Path On Mac
I am trying to create an Automator service that allows a user to highlight a link that has been emailed by a Windows user, and have it open to the equivalent SMB share on a Mac.
For example:
Windows ...
0
votes
2
answers
496
views
Bash Eval Syntax Error Every time I open terminal
Every time I open terminal, my mac makes a multitude of error sounds, and returns this output:
-bash: eval: line 4: syntax error near unexpected token `?
-bash: eval: line 4: `PATH="/usr/local/...
0
votes
0
answers
244
views
Paths like /usr/bin, /usr/sbin are still being added to $PATH even without /etc/paths
By default, my $PATH environment variable looks like this:
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/zfs/bin:/Users/nate/.nix-profile/bin:/run/current-system/sw/bin:/nix/var/nix/profiles/...
0
votes
1
answer
5k
views
Can I get some help making a symbolic link to run VSCode from the command line?
I downloaded VSCode and tried to make link for code to use code command to open VSCode. I also appended this vscode path to PATH variable. I have downloaded VSCode in folder called Work. This Work ...