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.

Filter by
Sorted by
Tagged with
1
vote
0answers
26 views

Crash report from an app that I didn't install and that was executed from a non-existing path

I was reviewing the crash reports in the Console app earlier and I found a very strange crash report from few days ago. An extract can be found below: Process: Champlist [2372] Path: ...
1
vote
1answer
36 views

$PATH only shows RVM files-other Path are not shown in Macbook

When I run echo $PATH I always get Ruby or RVM bin files and does not get any of the path I added in my .bash_profile; I am using a MacBook Pro and running Catalina. I am using the default terminal to ...
0
votes
0answers
21 views

how to add hyperlinks to local files in numbers

How do I add a hyperlink to a local file? I know how to add a hyperlink to a website, so I tried something like file:///Users/MyUser/Documents/Invoices/Some%20Stuff.pdf However, adding this path to ...
1
vote
0answers
37 views

.bash_profile path won't work with anaconda3

Changed my .bash_profile and path now it's the following reads at each new terminal login: -bash: conda: command not found -bash: dirname: command not found -bash: dirname: command not found -bash: ...
0
votes
1answer
26 views

ZSH issue with colorized prompt and double slash, i.e “//” appearing when I am into root

I am faced to a problem of appearing slash / appearing double slash into PS1 when I am located on root / . I explain more precisely, I have in .zshrc : setopt PROMPT_SUBST slash_color () { dirs | ...
1
vote
1answer
90 views

How to make path prompt easier to read by color-coding each `/` (forward slash)?

I would like to get another configuration for the path, more a detail than a real request: Below an example of zsh PROMPT : In order to make reading the path easier, I would like to change ...
0
votes
1answer
26 views

exe file not found with which after setting the Path

I need to have an exe file found in the terminal with "which FILE" command. I set the PATH to this file but I cannot find the file with which? I added export PATH=$PATH:/Users/neurolab/Desktop/...
1
vote
1answer
133 views

$PATH doesn't show .bash_profile, only shows /etc/paths

I have a beautifully set .bash_profile and everything was working well, then I updated to zsh. I installed Visual Studio for Mac, for a while I didn't realise that something was wrong, today I saw ...
0
votes
0answers
18 views

Problem running .command file [duplicate]

My problem is i'm trying to run a .command file in OS Mojave. It tells me when attempting to run it The file "Rev PLATE-140.command" could not be executed because you do not have appropriate ...
1
vote
1answer
178 views

Why is Python version set with PyEnv global not picked up a default one?

I have installed pyenv and used it to install Python 3.8.1 I had Python 3.7.6 installed manually before. I have set 3.8.1 as global and, as this version is now markered with *, it was taken into ...
2
votes
2answers
161 views

How to (and should I) put a path to user-installed python ahead of system-installed python?

I have a separate installation of Python 3.*, but the first python path in my $PATH variable is the path to system-installed Python. Is this how it should be? I have added the path to user-installed ...
1
vote
0answers
20 views

using breakpath command in shell file

From somewhere I have available in the macOS 10.15.1 Terminal window the command "breakpath", which gives as output the entries in $PATH, one per line. And I can redirect its output, e.g.: breakpath &...
2
votes
0answers
102 views

macOS Terminal not using correct manpath

How to set $MANPATH or manpath for the macOS Terminal Help menu command: Open man Page for Selection? Having recently done a clean install of macOS Mojave (10.14.6), I am trying to get my macOS ...
0
votes
1answer
68 views

Basic 'print' & 'puts' Mac OS terminal commands not found

I followed this article to install & update ruby with a package manager but I clearly messed up somewhere. https://stackify.com/install-ruby-on-your-mac-everything-you-need-to-get-going/ If I ...
1
vote
2answers
576 views

How does zsh find commands?

Unless I switch back to bash, I now have to spell out the full path for scripts I have written. How does zsh find commands? Things in /bin, /use/bin, etc. still work, but things in ~/bin are “not ...
0
votes
0answers
54 views

Crontab on mac not working - doesn't have the correct PATH / shell? [duplicate]

I have crontab schedule which runs, however it doesn't have my normally available terminal commands. I guess it doesn't have the correct $PATH, user or something like that? The crontab: 51 16 * * * ...
1
vote
3answers
679 views

How to add the PATH for mysql bin on Mac?

I want to add the PATH for mysql.exe on my Mac. I tried this via terminal, but $ vi.bash_profile vi.bash_profile command not found. does not work. I tried this for generating the bash_profile to ...
2
votes
1answer
24 views

Path to user directory when username is unknown

Some colleagues and I have our cloud storage (e.g. Dropbox) syncing to our macs. The local path to a particular folder in our synchronised cloud storage looks like /Users/{$USERNAME}/CloudSync/...
0
votes
0answers
143 views

How to set the correct PATH for different software

I installed R via Conda. During the installation Terminal says environment location: /Users/tymac/anaconda3...The following packages will be downloaded:.... Everything was installed but now at bash ...
1
vote
2answers
436 views

Command in bash shell script to find path to that script?

Is there a command to go inside a bash .sh script that will provide the full path to the directory containing that script?
0
votes
1answer
97 views

What modifies the PATH variable on macOS? [duplicate]

echo $PATH returns a different result than the PATH variable I define in .bashrc. .profile is empty. What else could be modifying the PATHvariable? The directories listed are all things I would have ...
0
votes
0answers
48 views

Build without requiring users to set LD_LIBRARY_PATH?

I'm following this guide on how to build NumPy with Intel MKL on a macOS (I'm on Mojave 10.14.5), and after installing Intel's MKL library, the guide tells me to set LD_LIBRARY_PATH: export ...
0
votes
1answer
358 views

Why isn't a binary not being found in my PATH?

I've got a Python project which uses a virtual environment. In my project folder, there is a bin/ folder which contains all the executables needed by the project. To use these, you run source bin/...
0
votes
1answer
147 views

In Search/Spotlight, can you exclude files within $HOME/Library?

I am trying to make some Smart Folders to compensate for the woefully useless Recents folder but I am having some problems trying to filter out things I don't want to appear. One of them is excluding ...
2
votes
1answer
154 views

Terminal PATH startup message

I messed up when installing Cisco Packet Tracer for Linux and it some how changed a few bash files. After a few hours of looking around and changing my PATH, when I open a new Terminal window I get a ...
2
votes
4answers
1k views

“which” command doesn't work / path of Safari?

Why can’t I locate programs like Chrome or Safari or FireFox with the which command line tool? pasocon:~ ThisUser$ which python /anaconda3/bin/python pasocon:~ ThisUser$ which firefox pasocon:~ ...
1
vote
1answer
60 views

Path of an application (here Python) is not accessible from the Finder

I cannot see in the Finder the path "/Library/Frameworks/Python.framework" (there is no folder "Frameworks" inside "Library") although this path is the output of the error message when trying to run a ...
5
votes
2answers
3k views

How can I fix my terminal when editing the PATH in .bash_profile has the startup hang and I get no prompt?

I am new to the command line and clearly messed up my setup. macOS High Sierra(10.13.6) Trying to set up Python and VScode. My path variable is what I believe is wrong, but Idon't know exactly how ...
0
votes
0answers
789 views

How to install from an url with hombrew?

I would like to install a specific version of python3 (python 3.6.8) on my macbook. I tried to: brew install https://www.python.org/ftp/python/3.6.6/python-3.6.6-macosx10.9.pkg However, it doesnt ...
1
vote
1answer
152 views

macOS - Bash commands not working as needs to be

First of all, the problems: I'm not able to use both exported bash commands and default system bash commands at the same time Some of the exported paths working on terminal but some of them not ...
0
votes
0answers
39 views

Differences in path encoding between Mojave and High Sierra

I have a script (in R) where I specify the path to some data. The script ran on my computer's High Sierra. After updating to Movaje, I get "path non-existent" error messages so my script no longer ...
0
votes
3answers
2k views

How to set relative directory to PATH variable, and run scripts in relative directory globally

I have some some scripts in a git project I wan to access globally, so I add the relative path to the scripts folder like so vim ~/.bash_profile export PATH="~/git/scripts/:$PATH" source ~/....
3
votes
2answers
419 views

Is there any way to get a log of all the recently installed files and their respective folder paths and source directories?

I recently installed an open source game. The file type is .pkg . Now, during installation the installer asked for permission to access the system UI server. I didn't knew the reason behind it so I ...
2
votes
1answer
575 views

What is the difference between HFS path and alias path?

This was brought up in a comment from another question/answer and I was curious what is the difference between an HFS path and an alias path. My understanding they were the same.
1
vote
2answers
3k views

trouble installing cmake

I need to install cmake for school. I have tried using the source code but don't really understand where I should unpack it and how to add it to my path. I also tried the .dmg file but the command ...
1
vote
0answers
319 views

Why do I keep getting this error message: “git was not detected on system path”

I'm not familiar at all with coding or using rstudio since this is the first semester im taking it. Basically everything was working fine, but when i updated to mojave, this error started popping up ...
0
votes
1answer
36 views

Mac exectuable only starts with ./name even when $path set

I'm trying to install Mongo but having trouble with the $PATH var in MacOS. Following the guidelines. My $PATH is set in .bash_profile: export PATH=/Users/evl/dev/mongodb/bin⁩:$PATH which works: ...
10
votes
3answers
16k views

Problem with displaying file path in Finder's Get Info -> Where [duplicate]

I occasionally need to check some file's location and copy it to the clipboard. I used to use Finder -> Cmd-I then I used to copy the content of "Where" section. Ever since updating to macOs Mojave, ...
1
vote
1answer
26 views

Create an hardlink across storage device (or alternative solutions)

I have named my secondary SSD with a name with a space in it - "My SSD", and have been using it for many years with multimedia applications without any problem. Part of my media library with thousands ...
1
vote
3answers
594 views

Running `nano` uses the old nano(2.0.6) even though nano 3.0 is installed

I installed nano 3.0 with brew install nano, but when I run nano --version, it shows version 2.0.6, which is what came with macOS. Screenshot: echo $PATH also shows that /usr/local/bin is listed ...
3
votes
2answers
333 views

Difference between filename and . filename in macOS terminal

I'm newbie to MacOS. (I'm using mac OS high sierra 10.13.6) I installed a software. They said to initialize the software by . /path/setsas.sh I give no thought to . and space, so I just ran path/...
0
votes
1answer
221 views

Removing directories from PATH

I am trying to run rkhunter, but it is giving me this output: stack/security/rkhunter-1.4.6 ➜ sudo rkhunter --check Password: Invalid BINDIR configuration option: Invalid directory found: ~/.dotnet/...
3
votes
3answers
672 views

Automator: Service to list File Paths of selected items, into Text File

How can this Automator Service for Finder be created? I'd like to be able to use Finder's Context menu (by right-clicking a Finder item) to run a Service that gets the file paths of the selected ...
4
votes
2answers
1k views

How to get an application executable path from Terminal

In macOS, applications can be launched from the command line with open -a < application name>. I would like to know if there is a command that returns the executable within the application ...
1
vote
2answers
409 views

Adding a new directory to PATH varibale

What is the de-facto way to export a binary/executable to my global PATH? I have seen different answers to this, but I am looking for the best answer. Basically, if I go on Github and download a ...
3
votes
2answers
87 views

Path Variable Limit

Is there a character limit on how long your PATH variable can be on macOS? Or is there a limit in terms of the amount of binaries you can reference in your path?
2
votes
1answer
2k views

Cannot run refind-install from Recovery because “/usr/bin/env: bad interpreter”

I have managed to change the present working directory to the folder containing downloaded rEFInd files. I have booted to Recovery Mode. The refind-bin-0.11.3 folder was downloaded to my Downloads ...
4
votes
1answer
3k views

Add Environment Variable to PATH

I am new to the Apple "eco system" and I am trying to setup my environment variables for local development. Here is what I have in my ~/.bash_profile (simplified for brevity): export PATH="$...
2
votes
1answer
96 views

How can I determine which paths are required?

I am using Mac OS X Snow Leopard 10.6.8. My Mac has several volumes with OS X and each volume has several users. I wish to minimise the work required to ensure that my paths are adequate both for ...
2
votes
1answer
102 views

mdfind -onlyin wildcard without pipe

Can -onlyin contain wildcards? mdfind pattern -onlyin '*bin' I know this works: mdfind pattern | grep bin

1
2 3 4 5 6