|
Dear list,
I have install R15.0 on Ubuntu system using the source code. It is install to my home directory. I have no root privilege. When I start R, I got this warning message: During startup - Warning message: Setting LC_CTYPE failed, using "C" How can I fix this? Thanks. ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. |
|
On 03/06/2012 07:34, Jinyan Huang wrote:
> Dear list, > > I have install R15.0 on Ubuntu system using the source code. It is > install to my home directory. I have no root privilege. When I start > R, I got this warning message: > > During startup - Warning message: > Setting LC_CTYPE failed, using "C" > > How can I fix this? You will need to ask once R 15.0 is released (sometime next century?). But in a released version of R, the problem would be your locale settings, so study the manual at e.g. http://cran.r-project.org/doc/manuals/R-admin.html#Internationalization Since you managed to install it, something is different in your environment now from when you installed R. Check your environment variables such as LC_ALL or LANG. A guess is that you have .utf8 where .UTF-8 is required, or v.v. > > Thanks. > > ______________________________________________ > [hidden email] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. PLEASE do, and note what it says about R versions. -- Brian D. Ripley, [hidden email] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595 ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. |
|
Yes. I think it is my environment variables problem. But I donot know
how to fix. echo $LC_ALL echo $LANG en_US.UTF-8 On Sun, Jun 3, 2012 at 4:07 PM, Prof Brian Ripley <[hidden email]> wrote: > LANG ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. |
|
On 03/06/2012 09:27, Jinyan Huang wrote:
> Yes. I think it is my environment variables problem. But I donot know > how to fix. That is described in the same manual. > echo $LC_ALL > > echo $LANG > en_US.UTF-8 > > > On Sun, Jun 3, 2012 at 4:07 PM, Prof Brian Ripley<[hidden email]> wrote: >> LANG No, that's not what I wrote. The posting guide required you to quote the context, and excising it is a breach of the conditions under which you are allowed to copy the work of others. -- Brian D. Ripley, [hidden email] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595 ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. |
|
In reply to this post by Jinyan Huang
On Jun 3, 2012, at 10:27 , Jinyan Huang wrote: > Yes. I think it is my environment variables problem. But I donot know > how to fix. > > echo $LC_ALL > > echo $LANG > en_US.UTF-8 > > > On Sun, Jun 3, 2012 at 4:07 PM, Prof Brian Ripley <[hidden email]> wrote: >> LANG First, use "locale" to check that the above is the full story. For finding the right locale, try starting R with, e.g. LANG=en_US.utf8 R or, for a more scientific approach, find your system locale database, usually /usr/share/locale, and look for a suitable name: pd$ ls -ld /usr/share/locale/en_US* drwxr-xr-x 8 root wheel 272 Sep 25 2010 /usr/share/locale/en_US drwxr-xr-x 8 root wheel 272 Sep 25 2010 /usr/share/locale/en_US.ISO8859-1 drwxr-xr-x 8 root wheel 272 Sep 25 2010 /usr/share/locale/en_US.ISO8859-15 drwxr-xr-x 8 root wheel 272 Sep 25 2010 /usr/share/locale/en_US.US-ASCII drwxr-xr-x 8 root wheel 272 Sep 25 2010 /usr/share/locale/en_US.UTF-8 so on a Mac like mine, en_US.UTF-8 should do just fine, but if you see .utf8, .UTF8, .utf-8, you'll have to adjust LANG accordingly. For a permanent fix, edit the appropriate startup file for your shell, probably .profile, cor maybe .bash_profile or .bashrc. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: [hidden email] Priv: [hidden email] ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. |
|
locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE=UTF-8 LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= ls -ld /usr/share/locale/en_US* drwxr-xr-x 2 root root 4096 Dec 15 15:19 /usr/share/locale/en_US ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. |
|
On 03/06/2012 10:31, Jinyan Huang wrote:
> locale > locale: Cannot set LC_CTYPE to default locale: No such file or directory > locale: Cannot set LC_ALL to default locale: No such file or directory > LANG=en_US.UTF-8 > LANGUAGE= > LC_CTYPE=UTF-8 That's wrong: see the manual I pointed you to! > LC_NUMERIC="en_US.UTF-8" > LC_TIME="en_US.UTF-8" > LC_COLLATE="en_US.UTF-8" > LC_MONETARY="en_US.UTF-8" > LC_MESSAGES="en_US.UTF-8" > LC_PAPER="en_US.UTF-8" > LC_NAME="en_US.UTF-8" > LC_ADDRESS="en_US.UTF-8" > LC_TELEPHONE="en_US.UTF-8" > LC_MEASUREMENT="en_US.UTF-8" > LC_IDENTIFICATION="en_US.UTF-8" > LC_ALL= > > > ls -ld /usr/share/locale/en_US* > drwxr-xr-x 2 root root 4096 Dec 15 15:19 /usr/share/locale/en_US This is clearly not an R issue: so ask your IT support for help. -- Brian D. Ripley, [hidden email] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595 ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. |
|
On Jun 3, 2012, at 11:36 , Prof Brian Ripley wrote: >> >> ls -ld /usr/share/locale/en_US* >> drwxr-xr-x 2 root root 4096 Dec 15 15:19 /usr/share/locale/en_US > > This is clearly not an R issue: so ask your IT support for help. Or check out the Ubuntu docs/forums for information on which package of configuration trick you might be missing to get UTF-8 locales properly installed. (Googling "utf-8 ubuntu" seem to come up with relevant stuff.) -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: [hidden email] Priv: [hidden email] ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. |
|
At last, the administrator provide me this command to fix this problem.
echo "setenv LC_ALL en_US.UTF8" >> ~/.cshrc.aliases On Sun, Jun 3, 2012 at 5:47 PM, peter dalgaard <[hidden email]> wrote: > > On Jun 3, 2012, at 11:36 , Prof Brian Ripley wrote: > >>> >>> ls -ld /usr/share/locale/en_US* >>> drwxr-xr-x 2 root root 4096 Dec 15 15:19 /usr/share/locale/en_US >> >> This is clearly not an R issue: so ask your IT support for help. > > Or check out the Ubuntu docs/forums for information on which package of configuration trick you might be missing to get UTF-8 locales properly installed. (Googling "utf-8 ubuntu" seem to come up with relevant stuff.) > > -- > Peter Dalgaard, Professor, > Center for Statistics, Copenhagen Business School > Solbjerg Plads 3, 2000 Frederiksberg, Denmark > Phone: (+45)38153501 > Email: [hidden email] Priv: [hidden email] > > > > > > > > ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. |
| Powered by Nabble | Edit this page |
