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
6
votes
6answers
95k views

Why does my brew installation not work?

I installed brew before, but it does not work now. When I run brew, it gives me the error -bash: brew: command not found So I tried to reinstall using the code ruby -e "$(curl -fsSL https://raw....
0
votes
2answers
36 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 ...
0
votes
0answers
35 views

“sh: wine: command not found” on Mac, despite wine installed?

all. I have been using Wineskin Winery to run Windows programs for almost a decade at this point, and though I have already gone through my fair share of issues (using winetricks, checking engine ...
1
vote
1answer
21 views

Updating path openssl keeps using wrong path

I had to downgrade openssl version for mysql. But when I ran openssl version I still got the wrong version. So I checked which openssl and I saw that it's using from anaconda: (base) ➜ ~ which ...
0
votes
1answer
173 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 ...
19
votes
6answers
2k views

How do I change the location of macOS screen captures?

As a developer, I take a lot of screen captures. I often take screen shots to share with Stack Exchange members in chat. The problem is my Desktop is so cluttered with screen captures that they're ...
1
vote
0answers
29 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
41 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 ...
1
vote
0answers
41 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
92 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 ...
11
votes
5answers
37k views

How can I add a path to the PATH environment variable?

I want to add a path to the PATH environment variable? I have tried with export PATH=/mypath:$PATH and it works. But the next time I start the Terminal, my new path is not int the PATH environment ...
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, ...
3
votes
3answers
710 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 ...
0
votes
1answer
27 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
203 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 ...
41
votes
3answers
32k views

How to change path in Finder by entering the path manually?

It seems that by default there is no way to enter a whole path in the Finder, so instead one should traverse through all the tree to get somewhere deep in the filesystem. Is there anyway to overcome ...
2
votes
3answers
2k views

Temporary Folder Path for Apple Script

set targetFile to (path to temporary items as string) & fileName I am trying to download a web image to temporary folder by curl in a Apple Script. According to the above code, the curl ...
2
votes
2answers
203 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
1answer
260 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 ...
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
110 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
85 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 ...
79
votes
8answers
52k views

How to set PATH for Finder-launched applications

Apps launched via Finder seem to not respect the PATH as set in .bash_profile. So when I try to run code from an IDE (Intellij) I no longer have access to programs in /usr/local/bin, which is ...
1
vote
3answers
787 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 ...
1
vote
2answers
662 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
61 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 * * * ...
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
148 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
443 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?
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 ...
3
votes
4answers
901 views

default application to open folders with

Back in the days I used to run Path Finder for a while, but then removed it from the system and went back to regular finder. Now when entering i.e. open Desktop/ in the terminal, it opens up Finder ...
0
votes
1answer
101 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 ...
6
votes
3answers
8k views

How is my $PATH variable built on macOS?

I've recently installed Homebrew on my Mac and it's complaining that /usr/bin occurs before /usr/local/bin in my $PATH variable, meaning that system-provided programs will be used instead of those ...
0
votes
0answers
50 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 ...
2
votes
2answers
802 views

How display file path at bottom in “All My Files” on Sierra 10.12.3?

On older versions of macOS there used to be a file path at the bottom of "All My Files" so you could see where the files were located & click to path if wanted. Here's a random example I found ...
1
vote
2answers
2k views

Can't run Python script from anywhere, even after PATH variable was edited? [duplicate]

I was trying to set up my Mac to run custom Python scripts from anywhere without having to type python [script.py] or the explicit file path. The script is called "testscript". I put the script in ...
5
votes
3answers
7k views

How to make an executable .py available everywhere on OS X?

I have this directory /foo/bar/. Inside, I have a python file named myfile.py. I made it executable by adding (at the top): #!/usr/bin/env python Then, I made it executable by issuing chmod +x ...
0
votes
1answer
372 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/...
3
votes
2answers
12k views

Get AppleScript Path of Parent Folder

I am writing an AppleScript that will be run from a USB drive, but the dive name may change often so I need to figure out how to get the directory path of the parent folder that contains the script. ...
2
votes
1answer
156 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
4k views

How do you get a clickable path to a file or folder?

I already saw a lot of questions and answers about how to copy the path of a file or folder using Automator. I personally like to use the copy option under the action menu on top of your finder ...
1
vote
1answer
67 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
2k views

What is the Default content in /private/etc/paths?

I have edited /private/etc/paths to allow access for Homebrew: /usr/local/bin /usr/bin /bin /usr/sbin /sbin I want to restore this file to the system Defaults. What are the default lines and default ...
0
votes
1answer
239 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/...
15
votes
5answers
39k views

I broke my PATH by editing my ~/.bash_profile and Bash will not recognize most commands

in .bash_profile I accidentally set the path to: PATH="~/Tools/apache-maven-3.3.3/bin" and now the default path is gone. Nothing in Terminal works anymore: Korays-MacBook-Pro:~ koraytugay$ ls -bash:...
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 ...
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: ...

1
2 3 4 5 6