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
448 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
590 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
137 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
25 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
753 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
115 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
27 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
508 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
738 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
474 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
137 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
137 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
299 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
403 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
771 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
534 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
976 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
591 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
77 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
2k 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
10k 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
566 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
157 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
639 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
5k views

Applescript: path to files in application's Resources

I'm new to applescript and coding. I'm trying to make a little Applescript application that plays an audiofile contained in the .app, using: do shell script "afplay " & quoted form of ("/Users/...
0
votes
2answers
61 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
3k 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
80 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
85 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
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: ...
0
votes
1answer
123 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
169 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
499 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
71 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
434 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
81 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 ...
0
votes
1answer
607 views

Launch Agent not running Bash File

I have a bash script imagecopy.sh that backups images which are located in a subdirectory with a prepended date string: this works perfectly fine when I execute it from the directory it resides in - /...
0
votes
1answer
148 views

Installing Casper; a program that needs to be placed in a directory on my PATH

I need to install software but I don't understand how to do so. I have downloaded a file which contains 5 files which includes a Unix Executable file which when I open displays this: Last login: Tue ...
0
votes
1answer
720 views

How to reset the $PATH in terminal OS X El Capitan? tried previous posts but did not work [duplicate]

I accidentally messed up my $PATH. I Tried to follow the instructions from the previous similar questions but I keep having the same problem When I type: echo$ PATH, I get the following response: /...
0
votes
1answer
864 views

Why OSX symlink cannot Relative PATHs?

System in OS X 10.11.4 El Capitan $ cd $HOME $ ls . > Dropbox > BTsync Code which creates unsuccessful symlink ln -s BTsync/ Dropbox/ Code which creates working symlink ln -s /Users/masi/...
0
votes
2answers
53 views

Did I mess up my .profile file?

I was trying to update my system path, followed some directions online and accidentally types: touch ~/.profile Did I overwrite my .profile file? Does this mean that I have destroyed all of my PATH ...
0
votes
1answer
54 views

Access path of open file

I have a file open in, say, a pdf viewer (or some other application). I want to get the path of the open file as text. A simple approach to know the files location is to chose "Save As" - the ...
0
votes
1answer
44 views

Adding a compiled application to $PATH. Understanding the problem

I'm trying to understand the whole $PATH problem but I've got no luck so far. Suppose that I've just compiled an executable with make and I need to launch it with the shell without using the full path....