Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
2.00/5 (3 votes)
See more:
every time I run the package launch file have to run the follow command to source the file first:
C++
source devel/setup.bash
in oder to run the launch file. This is a bit troublesome.

So does any way can source the file permanently.

What I have tried:

i had try run the source devel/setup.bash to source it.
Posted
Updated 20-May-16 9:07am
Comments
Richard MacCutchan 19-Apr-16 10:20am    
You do not necessarily have to do that. you need to look at the structure of your installation package.
Albert Holguin 20-May-16 15:00pm    
It depends on install paths... if they're not in default locations such as /usr or /usr/local then you do have to source that every time (or do something to have that done automatically).
Zero_J 19-Apr-16 20:43pm    
ok,thanks

1 solution

Depending on what shell program you use, see the following (Bash is the most common/popular):
How to permanently set environmental variables - Unix & Linux Stack Exchange[^]

You can source your environment file from one of the environment setup files described.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900