All Questions
Tagged with paths environment-variables
71
questions
-1
votes
2
answers
460
views
Accidentally changed PATH variable and I cant change it back, or use vim etc..help
I know there are many questions like this, but I unfortunately dont know enough about Ubuntu to be able to apply it to my situation. I have all my stuff saved for work on a remote machine, that i ...
0
votes
0
answers
679
views
Set LD_LIBRARY_PATH for with symlinks
As per the Ubuntu documentation - the only way to permanently set LD_LIBRARY_PATH is by adding a conf file to /etc/ld.so.conf.d/
If I manually run export LD_LIBRARY_PATH=~/nextcloudapp/squashfs-root/...
-1
votes
2
answers
853
views
How to remove a directory's path from the enviroment variable PATH permanently?
I just removed the miniconda3's folder from home/username/, now i want to remove its path from my $PATH variable permanently.
As you can see below, it's the first one:
/home/username/miniconda3/bin:/...
-2
votes
3
answers
774
views
Use of hidden file in system path
In 20.04 I used .bashrc to include a hidden folder in my system path:
/home/robert/.local/...
Since upgrading to 22.04, it appears that the system no longer searches this folder. Has this changed in ...
1
vote
1
answer
3k
views
How to run an executable from any directory in terminal by setting path?
The executable file name is julia. This executable is located at /home/siva/juliapro/julia/bin.
I have set the path to this directory, but still, if I enter julia in the terminal, it says command ...
1
vote
1
answer
1k
views
A path set in /etc/profile/ doesn't appear on other users' environment
I have the following PATH variable in /etc/profile. The last line should allow me to use the conda command for any user.
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and ...
0
votes
1
answer
616
views
Overwrote $PATH [duplicate]
I am new to linux and I was trying to set up path of JAVA_HOME but I accidentally wrote
export PATH=/usr/lib/jvm/java-11-openjdk-amd64
which I think overwrote $PATH.
I am quite sure I have messed up ...
2
votes
1
answer
2k
views
Start intellij from anywhere
I have recently installed Ubuntu and I'm a bit confused.
I have downloaded VSCode and I can simply start it from my terminal using code.
I downloaded intellij and tried idea and intellij but none of ...
1
vote
0
answers
2k
views
Add intellij to environment variables
I have recently installed Ubuntu on my system.
I downloaded Intellij and CLion using Ubuntu Software. In order to open it from terminal I used the command export PATH=$PATH:./clion.sh this command ...
1
vote
1
answer
2k
views
Where do I define LD_LIBRARY_PATH so that Apache can see it?
I'm using Ubuntu 18.04. I have defined this in my /etc/profile file
export LD_LIBRARY_PATH=/usr/local/lib/
I'm trying to figure out where I define the above so that Apache can see it. Currently, ...
0
votes
1
answer
887
views
How to make an environment variable (cern root) permanently?
I am pretty new with Ubuntu as the Windows subsystem. I've been trying to run the ROOT data analysis framework (change its path to make it available permanently) but for some reason is not working as ...
-1
votes
1
answer
61
views
My System is failed to unlocked
I mistakenly change my variable path of my xubuntu 18.04, i have tried many options found in this platform but is not working for me.
Please i need an urgent help Screenshotof my tty4 console
0
votes
0
answers
2k
views
How to add to /etc/environment?
I use a mac at work, which has /etc/paths to add paths, with the syntax:
/usr/foo
/usr/bar
Using wsl with ubuntu-18.04-ls, I wanted to add "/home/linuxbrew/.linuxbrew/bin" to etc/environment, ...
1
vote
0
answers
157
views
After removing sddm and lubuntu-desktop, my desktop environment is missing some environment variables
After removing sddm and lubuntu-desktop, and using startx to spin up a graphical interface with my window manager of choice (cwm), ~/.local/bin is not on the PATH anymore. I googled around and it ...
0
votes
1
answer
441
views
Set path environment variable in Ubuntu [duplicate]
By mistake, I changed the path environment variable in Ubuntu.
Now when I turned my pc on, the login screen is coming and after entering my password and pressing enter, the screen goes away for a ...
0
votes
1
answer
6k
views
How to permanently change a PATH variable in Debian [closed]
I'm trying to change the directory that is accessed when I call blender in my terminal.
This is currently where it is:
...$ which blender
/usr/bin/blender
And I'd like to instead use the version ...
1
vote
1
answer
750
views
Can't append to PATH in ~./bashrc using $Home
I just want to add a path in ~/.bashrc as:
export PATH="$Home/gg/gamit/bin:$Home/gg/kf/bin:$Home/gg/com:$PATH"
But when I am using echo $PATH is showing it as:
/gg/gamit/bin:/gg/kf/bin:/gg/com:/...
0
votes
1
answer
247
views
Run node script with a global variable
I have a node script index.js with a node_modules folder.
/script/myTestJscript/index.js
/script/myTestJscript/node_modules
/script/myTestJscript/package.json
I could run the script with the command ...
0
votes
1
answer
17k
views
My $PATH variable is messed up. How to change it back?
Whenever I try basic commands in the terminal like sudo or ls, I get this error:
Command 'sudo' is available in '/usr/bin/sudo' The command could not be located because '/usr/bin' is not included ...
1
vote
1
answer
6k
views
How to set the path to the latest Open MPI version?
I'm using Ubuntu 14.04 and the installed Open MPI is 1.6.5; I've installed the Latest Open MPI(4.0.0) following these instructions here and set the installed location by-
./configure --prefix=/$HOME/...
4
votes
1
answer
32k
views
Adding folders to your PATH environment variable
Currently running Ubuntu 18.04 LTS. I'm trying to install Ndless
and the SDK that goes with it so I can write programs in C and run them on my calculator. Anyways, I was wondering if somebody could ...
6
votes
3
answers
15k
views
Set LD_LIBRARY_PATH correctly
I am using Docker with image of Ubuntu 16.04. I am using this docker to run:
Import C++ classes in python with the help of boost.python
Import matlab's python package in python with the help Matlab ...
1
vote
1
answer
376
views
Understanding how PATH environment variable works
I have followed many guides and books to understand the PATH variable concept but none of them explains "completely" how this works in Linux.
For example if I set a a Path like the following in Bash:
...
1
vote
0
answers
89
views
Ubuntu 16.04: Log in problem when using prime-select intel and adding /usr/lib/nvidia-396 to LD_LIBRARY_PATH
I'm doing some computation with my GPU (GTX 970) so I decided to use my integrated card from my CPU (i7-4790K) to display my 2 screens, hence I used prime-select intel to do so.
In doing so it seems ...
5
votes
2
answers
23k
views
PATH=$PATH:`pwd` - What happens when this command is executed?
What happens when this command is executed?
PATH =$PATH:`pwd`
Error: Nothing happens when i execute the command in the terminal.
2
votes
1
answer
163
views
How can I install petrify and set it up?
I want to install petrify -- a tool for simulation of Asynchronous Circuits -- so I downloaded the file and in this folder there is an INSTALL file that says:
You should define properly define the ...
4
votes
2
answers
17k
views
When I do an export path using terminal, which file does it save to? [duplicate]
For example, when I run export export PATH=$PATH:$GOROOT/bin:$GOPATH/bin or a GOPATH=~/workspace/me/go which file does this get added to?
0
votes
1
answer
514
views
How to solve the conda virtual env and system env conflict on import cv2?
I have installed opencv 3.4.1 correctly on my system enviroment.
But after I create a conda virtual environment using opencv3.2.0, it leads some problems here:
Under the conda virtual env, I have to ...
0
votes
0
answers
148
views
Why should I STILL use --with-boost for ./configure when I exported PATH variable for boost directory
I would love to hear your explanations and methods of solutions for the problem that I have been facing for such a long time by now.
I am working in a remote cluster where sudo command is not allowed ...
3
votes
1
answer
2k
views
Can't cd to newly added Path variable [duplicate]
I added the following line to /etc/environment:
ML="$HOME/ml"
After I re-logged in for the script to take effect, running
printenv ML prints $HOME/ml and running cd $ML prints
bash: cd: $HOME/ml: ...
17
votes
1
answer
60k
views
How to set LD_LIBRARY_PATH permanently?
I am using Ubuntu 16. I want to use cfmid for my project. When I set LD_LIBRARY_PATH in terminal, I can get output of the cfmid library:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/lclab/installed/...
0
votes
1
answer
1k
views
Setting "$PATH" environment for Unix "which" command
I am trying to run two chemistry programs together that need the PATH environment changed in order to find one another. The manual says:
Under the UNIX operating systems, R.E.D. looks for the "...
3
votes
1
answer
2k
views
Which of these Paths should I use as the value of JAVA_HOME?
I am running Ubuntu 16.04. I have downloaded JDK 7.0 from Oracle website and untar'ed and put it in a folder /opt/JDK/, such that the final install directory is /opt/JDK/jdk1.7.0_80 Then I executed ...
2
votes
1
answer
14k
views
Get anaconda root directory
l'm looking to get my anaconda root directory. so l run :
which anaconda3
l got
/root/anaconda3/bin/anaconda
Is that my anaconda root directory ?
3
votes
1
answer
3k
views
'/bin' is not included in the PATH variable after installing Java JDK 8.1
I installed Java JDK 8.1. Now I have this issue.
mohammed@mohammed-HP-Pavilion-g6-Notebook-PC:~$ ls
Command 'ls' is available in '/bin/ls'
The command could not be located because '/bin' is not ...
141
votes
6
answers
354k
views
Setting PATH variable in /etc/environment vs .profile
Where is the preferred place to set the PATH envvar?
~/.profile or /etc/environment?
What is the case when PATH is set in both places?
Is the end result a concatenation of both values set in those ...
1
vote
2
answers
4k
views
What does MANPATH, LD_LIBRARY_PATH mean in Linux?
What does MANPATH and LD_LIBRARY_PATH mean in Linux ? What are the uses of these?
4
votes
0
answers
5k
views
LIBRARY_PATH,LD_LIBRARY_PATH empty - Ubuntu 16.0.4 LTS
I have been using my machine with no issues, but when I want to add my custom path to default lookup paths for libraries I am not able to because LD_LIBRARY_PATH is not set (empty). So I copy my ...
3
votes
4
answers
37k
views
How to reset my $PATH environment variable back to default?
I am a noobie. I tried searching the duplicates for answers, but none worked. I accidentally altered my $PATH variable in my terminal when trying to install ghc. Every time I open a terminal window I ...
1
vote
1
answer
1k
views
PATH variable in different terminal windows
I note that if I have several terminal windows opened and in one of them I set path variable through bashrc:
export APP_PATH="path_to_app"
export PATH="$APP_PATH:$PATH"
Then call:
source ~/....
0
votes
1
answer
1k
views
How to set path for the Tomcat7 user
I'm trying to install an extension for GeoServer. The instructions say:
Create a GDAL_DATA environment variable to the folder where you have extracted this file. Make also sure that this directory ...
2
votes
1
answer
564
views
What files are run when I log into the desktop?
I don't know how to phrase this to be clear. I'm not talking about terminals or shells, I know what the difference between login and non-login shells are. What I want to know is when I start up my ...
2
votes
1
answer
2k
views
Vim-LatexSuite: /bin/bash: latex command not found
TeXLive 2015: I installed TeXLive 2015 following the simplest instruction sudo ./install-tl-ubuntu (without any options) of scottkosty/install-tl-ubuntu@GitHub.
Vim-Latex-Suite: I installed Vim-Latex-...
0
votes
1
answer
1k
views
Added wrong path to $PATH variable but can't find old varaible to delete it
I'm trying to install virtualenv and virtualenvwrapper to set up and IDE for Python, following a tutorial for this on Ubuntu I accidentally entered the wrong path to the virtualenvwrapper. When I try ...
0
votes
1
answer
2k
views
Problem with adding path using zsh
I added a directory modifying ~/.profile and adding export PATH=$PATH:/home/...etc etc. But I realized that using zsh terminal I couldn't use the recently installed binary until I logged out from zsh. ...
3
votes
1
answer
2k
views
Path given in Environment variable shows empty after reboot
I am trying to set environment variable CATALINA_HOME for tomcat server. I used the command
CATALINA_HOME=/usr/local/apache-tomcat-8.0.22
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386
and
export ...
3
votes
2
answers
7k
views
How to path set in Ubuntu 15.04 of Java , download the version of java-8-oracle?
I am new to Ubuntu. Recently we changed my OS to Ubuntu 15.04. I am installed java-7-openjdk-i386 from "Ubuntu Software Center" and when I use the "Android Studio" then it highly recommended me to ...
3
votes
1
answer
5k
views
Does order of precedence with ENV variable changes which program to use?
Question: Does order of precedence in the PATH influence Ubuntu to choose which program to use?
More details:
I use .bashrc for declaring private env PATH, I have installed MSP430-gcc from ubuntu ...
0
votes
1
answer
104
views
Server cannot run apt-get anymore
I was trying to setup an older version of gcc (4.1) on ubuntu 14.
I was having some difficulties to set alternatives. I so thread where someone said to use this command:
export PATH="/usr/bin:$PATH"
...
1
vote
2
answers
582
views
Creating a Path Variable
I need to set a path for a variable $week4 to be Week4/assignment so that typing cd $week4 will change the working directory to Week4/assignment/
I've seen a few examples of similar stuff on here, ...