Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1215 Discussions

Unable to install packages

Magallan3s
Beginner
361 Views

Hello, I am attempting to run a program but I need to install GMPXX

 

I am receiving the following error when attempting to isntall GMPXX

 

"

uxxxxxx@s001-n012:~$ apt-get install libgmp3-dev -y
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

 


uxxxxxx@s001-n012:~$ sudo apt-get install libgmp3-dev -y
Dear User,

this server does not allow you to run "sudo".

If you need to install a dependency, please put it in your home directory.
* For autotools, you can do it with "./configure --prefix=~/my-path"
* For Python packages, use "pip install <package_name> --user" or create a Conda environment.

Sincerely,
Admins
uxxxxxx is not in the sudoers file. This incident will be reported.
uxxxxxx@s001-n012:~$"

0 Kudos
6 Replies
JananiC_Intel
Moderator
343 Views

Hi,


Thanks for posting in Intel forum.


In Intel Devcloud, there is no root access for users, so you cannot use sudo in devcloud but you can install packages with pip and conda. Please find the below devcloud documentation for your reference.

https://devcloud.intel.com/oneapi/documentation/shell-commands/


Regards,

Janani Chandran


JananiC_Intel
Moderator
291 Views

Hi,


Is your issue resolved? Do you have any update?


Regards,

Janani Chandran


Magallan3s
Beginner
278 Views

How can I install a package with pip and conda?

JananiC_Intel
Moderator
256 Views

Hi,


Thanks for the update.


You can follow the below steps.


1)Before installation, activate your environment with source activate <enc_name> or conda activate <env_name>

2)After activating, you can either install with pip command pip install <package_name> or with conda command conda install <package_name>. If you want to install from a specific channel then add -c and mention the channel like conda install -c intel numpy .


Hope this helps!


Regards,

Janani Chandran


JananiC_Intel
Moderator
229 Views

Hi,


Is your issue resolved? Do you have any updates?


Regards,

Janani Chandran


JananiC_Intel
Moderator
210 Views

Hi,


We assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Regards,

Janani Chandran


Reply