英文:
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, (<unknown>): 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时被创建,带有默认配置。
你应该按照以下步骤尝试:
- 检查文件,看看在该位置存在什么无效字符,将其与一些默认的gemrc文件进行比较,并删除任何无效字符,或者:
- 重命名文件,然后再试一次,或者:
- 删除文件,然后从头重新安装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:
- 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:
- Rename the file and try again, or:
- Remove the file and reinstall Ruby from scratch so that the file is created from scratch
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论