Issue installing ceedling in Windows 11

huangapple go评论63阅读模式
英文:

Issue installing ceedling in Windows 11

问题

我尝试在Windows 11上安装Ceedling,但遇到了以下错误:

无法加载 C:/ProgramData/gemrc,(<未知>):第1行第1列不允许控制字符

我从这里 https://rubyinstaller.org/downloads/ 安装了Ruby 3.1.3.1 (x64),然后运行了:

gem install ceedling

是否有关于如何正确安装Ceedling的建议?

英文:

I have tried to install ceedling for Windows 11. But come across this error:

Failed to load C:/ProgramData/gemrc, (&lt;unknown&gt;): control characters are not allowed at line 1 column 1

I installed Ruby 3.1.3.1 (x64) from here https://rubyinstaller.org/downloads/
Then I ran:

gem install ceedling

Any ideas on how to install ceedling correctly would be appreciated.

答案1

得分: 1

那个错误告诉你,文件 C:\ProgramData\gemrc 在第1行第1列包含无效数据。你很可能在安装Ruby时不正确地编辑了这个文件,因为这是一个默认文件,应该在安装Ruby时被创建,带有默认配置。

你应该按照以下步骤尝试:

  1. 检查文件,看看在该位置存在什么无效字符,将其与一些默认的gemrc文件进行比较,并删除任何无效字符,或者:
  2. 重命名文件,然后再试一次,或者:
  3. 删除文件,然后从头重新安装Ruby,这样文件将会从头创建。
英文:

That error is telling you that the file C:\ProgramData\gemrc has invalid data in it at line 1, column 1. You have most likely edited this file improperly when installing Ruby because this is a default file with a default configuration that should have been created when you installed Ruby.

You should try these steps in order:

  1. Inspect the file to see what invalid characters exist at that position, comparing it to some default gemrc files, and remove any invalid characters, or:
  2. Rename the file and try again, or:
  3. Remove the file and reinstall Ruby from scratch so that the file is created from scratch

huangapple
  • 本文由 发表于 2023年2月18日 03:41:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/75488614.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定