Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7693 Discussions

source vs executing from dash compilevars.sh to set environment variables

mfactor
Beginner
138 Views

Hi all, 

The installation procedure recommends that, to se the environment variables, the scripts compilevars.sh must be sourced if the shell is dash/bash. I'm trying to change the paths manually for an external program (Kate), so I can't source compilevars.sh. I need to execute the script using ./. Is this possible? How should it be done?

Cheers

0 Kudos
1 Reply
Melanie_B_Intel
Employee
140 Views

I don't know anything about Kate, but invoking the compilervars.sh via execute won't get the desired result, because it's in a different process context. Can  you set up the environment variables (i.e. using "source") before you start Kate running?  

Reply