Intel® oneAPI Base Toolkit
Support for the core tools and libraries within the base toolkit that are used to build and deploy high-performance data-centric applications.
417 Discussions

printenv | grep intel cannot find file location each time I restart the computer

b-mo
Beginner
452 Views

Hello, 

I am a newbie with OneAPI, using Ubuntu 22.04 LTS. I installed and configure OneAPI with the command bellow:

# download the key to system keyring
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
| gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null

# add signed entry to apt sources and configure the APT client to use Intel repository:
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list

sudo apt update
sudo apt install intel-renderkit

# configure the enviroment variables
source /opt/intel/oneapi/setvars.sh

This is working find, I can find the installed files locations with the command: printenv | grep intel

 

However, whenever I am restarting the computer and then running the same command from terminal, I get nothing. It is completely blank. So, each time I am again installing the whole process. 

 

* What I am doing wrong?

* How can I solve this problem that each time after restarting the computer still can find the location with `printenv | grep intel` ? 

 

Thanks.

0 Kudos
3 Replies
VidyalathaB_Intel
Moderator
433 Views

Hi Bipul,


Thanks for reaching out to us.


>>However, whenever I am restarting the computer and then running the same command from terminal, I get nothing. It is completely blank. So, each time I am again installing the whole process. 

Could you please confirm if you have sourced the setvars.sh script after restarting your computer and still see the same issue?


You can refer to the below link to know more about the setvars.sh script

https://www.intel.com/content/www/us/en/develop/documentation/get-started-with-intel-oneapi-base-linux/top/before-you-begin.html

"Source setvars.sh every time you open a new terminal window"


so that you need not to do the whole installation process again.


Please try this and get back to us if you still see the same.


Regards,

Vidya.


b-mo
Beginner
412 Views

Thanks for the assistance. I added the setvars.sh to the bashrc and problem solved

sudo echo "source /opt/intel/oneapi/setvars.sh" >> ~/.bashrc

 

0 Kudos
VidyalathaB_Intel
Moderator
403 Views

Hi Bipul,


>>...and problem solved

Thanks for the confirmation.

As the issue is resolved we are closing this thread. Please post a new question if you need any additional assistance from Intel as this thread will no longer be monitored.


Regards,

Vidya.


0 Kudos
Reply