I had this working before when profile.d script, but I kept getting complaints about not re-running, and I took it out. No I get "Script setvars.sh not found." when starting eclipse. I have tried several etc/environment SETVARS_CONFIG but not one that works and still get error. SETVARS_CONFIG="/home/opt/intel/oneapi" , plus a "/" and "/setvars.sh". I still get error in eclipse, CentOS8. No build. (The "home" exists because I had to install there as I had not partitioned "/" with enough space.)
Now in terminal if I "source ./1apil.sh", 1apil.sh="source /home/opt/intel/oneapi/setvars.sh" and launch eclipse from terminal, all is fine. What am I missing to get the SETVARS_CONFIG to work?
Upon further reading I see I was not attempting to use SETVARS_CONFIG to customize, but to run setvars.sh. Perhaps a better question is how to make eclipse run setvars.sh on startup?
Glad you have found a way to work.
But please refer to this article (Automate the setvars.sh Script with Eclipse* (intel.com)) for the exact steps to be followed for automating setvars script in Eclipse.
Let us know if you still getting errors after following the steps.
We are closing this thread assuming your issue has been resolved. Ee will no longer respond to this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.