While loading the Spirent TestCenter package via tclsh shell we encountered below error
% package require SpirentTestCenter
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
Abort (core dumped)
This was observed on multiple Linux machine
The above Error indicates that mongod is unable to work with your operating system's current locale.
To resolve this, you might need to setup your locale for LC_ALL=
First, we need to know what you have right now, open terminal and write:
%locale
You will see something like:
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
As you see, you are missing language for LC_ALL
You can try to write in terminal:
%export LC_ALL="en_US.utf-8"
Try import Package require Spirent TestCenter on tclsh to verify.
OR
Set environment variable as below:
export LC_ALL=C