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
2
votes
0answers
62 views

Where do I find what's all affecting my $PATH?

When I echo $PATH I get: /Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/arukaj/Library/Android/sdk/platform-tools/:/Applications/XAMPP/...
2
votes
0answers
2k views

Xcode 8 and iOS 11 incompatibility despite having copied device support files

I have set up up a new computer (MacBook Pro) from a backup I made yesterday from my old computer (MacBook Air). In the process of that setup, I changed my user's home folder name, strictly following ...
2
votes
0answers
362 views

bash: ping: command not found [duplicate]

My shell can't find ping. $ ping -bash: ping: command not found $ uname -r 14.5.0 $ echo $PATH /usr/local/bin:/usr/bin:/bin:/Users/alex/.cabal/bin $ which ping $ However, man ping works and ...
1
vote
1answer
147 views

Adding Mac-specific directory to PATH when home is shared

My /home/myusername/ directory is provided through a network, and looks exactly the same on my Linux machine and my Mac Mini. I'd like to add to PATH a directory of Mac-specific software in my home, ...
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
3answers
112 views

Use incomplete file path in terminal

In terminal is there a way for Terminal to guess a file based on an incomplete file path? For example: Instead of /Users/me/foo1/foo2/foo3/foo4/TargetFile, is there a way to just do /foo3/foo4/...
1
vote
1answer
404 views

How is $PATH created?

I am still relatively new to the workings of the Mac OS but have extensive knowledge of Linux. I updated my php on Mavericks using the php_osx and the instructions stated to use export PATH=/usr/...
1
vote
1answer
964 views

Homebrew (unlike Macports) does not put programs ahead of system's

Macports inserts /opt/local/bin/ ahead of /usr/bin in the path, and so if the same program exists in both folders, the Macports-installed one takes precedence. I'm unclear on how Homebrew manages ...
1
vote
1answer
1k views

My terminal path in macOS SIerra is messed up

Few months ago, I was trying to download pygame on mac. It was very difficult but I finally did it through terminal using bash. But after the download, I think there was some change on default path ...
1
vote
1answer
62 views

$PATH looks corrupted, is my hunch about the fix right?

I'm looking at my $PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/MacGPG2/bin:/usr/local/mysql/bin:/Users/gpiuser/Library/Android/sdk/platform-tools:/Users/gpiuser/Library/Android/sdk/...
1
vote
1answer
2k views

How do I add the Applications folder to the terminal PATH?

For example, I have Sublime Text that I can open from Spotlight. However, sometimes I'm navigating with the terminal and I want to do sublime source.php, but since I don't have the sublime app ...
1
vote
1answer
894 views

where is the jitsi log?

On Linux, I can "tail" the jitsi log: thufir@tleilax:~$ thufir@tleilax:~$ tail .jitsi/log/jitsi0.log.0 00:08:08.579 WARNING: [59] service.resources.AbstractResourcesService.getSettingsInt().596 ...
1
vote
1answer
1k views

Can I generate a clickable link to local file using relative path like “file:///~”

This is the background: in my company, we use Google Drive and often have to tell each other the path to a particular file. Paths are long as we use a lot of nested folders, so it's pretty boring and ...
1
vote
2answers
1k 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 ...
1
vote
2answers
2k views

brew path didn't cover sbin

I have problem when I used brew to install aircrack-ng. I found out that it cover path /usr/local/Cellar/aircrack-ng/1.1/bin but it couldn't find commands after I tried tab-completion in path /usr/...
1
vote
1answer
1k views

How to add a directory to my path that includes a colon and a space?

I installed MIT/GNU scheme and am trying to add the directory to my $PATH variable so that I can run it from Terminal. The app name MIT:GNU Scheme.app is a veritable "perfect storm" (for path names) ...
1
vote
1answer
27 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 ...
1
vote
3answers
314 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 ...
1
vote
1answer
373 views

Setting up execution path in Terminal

I have no experience with using Terminal but I am trying to install a program msbayes (installation instructions here. The instructions say to set up an execution path using either $ echo 'export ...
1
vote
2answers
717 views

How do I make my Mac use .bash_profile to add extra paths after I statically set $PATH?

I, like an idiot, decided to export PATH=/usr/local/sbin/. After some googling I was informed that one should use a .bash_profile file in the root directory of your user which you can use to append ...
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
21 views

In which file Terminal.app stores its windows?

Usually after reboot/crash all Terminal windows are re-open automatically, this time they weren't. Where (which folder/file) Terminal.app stores the session/information about its windows which ...
1
vote
2answers
1k views

Upgrade RVM and now PATH is broken

My PATH no longer includes /usr/local/bin even though it is the first line of /etc/paths: #/etc/paths /usr/local/bin /usr/bin /bin /usr/sbin /sbin $PATH: $ echo $PATH /usr/bin:/bin:/Users/meltemi/....
1
vote
1answer
45 views

What is the recommend location for storing compiled binaries for NON-admins?

I know that administrators should be installing such binaries in /usr/local/bin, but what if a user doesn't have admin access? And/or what if a user wanted said binaries to travel with their home ...
1
vote
1answer
52 views

Where can I test a path?

I have tto check a path like "volume1:FTPRoot:StenRoot:Stnp00:A12:B38:f000031913". Is there an easy place where I can paste this to unsure me that this path is valid ? PS / I can follow it manually, ...
1
vote
1answer
67 views

Script doesn't find file

Suppose my_folder contains my_script and my_program. my_script tries to run ./my_program -myoptions. It works when I cd into the directory, but not when I double click on it. Here is the output: ...
1
vote
1answer
91 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 ...
1
vote
2answers
305 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 ...
1
vote
1answer
606 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 ...
1
vote
1answer
35 views

can i find usb path and save to variable for quick backups?

i would like to add the path to inserted flash drive named backup1 to a variable so i can copy /Documents/dir to this flash drive path in one script without user interaction
1
vote
1answer
4k views

Adding variables to a shell command in Automator

I use Terminal to run a command. It runs fine from the command line, but I want to be able to automate it with Automator. The syntax of the command (of course, minus the quotes) is as follows: ...
1
vote
1answer
165 views

Cannot remove part of $PATH

I trying to fix any problem I have in brew doctor, so I see: Warning: Some directories in your path end in a slash. Directories in your path should not end in a slash. This can break other doctor ...
1
vote
1answer
881 views

tmux always modify my zsh PATH

I'd like to use tmux inside my iTerm2. and I have the following in my ~/.tmux.conf file. set-option -g default-shell /bin/zsh set-option -g default-command "/bin/zsh -c 'which reattach-to-user-...
1
vote
1answer
1k 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 ...
1
vote
1answer
2k views

Trying to install Ant but getting -bash: brew: command not found

I have installed Homebrew using the code ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" it returns this inside the Terminal window ==> This script ...
1
vote
1answer
642 views

How do you specify Firefox 'open file' location?

Firefox documentation specifies that when you click a link to download a file and select 'open', that it downloads it to a temp folder. While this is true on a Windows system, it is not in Yosemite. ...
1
vote
1answer
1k views

Is it possible to restore PATH? [duplicate]

So I accidentally run in terminal command export PATH="/usr/bin/php/bin" which override my defaults and none of the commands aren't responding. MacBook-Pro-Kil:home $ sudo -bash: sudo: command not ...
1
vote
1answer
4k views

May I remove Python.framework in $PATH enviroment variable?

I recently upgraded Python (via downloaded .dmg files). Before, my $PATH looked like this: /usr/local/bin /usr/bin /bin /usr/sbin /sbin Now when I run the command: $ echo $PATH | tr ':' '\n' the ...
1
vote
1answer
215 views

Why don't I see a path to etags in PATH when running Emacs from http://emacsformacosx.com/ from the OS X dock?

This is a follow-up question to the one at "Is /usr/bin/etags severely out of date in Yosemite?" The Emacs in question is from http://emacsformacosx.com/ (GNU Emacs 24.4.1 (x86_64-apple-darwin13.4.0, ...
1
vote
1answer
2k views

How to configure $PATH (for LaTeX) and run commands in Terminal?

After consulting the programming section of StackExchange, I have been referred to apple.stackexchange instead. I am using the following template: http://www.latextemplates.com/template/masters-...
1
vote
1answer
118 views

Secure delete an erased file using same file

Okay, so I have a late 2013 model retina macbook pro. A couple a days ago i placed a sensitive file on the desktop, and later deleted it by emptying the trashcan. I then read that was not the way to ...
1
vote
2answers
46 views

Yet another path question

I created a Ruby file called Player.rb in the following path: Jwan/studio_game Jwan is my name so I think Jwan is my user file. How do I permanently add the path to the terminal so I don't have to ...
1
vote
2answers
205 views

User's home folder path displaying problem

Let's say the name of my current account is johndoe. Open Finder Preferences, and set "New Finder window show" to johndoe, and add it to sidebar. Then each time opening up Finder after a reboot or ...
1
vote
1answer
290 views

Path export is not working

I'm trying to create a phonegap app but when i run cordova platform add android, I get the error: Error: An error occured during creation of android sub-project. /Users/chrisruno/.cordova/lib/...
1
vote
1answer
802 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
341 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
298 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
876 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: ...