Questions tagged [path]

PATH (all upper case) is the name of an environment variable on Unix-like operating systems, DOS, OS/2, and Microsoft Windows, specifying a set of directories where executable programs are searched for.

98 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
1k views

anaconda Qt vs system Qt

The anaconda python framework includes its own Qt shared libraries, among other ones. Because of the nature of the framework, it must appear first in the PATH environment variable so its python ...
2
votes
3answers
45 views

How to track which file adds a path in PATH?

Something adds an undesired path to my PATH environment variable. How can I find the culprit? I've already looked at: ~/.bashrc ~/.bash_profile /etc/bashrc /etc/profile /etc/environment
2
votes
0answers
183 views

Issue setting environmental variable in tmux and screen

Whenever I use Tensorflow (a python library) from within a tmux or screen session, I have to manually change the environmental variables. Specifically, I have to type export PATH blah blah blah and ...
2
votes
1answer
647 views

call bash script in script not found, directory is in $PATH

I have added a directory to my PATH variable to access all my bash scripts. I add the PATH globally on the system under /etc/profile.d/custom.sh as follow: export PATH=$PATH:/usr/local/bin/helper ...
2
votes
0answers
165 views

Every time I open a terminal is located in / not in home

I recently installed Fedora -- a fresh installation. I have a problem: every time I open a new urxvt or gnome terminal it starts in the root of the system instead of my home. I checked my /etc/passwd ...
2
votes
0answers
344 views

How to fix node in armv5

I am trying to fix nodejs on mlinux. So when i do a uname -m the output is armv5tejl. It came with pre-installed node and npm. I tried to upgrade but somehow i think I have broken something. Now when ...
2
votes
1answer
569 views

How to change PATH priority for specified command in zsh

I installed vim by using brew, but because /usr/bin have higher priority than /usr/local/bin/ the /usr/bin/vi is called by default. which -a vi /usr/bin/vi /usr/local/bin/vi I can create a alias in ~...
2
votes
0answers
160 views

How to set up environment after installation of a software inside home directory?

I am not familiar much with environment and path settings in UNIX environment. I have installed CDO (climate data operators) in a folder in my home directory. I am only able to run it when I go into /...
2
votes
1answer
177 views

Assigning static device path

I have 4 flash cards plugged in, sequentially named by system: /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 I want to assign static pathes to them, so every time the system boots up their pathes will ...
1
vote
0answers
19 views

PATH setup in Zsh in OS X

I have the following in my notes from some research that I did in Zsh in OS X in the past. Between ~/.zshenv and ~/.zshrc, OSX seems to call /etc/.zprofile which calls path_helper, which itself ...
1
vote
0answers
32 views

Performing job array by reading in file paths from a text file

I am trying to perform a job array using script below. #!/bin/bash --login #$ -cwd #$ -t 1-4 module load apps/bioinf module load apps/trimmomatic/0.36/noarch file=`awk "NR==$SGE_TASK_ID" ~/scratch/...
1
vote
1answer
274 views

create a folder from dynamic path location

I would like to create a folder which location is available in abc.csv file. abc.scv content the following fields id,path and file name we should read the file name and move the file in the path ...
1
vote
0answers
25 views

Set path for non shell user

I have installed Adopt OpenJDK version of Java. I set it up so all users will have JAVA_HOME set and that the bin folder for Java is in the PATH. However the software I installed afterwards that ...
1
vote
0answers
58 views

sudo root cannot find executable on path

I am on CentOS 7.5 and installing OpenJDK 11 from Adopt OpenJDK. It doesn't have an installer package so I am manually putting it in /usr/share. I then create the file /etc/profile.d/java.sh to set up ...
1
vote
0answers
171 views

How do I get Rofi/Dmenu to read my $PATH?

I have a very similar issue to How to get installed application to be detected by rofi? - or rather a followup question. My question is, outside of symlinking, is there a way to export my path for ...
1
vote
0answers
67 views

parallel-ssh not appears in any path after pip installation

we installed the parallel-ssh but after pip successfully installation the command parallel-ssh not appears in any path where we are wrong? locate parallel-ssh which parallel-ssh /usr/bin/which: ...
1
vote
1answer
56 views

how to avoid mounting directories with overcomplicated paths?

Background: I am accessing a remote directory like this: smb://serv.erNa.me/storage/directory/ Accessing it, is not an issue. Through the file manager I copy paste the path, press Enter, insert ...
1
vote
1answer
227 views

Whether wild card symbol can be added to path variable?

Scenario: Parent folder contains, many sub-folders (say in a few hundreds) containing executables or source programs. Say, parent folder, bin contains many sub-folders, mod1, mod2, ... modn (for ...
1
vote
0answers
38 views

Make programs in /opt searchable from launcher

I've installed Telegram and I've the folder "tsetup.1.3.10", where executable files reside, into Download folder. I don't want my programs in Download folder, so I moved they in /opt folder. But, ...
1
vote
0answers
47 views

Windows PDF viewer interprets hyperlinks incorrectly from Linux converted PDF?

I am operating on a RPi Model 3B with Jessie OS and Python version 2.7.9. I am using XlsxWriter (ver1.1.0) to write an .xlsx file and then converting it to PDF using LibreOffice's conversion code, as ...
1
vote
0answers
276 views

Unable to run mvn clean install on macOS Sierra 10.12.6

I am using maven-3.1.1 along with eclipse neon for RCP and jdk-7. I am running into the following issue - Error with Maven command: mvn clean install Problem running the Maven command because the ...
1
vote
1answer
59 views

Linux /etc/profile.d/myscript.sh did not run using VNC

I have a script in /etc/profile.d/setpath.sh #!/bin/sh export PATH=$PATH:/sbin The script is doing simple thing but it does not set my path environment when I use vnc. (Open terminal in vnc) I ...
1
vote
0answers
59 views

Unable to source PATH variable

I am able to source other variables except PATH # cd /data/local # mkdir env # vi env/dev <esc>i PATH=/data/local/workspace/clang+llvm-5.0.0-aarch64-linux-gnu/bin:$PATH CPLUS_INCLUDE_PATH=/data/...
1
vote
0answers
115 views

Bash Completion ignores changes made to sudo's secure_path

I'd like to add a new path (/usr/lib/cyrus/bin in this example) to root's $PATH (and to sudo's secure_path). I'm in Debian, by the way First, I add it to root's $PATH, using /etc/bash.bashrc. So far ...
1
vote
1answer
68 views

Installing compiled program previously installed in other folder

I compiled gcc and dependencies (gmp, mpfr, mpc) in specific folder to get backup of these folders in other not repeat the compile process, and pass to another machines. MAKE Only for update $ tar ...
1
vote
1answer
272 views

From terminal… can't remove Python package (unable to locate), also can't install (already satisfied)

I am running Linux Mint 18 Sarah. I tried to run a .py file which has a pygame dependency, so I pip installed pygame into my virtual (conda) python environment. So far so good. Tested that when I ...
1
vote
0answers
1k views

Why does TMux fail to initialize oh-my-zsh correctly?

Whenever I open a new TMux session, I'm greeted with this: /home/foo/.oh-my-zsh/oh-my-zsh.sh:3: command not found: env env_default:1: command not found: env env_default:1: command not found: grep ...
1
vote
0answers
866 views

Manual install of pdftk can't find libgcj library

I'm trying to get pdftk running on my shared hosting account (no root access). I followed the instructions here, mainly: $ mkdir -p [my_project]/vendor/pdftk/lib [my_project]vendor/pdftk/bin $ cd /...
1
vote
0answers
44 views

Filter grep result-set by paths containing folder1/folder2 and trim the current folder path from result-set

I have a grep command like below to search for all .xml files containing given string. grep -rl 'product_list_toolbar_pager' --include='*.xml' --color=always Now I am using this command on remote ...
1
vote
0answers
174 views

sudo not preserving PATH

I have a strange issue where sudo is not preserving the PATH by default. I tried the answers from this question and it works when I use the sudo env "PATH=$PATH" version but I want to fix this ...
1
vote
0answers
87 views

Internal path not set in GVim when launched from gvim.desktop

shell: bash, fish terminal: xfce4-terminal other-applications: xfce4-whiskermenu, tmux I'm trying to have GVim inherit the full path from bash and/or fish when launching from from xfce-whisker-menu....
1
vote
0answers
289 views

Inspect creation of PATH in osx to find broken path in PATH

Is there any tool or command that can show you your PATH, and for each element in it, what file injected it into the path? There is an invalid path in my PATH that is causing fish shell to complain: ...
1
vote
3answers
180 views

.bashrc path problems

Can anyone tell me how to add a directory, say Idl, which contains many sub-directories to my IDL_PATH in .bashrc such that when I do source .bashrc, I will be able to it is able to run all the ...
1
vote
1answer
47 views

Add to path if in subdir

How can I add a file to the path if the working directory is the directory of the file or one of its subdirectories? So when I'm in /foo or in /foo/bar/ I'll have /foo/foo.foo in my path, but if I'm ...
1
vote
2answers
488 views

Metasploit Directory Doesn't Run Executables Without ./

I have Metasploit installed on OSX in /usr/local/share/msf Metasploit's executables can't be run outside it's directory thus would give a command not found error. msfbinscan msfconsole msfd ...
1
vote
0answers
3k views

Python is unable to import OpenSSL

I created a virtual env for a matrix home server installation on a shared hoster. $ virtualenv -p python2.7 /home/tristank/venv/synapse $ source /home/tristank/venv/synapse/bin/activate I installed ...
1
vote
0answers
1k views

$PATH variable on Fish Shell OS X

I have somehow screwed up my path variables with Fish shell on OS X. Is this the proper $PATH variable in the config.fish? user@host ~> more ~/.config/fish/config.fish set -g -x PATH /usr/local/...
1
vote
1answer
303 views

Bash cannot see PATH update

I am running Debian on a VM. I login to the GUI and go to Applications > Accessories > Terminal. # echo shell: /bin/bash I modified ENV_SUPATH, ENV_PATH inside of /etc/login.defs. I restarted ...
1
vote
0answers
267 views

Nginx wordpress and its wrong path

I've a Raspberry and I installed nginx and over this I put Wordpress. Wordpress installation come from an old backup of a websites that I hosted somewhere else. The URL was mydomain.com/home, now in ...
1
vote
0answers
954 views

GIT on 'mountain lion' will not execute commands

Macbookpro Mountion Lion 10.8.5 I cannot get GIT to execute commands. I have been researching and trouble shooting for 2 days. Some suggestions I have tried are listed at the end. Below will just be ...
1
vote
0answers
2k views

-bash: android: command not found

I'm on a Mac running Mavericks trying to learn how to develop Android apps (in the process I'm learning bash too). To run on the emulator they suggest the command android avd. I always get the error ...
1
vote
1answer
792 views

Path variable not being set properly in zsh

For some reason, my $PATH variable is not being set properly which means I can't run a lot of commands I would like to. Here are the relevant lines from my .zshrc file: if [[ -f ~/.profile]]; then ...
1
vote
1answer
151 views

Java PATH issue when installing JDK7 on centos 32 bit

I have Installed JDK 7 on CentOS 32 bit virtual machine. I also have set the path for java. In one terminal it is showing java1.7 But when I open another terminal and look for, java -version It is ...
1
vote
0answers
197 views

How do the various configuration files determine MANPATH on Darwin?

On Darwin (12.2.0, OS X 10.8.2, bash 3.2.48(1)) my MANPATH appears to be determined by my PATH rather than by the various configuration files associated with man and the man path, /etc/manpaths, /etc/...
1
vote
0answers
558 views

How to install Ruby Test to Sublime Text 2

I am quite new to Ubuntu, so I am running into some problems. I was following this tutorial to install Ruby Tests for Sublime Text 2: https://github.com/maltize/sublime-text-2-ruby-tests There is ...
1
vote
1answer
5k views

add android studio to PATH environmental variable?

I looked around some sites and yielded no success. I tried to modify .bashrc: # User specific aliases and functions export PATH="~/android-studio/bin/:$PATH" and after I typed studio.sh on the shell ...
1
vote
1answer
1k views

Editing the .profile file to access

I am trying to source my .profile file to easily access a directory of javatools. The bash code below seems like it should work but it does not. Any help troubleshooting this script would be very much ...
1
vote
2answers
6k views

CentOs 7 Python Issue “-bash: python: command not found”

I asked this at stackoverflow, but just realized it might be best here. If I need to delete it over there or should not have posted here, please let me know. I am still new to this site. Thanks in ...
0
votes
0answers
21 views

Search for commands (for the present user) starting with some particular letter

Which command could I use list all commands that start with the letter g? I have read the question here but I seek for an answer without arbitrary limits. If shell completion gives an answer, it ...
0
votes
0answers
32 views

I'm not able to figure out why fish-shell is not able to read my scripts directory from $PATH

After my failed attempt to unify my bash and fish configuration, I have finally separated both and 'hoping' that things should be fine now. As per the suggestions I received (against trying to re-use ...