Home>
Premise
Currently, we are building an environment with Ruby on Rails.
When I installed the rails gem on my Mac terminal, I got the following message:
~% gem install rails
Failed to load /Users/user/.gemrc, (<unknown>): control characters are not allowed at line 1 column 1
When I was investigating why .gemrc was not installed, I speculated that it was because I had previously typed the following command.
Corresponding source code$echo "gem: --no-document" >>~/.gemrc
I want to achieve
I would like to know if there is a command to cancel the above settings.
What I triedI looked up other similar articles, but none of them showed me how to unlock them.
I also looked up Linux commands similar to MacOS terminals, but couldn't find a command that matched what I wanted to solve.
ruby version: 2.5.0p0
Rails version: 6.0.3.4
macOS Big Sur version: 11.0.1
-
Answer # 1
-
Answer # 2
It is solved.
simply,$rm .gemrc
When I entered, the above sentence did not appear.
Related articles
- ruby - the last db setting doesn't work when deploying rails app on aws
- ruby on rails 5 - some items are not saved in db when posting from rails form
- ruby on rails - things associated with a foreign key cannot be called in view
- ruby on rails 6 - environment construction of ruby on rails
- ruby on rails 5 - actioncontroller :: invalidauthenticitytoken cannot be resolved
- ruby on rails - error in controller when transitioning with rails6 destory action
- ruby on rails - access fails after seed after deploying to heroku
- ruby on rails runtime error cannot be resolved
- ruby on rails - missing required keys: i'm having trouble resolving the [: id] error
- bootstrap display in ruby on rails is broken
- ruby on rails - how to transition from the top page
- ruby - [rails] i can't install the add favorite button
- ruby on rails - dealing with wrong number of arguments (given 1, expected 2)
- ruby on rails - seed fails on heroku
- ruby on rails - cannot pass id to destroy action of intermediate table
- ruby on rails - how to manage prefectures in rails web applications
- ruby on rails - i want to post an image by dragging and dropping
- ruby - efficient writing of rails routing and actions
- ruby on rails - launching unicorn doesn't work
Related questions
- ruby - passing variables using render partial
- html - i can't set the regular expression well
- ruby - i can't get a payjp token on aws
- html - i want it to be rendered if the search word is incorrect
- ruby - about viewport introduction
- ruby - [rails] about the error that occurs when deleting likes (routing error)
- ruby - the information entered in the form is not an error but cannot be saved
- ruby - [rails] i want to create a link including the data attribute with the link_to helper
- ruby - [rails] about nameerror
Simply
.gemrc
Isn't it just a matter of deleting the file?