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
1answer
807 views

What is the complete, authoritative way in which Mac OSX 10.9 and later builds its PATH?

I have read just about every article on this subject. To wit, I know about: launchctl setenv /etc/launchd.conf /etc/paths /etc/paths.d/* /etc/profile /etc/bashrc ~/.profile ~/.bashrc ~/.MacOSX/...
1
vote
1answer
64 views

Saving to a specific path with the save prompt

How do you save to specific paths with the save prompt WITHOUT navigating through the GUI? It's extremely annoying how I cannot just write paths into the save-as dialog box.
1
vote
1answer
2k views

Why does my path not get saved even after editing ~/.bashrc? [duplicate]

I've added maven to my path, but it doesn't seem to be persisting to the path beyond the lifetime of the terminal application. I've modified my ~/.bashrc, but it still isn't storing the modified path....
1
vote
2answers
387 views

Escaped path in AppleScript adds leading /

I have the following AppleScript that I am trying to debug: tell application "System Events" set theResult to (do shell script "sqlite3 ~/Library/Application\\ Support/Dock/desktoppicture.db \"...
1
vote
1answer
300 views

File path error in Applescript/TextExpander

I use the following code to open my dropbox folder quickly using textexpander. tell application "Finder" activate set f to POSIX file "/Users/MrT/Dropbox" open f end tell Which works, ...
1
vote
1answer
918 views

Permission denied error when opening Terminal

I'm using a clean install of 10.8. I wanted to add a couple of directories to my path. I tried adding them to /etc/paths using sudo vim /etc/paths Now when I open a terminal window I see this: ...
1
vote
1answer
480 views

How do I change my (non-interactive shell) PATH?

For example, when I launch Emacs from the terminal (an interactive shell), I can use "M-x shell". When I launch Emacs from the dock (which spawns process from some other shell), I cannot, because "...
1
vote
1answer
595 views

Many programs notify me that “grep/sed/uname/… not found”; some run, some don't. My system(?) path is damaged, how do I go about a diagnosing it?

Some manifestations of this problem: macports won't install, MATLAB won't run, BTT works but incessantly spams me with " not found" popups, and emacs shell does not work. My interactive shell PATH is ...
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 &...
1
vote
0answers
235 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 ...
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
0answers
926 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 ...
1
vote
0answers
154 views

How to set the Screenshot directory with Jamf?

I'm using Jamf to configure my companies MacBooks and just recently got the request from Management, that every screenshot taken should be placed in a special Directory. For now, the only thing I ...
1
vote
0answers
29 views

Including server names in file paths

We have two servers, ServerOne and ServerTwo. Each server contains a folder called Projects. On Windows, the paths to each of these folders are \\ServerOne\Projects and \\ServerTwo\Projects, ...
1
vote
1answer
527 views

rbenv global version of ruby vs Sierra ruby version

Following this OSX Sierra tutorial from the folks at gorails, I am having trouble getting rbenv global to associate the install of 2.3.0 with the ruby command and to override the default ruby version ...
1
vote
1answer
765 views

Can't seem to install e2fsprogs properly

I'm following a tutorial requiring me to use mke2fs. I found that I could install it by brew using brew install e2fsprogs Tthis returned the following: This formula is keg-only, which means it was ...
1
vote
0answers
507 views

How do items in the 'Applications' folder get on the path?

How does the 'Applications' folder get on the path? For example, I installed Chrome browser into the Applications folder on my Mac and I can type chrome at a bash shell prompt to start it. Now, if I ...
1
vote
0answers
141 views

Copying a path of the app to a new directory?

I was wondering if someone could help me make an AppleScript that copies the app the script is into another location. So, this is what I tried... (Please don't say anything since I am new at ...
1
vote
2answers
141 views

Copy a file's NSURL to clipboard

I am trying to do a rather simple thing: in the context menu I want to have an action (e.g. with Automator) that gets and copies the file's NSURL to clipboard. The solution seems simple, but it does ...
1
vote
0answers
317 views

Adding a directory to $PATH doesn't work in Yosemite

I've tried to do it both ways: 1. I edited ~/.bash_profile like so: $ cat ~/.bash_profile export PATH="${PATH};~/bin" $ $ ls -l ~/.bash_profile -rw-r--r-- 1 myuser staff 202 Oct 1 16:57 /Users/...
1
vote
3answers
444 views

Problem: How to clear all remnants of random.py, random.pyc, and random.pyo that isn't part of Python's standard library?

I wrote an import random code, and unfortunately saved it as the module's name I was trying to call. eg. random.py I believe, but am not sure, that I created the random.py file twice and thus I ...
1
vote
0answers
772 views

Configure a separate root folder for Sites directory

I have re-written this entire post as I realized it originally did not make much sense (That would be a funny comment for a program). I'm developing a web project in localhost with a very organized ...
1
vote
1answer
546 views

How do I use the MacPorts version of nano as my default text editor?

I tried installing nano using "port install nano", but using the "nano" command doesn't open the macports version. $ which nano /opt/local/bin/nano $ /opt/local/bin/nano --version GNU nano version ...
1
vote
1answer
36 views

How to bend a path in Keynotes?

I can not find the 'curved path button' in the Build Inspector which allows me to curve a path. Can anyone tell me where to find it?
1
vote
1answer
1k views

Why can't I chmod to make a file executable without sudo?

On OS X 10.6.8, I made a small script file in my home directory and tried to make it executable. Surprisingly, I found that chmod had no effect until I ran it as super-user. I own and have write ...
0
votes
1answer
594 views

Command found with `which` at the new paths but still tries to run from the old path

I have installed new version of npm in the custom directory .npm-global/bin and removed it from /usr/local/bin. The new path is declared: PATH=/usr/local/bin:./node_modules/.bin:/Users/dmitrizaitsev/....
0
votes
1answer
80 views

How to locate a particular place in macOS?

In this link, there is the unix command $HOME/.matlab/<version>/matlab.prf. How to go to this place by using terminal?
0
votes
3answers
2k views

Can homebrew and RVM agree on a $PATH?

I'm trying to install Yeoman.io and part of it requires Homebrew to be installed. I am on Mountain Lion (10.8) and things seemed to install correctly except when I run $ homebrew doctor it complains ...
0
votes
2answers
3k views

ERROR: AUCTeX cannot find a working TeX distribution (macOS Sierra)

I have installed MacTex and GNU Emacs on my iMac. I have created a simple tex file (the one suggested here) and tried to run LaTeX on it by hitting C-c C-c, but the following message appeared: ...
0
votes
3answers
11k views

How can I reset $PATH in OSX?

When I run: echo $PATH I get this: /usr/local/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3....
0
votes
3answers
1k 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 ~/....
0
votes
1answer
2k views

How to export to $PATH permanently because .bashrc file doesn't exist in $HOME directory

I am trying to figure out macOS and want to install Composer which was not a problem....but I need the Laravel and Symfony installer and in the documentation it says that I need to export the variable ...
0
votes
2answers
265 views

Command path for exit

How would I find the command path for exit? I have already tried which exit but that returns nothing (it just goes to a new line). I have also played around cd /usr/bin, and when in that directory ...
0
votes
1answer
4k views

New MBP with Sierra, /usr/local/bin no longer accessible unless root

I just got a brand new MBP with a fresh macOS Sierra install. I installed Elm, which simply puts 5 files in /usr/local/bin. However, when I try to run any of those files, they aren't found: Scotts-...
0
votes
1answer
712 views

Finding file in parent folder of an AppleScript

I have an AppleScript that calls another script (a perl script in this case) which resides in the same folder as the AppleScript. Now I'm trying to put the script into a variable like this: tell ...
0
votes
3answers
2k views

OS X: common paths for executable files

I have some executable files in OS X which I want to access from terminal from any area. For example in Linux, we can copy executables or binaries to /usr/local/bin or /usr/bin. So similar to that ...
0
votes
1answer
479 views

OS X 10.10.4 Yosemite, has the default PATH changed?

Today I had to configure a new macbook, running 10.10.3 out of the box and immediately upgraded to 10.10.4. After installing homebrew I went to configure the default PATH, and opened /etc/paths. I ...
0
votes
2answers
65 views

How do I see the location path of an application?

I need to check the path to a program -- I want to point to the binary, not to the ".app" which is a directory. How do I do this?
0
votes
1answer
4k views

$PATH error on a terminal

Before you raise your pitchforks, this is NOT another "How do I change my $PATH variable value?" question. I had installed Oh my zsh on my machine(Macbook Pro), and didn't like it. So I uninstalled it....
0
votes
1answer
25 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 ...
0
votes
1answer
86 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
1answer
218 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
32 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: ...
0
votes
1answer
164 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/...
0
votes
3answers
260 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 ...
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 ...
0
votes
1answer
582 views

How can I tell an Automator action, that the source path of a document should also be the destination path?

I'm using the Automator action "Convert to PDF" from ABBYY FineReader Pro. It just does OCR recognition on a given file and saves the output to a new PDF. It looks like this: The issue I'm having ...
0
votes
1answer
74 views

How to make “Go to Folder” show current path?

One thing about MacOS I don't understand is how to quickly navigate the Finder in terms of quickly editing your file path. I.e in a centralised Version Control I may have /Software Projects/My ...
0
votes
1answer
457 views

nginx.vim syntax highlighting

Attempting to use a VIM syntax highlighting plugin for editing nginx config files on El Capitan. It doesn't take. It asks that you place these files and add these directores: ~/.vim/syntax/nginx.vim ...
0
votes
1answer
83 views

If I change my computer name how does it affect my computer's paths?

I wanted to change my computer's name and did so. I used it for a while but when doing other programming related work felt like I was hitting a wall sometimes because of pathing. I changed ...