[rubygmes] cannot load such file -- /usr/share/rubygems-integration/all/specifications/exe/rake

Posted by honeymon on December 15, 2018

rake 를 이용해서 asciidoctor 를 실행하려던 중에 다음과 같은 문제가 발생했다.

bundle exec rake
Traceback (most recent call last):
	1: from /usr/local/bin/rake:23:in `<main>'
/usr/local/bin/rake:23:in `load': cannot load such file -- /usr/share/rubygems-integration/all/specifications/exe/rake (LoadError)

인터넷 검색으로 관련된 해답을 찾았다. Cannot load /usr/share/rubygems-integration/all/specifications/bin/rake

해결책:

$ sudo rm /usr/share/rubygems-integration/all/specifications/rake-{version}.gemspec
$ bundle install

구버전을 삭제하고 신버전을 설치하면서 재설정을 하면 긑!


Comments