我的mongodb有什么问题?

时间:2022-09-20 18:57:35

I have a django project that requires mongo. When setting up my dev environment I get some error related to locale and mongo that I couldn't resolve.

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

$ 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)developer@developer-VirtualBox:/etc/social/social$ 

I tried the procedures mentioned in other questions for setting the locale but that didn't help. Can you please help me fix my installation?

我尝试了其他问题中提到的用于设置语言环境的程序,但这没有帮助。你能帮我修理一下我的装置吗?

1 个解决方案

#1


Install swedish locale.

安装瑞典语语言环境。

sudo apt-get install language-pack-sv

#1


Install swedish locale.

安装瑞典语语言环境。

sudo apt-get install language-pack-sv