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
3answers
88 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
21 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
42 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
167 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
82 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
31 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
154 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
71 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
119 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
885 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
32 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 ...
4
votes
2answers
1k 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
478 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
107 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
38 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
0answers
64 views

Best way to add /Users/$USERNAME/Library/Python/2.7/bin to path [duplicate]

So, I used pip install <package> to install a package. It lives in the /Users/$USERNAME/Library/Python/2.7/bin. Every time I want to use it I've to: export PATH=/Users/$USERNAME/Library/...
0
votes
3answers
899 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
111 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
330 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
2k 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
171 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
31 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: ...
8
votes
3answers
13k 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
396 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
240 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
141 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/...
2
votes
3answers
427 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
779 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
335 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
84 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
2k 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
93 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
80 views

mdfind -onlyin wildcard without pipe

Can -onlyin contain wildcards? mdfind pattern -onlyin '*bin' I know this works: mdfind pattern | grep bin
3
votes
2answers
158 views

Copy full path of an open file

I have a file open in Preview.app. I can easily view the full path for the same by ⌘ + clicking on the file proxy icon (the icon shown besides the filename in Preview's title bar). How do I copy ...
0
votes
3answers
207 views

Software uninstalled from brew still on $PATH

I've uninstalled software from brew (as I want to use a different version), using MacOS High Sierra 10.13.1 brew uninstall bowtie2 And downloaded the software from SourceForge instead, then copied ...
2
votes
1answer
189 views

Restore path to be read from /private/etc/paths

I used the how to from https://docs.aws.amazon.com/cli/latest/userguide/cli-install-macos.html to install AWS CLI on macOS. After executing command source ~/.bash_profile it seems that my default ...
2
votes
1answer
144 views

Path bar High Sierra doesn't work with search results on SMB fileserver

Yosemite High Sierra Hi there! At our Prepress department I’ve updated some iMacs from Yosemite to High Sierra. When I search in Yosemite on the SMB fileserver for a specific file, I see after a ...
3
votes
1answer
929 views

When I type 'echo $path' in Terminal, I see only a blank line - why?

I know I have a $path variable. If I type 'env' or 'set' at the Terminal command line, I can see what's in the $path variable - along with lots of other extraneous stuff. But if I just type 'echo $...
2
votes
0answers
72 views

path difference on script vs in shell

Why is the output of $PATH different when in a script vs when running $PATH from the terminal? Even for a minimal script like this: #!/bin/bash echo $PATH it will not match what I get when typing in ...
1
vote
1answer
719 views

Deleting a line from Bash profile

So using terminal I typed in: nano .bash_profile I then have access to the following bash_profile : GNU nano 2.0.6 File: .bash_profile ...
0
votes
0answers
38 views

Why does the path sometimes contain icons in Open Recent? Has anyone else even seen this?

Sometimes when I use Open Recent in the File menu of TextEdit, the path appears as a long trail of icons. Often (as shown below) it is doubled, identical on two lines. This seems to happen ...
2
votes
1answer
353 views

Force terminal to use binary from a different path

I have installed pandoc using homebrew and the Anaconda python distribution using pyenv. I've just found that Anaconda comes with its own pandoc binary and since the pyenv shims come before homebrew ...
0
votes
1answer
3k views

Changed my PATH to have /usr/local/bin ahead of /usr/bin and now pip isn't found

I was following this guide to get Python 3 setup, which recommended changing the PATH variable such that "# If you still see 2.7 ensure in PATH /usr/local/bin/ takes pecedence over /usr/bin/". I put ...
2
votes
1answer
1k views

Not a valid identifier upon terminal startup

I am getting this line each time I open my terminal. Everything else seems to be working ok but I would like to get this fixed since I don't think it is a good sign. Last login: Mon Feb 19 09:21:05 ...
2
votes
1answer
473 views

How to revert launchctl PATH to defaults?

There are many questions and commentary about using launchctl setenv PATH /path/to/include in order to have GUI apps inherit user-specified paths. I did this about four years ago, and the changes I ...
3
votes
2answers
1k views

How can one use /etc/paths.d to add a path with spaces in it to $PATH?

I recently installed VMware Fusion 10 on a Mac running macOS 10.12.6. After doing so, my bash PATH is broken. I traced the problem to a /etc/paths.d path file that Fusion installed; it contains the ...
2
votes
1answer
2k views

Missing /usr/local/sbin directory in the /etc/paths file

Why doesn’t the /etc/paths file include the /usr/local/sbin directory on macOS? $ cat /etc/paths /usr/local/bin /usr/bin /bin /usr/sbin /sbin I would have expected: $ cat /etc/paths /usr/local/bin /...
1
vote
0answers
844 views

Terminal OS X export command not working, cannot set new variable/pathway

I'm trying to set a variable, e.g. BIN=../../../../bin but I get BIN=../../../../bin: Command not found. The same for export BIN export: Command not found. It seems that I can't edit the path ...