How to fix 'tar: Failed to set default locale' error?
Step 1 (In R Console)
system('defaults write org.R-project.R force.LANG en_US.UTF-8')
Step 2: Restart R
Source: http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html#Internationalization-of-the-R_002eapp
Unable to install miniconda3 on a mac
Looks like the error could be here :
https://conda.io/docs/user-guide/troubleshooting.html#macos-error-valueerror-unknown-locale-utf-8
https://blog.remibergsma.com/2012/07/10/setting-locales-correctly-on-mac-osx-terminal-application/
FYI: I downloaded the Link on my Mac OS running Sierra and ran 2.7 bash install with absolutely no issues.
$ cd Downloads
$ chmod a+x ./Miniconda2-latest-MacOSX-x86_64.sh
$ ./Miniconda2-latest-MacOSX-x86_64.sh
Welcome to Miniconda2 4.5.1
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
===================================
Miniconda End User License Agreement
===================================
Copyright 2015, Anaconda, Inc.
>>>
Please answer 'yes' or 'no':'
>>> yes
Miniconda2 will now be installed into this location:
/Users/it/miniconda2
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/Users/it/miniconda2] >>>
PREFIX=/Users/it/miniconda2
installing: python-2.7.14-h138c1fe_31 ...
Python 2.7.14 :: Anaconda, Inc.
installing: ca-certificates-2018.03.07-0 ...
installing: conda-env-2.6.0-h36134e3_0 ...
installing: libcxxabi-4.0.1-hebd6815_0 ...
installing: tk-8.6.7-h35a86e2_3 ...
installing: yaml-0.1.7-hc338f04_2 ...
installing: zlib-1.2.11-hf3cbc9b_2 ...
installing: libcxx-4.0.1-h579ed51_0 ...
installing: openssl-1.0.2o-h26aff7b_0 ...
installing: libffi-3.2.1-h475c297_4 ...
installing: ncurses-6.0-hd04f020_2 ...
installing: libedit-3.1-hb4e282d_0 ...
installing: readline-7.0-hc1231fa_4 ...
installing: sqlite-3.23.1-hf1716c9_0 ...
installing: asn1crypto-0.24.0-py27_0 ...
installing: certifi-2018.4.16-py27_0 ...
installing: chardet-3.0.4-py27h2842e91_1 ...
installing: enum34-1.1.6-py27hf475452_1 ...
installing: futures-3.2.0-py27h1b80678_0 ...
installing: idna-2.6-py27hedea723_1 ...
installing: ipaddress-1.0.22-py27_0 ...
installing: pycosat-0.6.3-py27h6c51c7e_0 ...
installing: pycparser-2.18-py27h0d28d88_1 ...
installing: pysocks-1.6.8-py27_0 ...
installing: python.app-2-py27hf2d5e94_7 ...
installing: ruamel_yaml-0.15.35-py27h1de35cc_1 ...
installing: six-1.11.0-py27h7252ba3_1 ...
installing: cffi-1.11.5-py27h342bebf_0 ...
installing: setuptools-39.0.1-py27_0 ...
installing: cryptography-2.2.2-py27h1de35cc_0 ...
installing: wheel-0.31.0-py27_0 ...
installing: pip-9.0.3-py27_0 ...
installing: pyopenssl-17.5.0-py27hfda213f_0 ...
installing: urllib3-1.22-py27hc3787e9_0 ...
installing: requests-2.18.4-py27h9b2b37c_1 ...
installing: conda-4.5.1-py27_0 ...
installation finished.
Do you wish the installer to prepend the Miniconda2 install location
to PATH in your /Users/it/.bash_profile ? [yes|no]
[yes] >>> yes
Appending source /Users/it/miniconda2/bin/activate in
newly created /Users/it/.bash_profile
For this change to become active, you have to open a new terminal.
Thank you for installing Miniconda2!
My locale settings:
$ locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=
How to fix a locale setting warning from Perl
Your OS doesn't know about en_US.UTF-8
.
You didn't mention a specific platform, but I can reproduce your problem:
% uname -a
OSF1 hunter2 V5.1 2650 alpha
% perl -e exit
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
My guess is you used ssh to connect to this older host from a newer desktop machine. It's common for /etc/ssh/sshd_config
to contain
AcceptEnv LANG LC_*
which allows clients to propagate the values of those environment variables into new sessions.
The warning gives you a hint about how to squelch it if you don't require the full-up locale:
% env LANG=C perl -e exit
%
or with Bash:
$ LANG=C perl -e exit
$
For a permanent fix, choose one of
- On the older host, set the
LANG
environment variable in your shell's initialization file. - Modify your environment on the client side, e.g., rather than
ssh hunter2
, use the commandLANG=C ssh hunter2
. - If you have administrator rights, stop ssh from sending the environment variables by commenting out the
SendEnv LANG LC_*
line in the local/etc/ssh/ssh_config
file. (Thanks to this answer. See Bug 1285 for OpenSSH for more.)
trouble installing and loading rJava on mac El Capitan
The problem was rJava wont install in RStudio
(Version 1.0.136
). The following worked for me (macOS Sierra version 10.12.6
) (found here):
Step-1: Download and install javaforosx.dmg
from here
Step-2: Next, run the command from inside RStudio:
install.packages("rJava", type = 'source')
Related Topics
Object Not Found Error When Passing Model Formula to Another Function
How to Use R to Download a Zipped File from a Ssl Page That Requires Cookies
Saving and Loading a Model in R
Rselenium: Server Signals Port Is Already in Use
Unicode with Knitr and Rmarkdown
How to Create a Bipartite Network in R with Igraph or Tnet
Installing Package - Cannot Open File - Permission Denied
How to Calculate Time Difference with Previous Row of a Data.Frame by Group
How to Remove Rows with 0 Values Using R
Package Rgl in R Not Loading in MAC Os
Find Multiple Strings Using Str_Extract_All
Reshape a Dataframe to Long Format with Multiple Sets of Measure Columns
R: How to Sum Columns Grouped by a Factor
Why am I Losing Categorical Data in My Regression Summary
How to Scrape/Automatically Download PDF Files from a Document Search Web Interface in R