Friday, April 26, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 598  / 2 Years ago, wed, may 25, 2022, 3:00:43

I am trying to install ROOT, using a location-independent installation.
I've come as far as step 2.



The next step is:



Add bin/ to PATH and lib/ to LD_LIBRARY_PATH.



I've read in other questions that I need to edit .bashrc - is that correct?
What exactly do I need to put in there to manipulate these paths?



Thank you!


More From » 11.10

 Answers
4

For a location-independent installation, do the following:



In the directory of your application (in this case the root directory), open (or create) a shell script myshell.sh (e.g. using vim: vim myshell.sh)



Insert the following lines:



PATH=$PATH:./bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./lib


Make sure to source the file after-wards:



. myshell.sh


This has the benefit that your installation is location-independent and you may relocate the directory freely. It does come at the cost that, since your shell is not a .bashrc or the like, it will therefore not be executed automatically. You will have to source the shell on every re-login.


[#39586] Friday, May 27, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nnaisdio

Total Points: 369
Total Questions: 112
Total Answers: 108

Location: Kenya
Member since Mon, Jun 14, 2021
3 Years ago
;