简体   繁体   English

远程调试会话期间的Eclipse错误:sh:区域设置:找不到

[英]Eclipse error during remote debug session: sh: locale: not found

I'm really hoping to get an answer on this. 我真的很希望得到这个答案。 I am using Eclipse to remote debug a C++ program on a (minimal) linux machine. 我正在使用Eclipse在(最小)Linux机器上远程调试C ++程序。 I am aware that the linux machine does not have the locale binary installed. 我知道linux机器没有安装区域设置二进制文件。 First off, the error received is the following in Eclipse after pressing the debug or run button: 首先,按下debug或run按钮后,在Eclipse中收到以下错误:

org.eclipse.remote.core.exception.RemoteConnectionException: sh: locale: not found org.eclipse.remote.core.exception.RemoteConnectionException:sh:语言环境:找不到

After the first run, successive runs do not display the error, only the first run. 第一次运行后,连续运行不会显示错误,而只会显示第一次运行。 If I restart the linux machine, the error will come back for the first run again. 如果我重新启动linux计算机,该错误将再次出现在第一次运行中。

What is most obvious is that Eclipse, or the running program is calling locale on the linux machine and it is not available, not installed. 最明显的是Eclipse或正在运行的程序正在linux计算机上调用语言环境,并且它不可用,没有安装。

This machine is quite minimal and doesn't even have a package manager - it's an embedded system. 该机器非常小巧,甚至没有软件包管理器-它是嵌入式系统。 So I tried to install "locales", "locale" as well as "locale-all" using multistrap when building the linux image. 因此,我在构建linux映像时尝试使用multistrap安装“ locales”,“ locale”以及“ locale-all”。 None worked. 没有工作。 When using debian repositories, multistrap returns 使用Debian仓库时,多带返回

E: Unable to locate packages locales E:无法找到包语言环境

So I guess my real questions are: 所以我想我的真正问题是:

1) What debian package supplies "locale" found in /usr/bin/locale? 1)哪些debian软件包提供/ usr / bin / locale中的“语言环境”? How can I install it without adding a lot of of overhead on an ARM system? 如何在不增加ARM系统开销的情况下安装它? (assuming no package manager) (假设没有程序包管理器)

2) Where is the source code for locale? 2)语言环境的源代码在哪里?

And third, 第三,

3) In Eclipse, can I prevent the running program or Eclipse from calling locale? 3)在Eclipse中,可以阻止正在运行的程序或Eclipse调用语言环境吗? This is preferred. 这是首选。

After scouring the forums, I found one guy that said he got the same issue and "manually fixed it", however he did not provide the fix.. Hope to get some help! 在论坛上进行搜索后,我发现一个人说他遇到了同样的问题并“手动修复”,但是他没有提供修复方法。希望得到帮助! That reference can be found https://www.eclipse.org/forums/index.php/t/1081283/ 该参考可以找到https://www.eclipse.org/forums/index.php/t/1081283/

Thanks, 谢谢,

我使用的是相同的,因此在调试设置中将编码更改为ISO-8859-1。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM