2015-05-07 20 views
1

我有一个需要mongo的django项目。当设置我的开发环境时,我得到一些与locale和mongo相关的错误,我无法解决。我的mongodb有什么问题?

$ bash -c ". ./host-install.sh && restore_mongodb ./social ~/Desktop/dump" 
./host-install.sh: line 329: warning: setlocale: LC_ALL: cannot change locale (sv_SE.UTF-8): No such file or directory 

*** 2015-05-07 09:51:53 dropping mongo storage social 
Failed global initialization: BadValue Invalid or no user locale set. Please ensure LANG and/or LC_* environment variables are set correctly. 

*** 2015-05-07 09:51:53 unable to drop mongodb 
(kthsocial)[email protected]:/etc/social/social$ 

我尝试了其他问题中提到的程序设置区域设置,但没有帮助。你能帮我解决我的安装问题吗?

+2

呃,我们应该猜测'host-install.sh'的功能吗?您可能想阅读[我如何提出一个好问题](http://stackoverflow.com/help/how-to-ask),这会增加获得有用答案的可能性_drastically_。你可能会发现[ESR](https://en.m.wikipedia.org/wiki/Eric_S._Raymond)的优秀论文[如何提问智能方式](http://catb.org/~esr/) faqs/smart-questions.html)也很有帮助。 –

+1

'sudo apt-get install language-pack-sv' – YOU

+0

@YOU谢谢!这工作。如果@你发布它作为答案,然后我会接受它。 –

回答

1

安装瑞典语言区域。

sudo apt-get install language-pack-sv