Software Archive
Read-only legacy content
17061 Discussions

How to install 'locale' on Xeon Phi?

Xuntao_C_
Beginner
413 Views

Hi. I want to install the 'locale' package on Xeon Phi. How to do this? 

It's not like a library, which I can cross-compile and upload it to the board. 'locale' is related to environmental variables and files. How can I install it? Is there a way to add this package to the Linux image of Xeon Phi on the host? 

Thanks!

0 Kudos
1 Reply
Evan_P_Intel
Employee
413 Views

If you're referring to the prebuilt glibc-locale-* RPMs provided in the mpss-X.Y.Z-k1om tarball, you should be able to install them into the card's filesystem using the same methods you can use to install a library's RPM--that the RPM contains locale database files instead of shared libraries doesn't change how it's installed. Once you've done that, SSHing to the card and setting the environment variables should also work as expected, as should modifying /etc/bashrc (provided you still login with SSH). If modifying the environment won't work for your situation, modifying programs to use setlocale() from locale.h should also work.

0 Kudos
Reply