{"id":411,"date":"2012-08-21T14:08:41","date_gmt":"2012-08-21T12:08:41","guid":{"rendered":"http:\/\/elkano.org\/blog\/?p=411"},"modified":"2012-08-21T14:08:41","modified_gmt":"2012-08-21T12:08:41","slug":"bundle2in-require-no-such-file-to-load-bundler-loaderror","status":"publish","type":"post","link":"https:\/\/elkano.org\/blog\/bundle2in-require-no-such-file-to-load-bundler-loaderror\/","title":{"rendered":"bundle:2:in `require&#8217;: no such file to load &#8212; bundler (LoadError)"},"content":{"rendered":"<p>I installed Bundler gem during the Redmine installation<\/p>\n<pre class=\"prettyprint lang-xml\">\r\n# gem install bundler\r\nSuccessfully installed bundler-1.1.5\r\n1 gem installed\r\nInstalling ri documentation for bundler-1.1.5...\r\nInstalling RDoc documentation for bundler-1.1.5...\r\n<\/pre>\n<p>And I got this error:<\/p>\n<pre class=\"dontquote prettyprint lang-xml\">\r\n# bundle\r\n\/usr\/bin\/bundle:2:in `require&#039;: no such file to load -- bundler (LoadError)\r\n\tfrom \/usr\/bin\/bundle:2\r\n<\/pre>\n<p>It seemed that it was not able to load required gem. I found required gem bundler.rb under &#8220;\/var\/lib\/gems\/1.8\/gems\/bundler-1.1.5\/lib\/&#8221;<\/p>\n<pre class=\"prettyprint lang-xml\">\r\n# locate bundler.rb\r\n\/var\/lib\/gems\/1.8\/gems\/bundler-1.1.5\/lib\/bundler.rb\r\n<\/pre>\n<p>As a workaround I edited the file \/usr\/bin\/bundle and forced to load the required path:<\/p>\n<pre class=\"dontquote prettyprint lang-ruby\">\r\n#!\/usr\/bin\/env ruby\r\n$LOAD_PATH &lt;&lt; &quot;\/var\/lib\/gems\/1.8\/gems\/bundler-1.1.5\/lib\/&quot;\r\nrequire &#039;bundler&#039;\r\n<\/pre>\n<p>And got it working<\/p>\n<pre class=\"prettyprint lang-xml\">\r\n# bundle\r\nFetching gem metadata from http:\/\/rubygems.org\/.......\r\nInstalling rake (0.9.2.2) \r\nInstalling i18n (0.6.0) \r\nInstalling multi_json (1.3.6) \r\n...\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I installed Bundler gem during the Redmine installation # gem install bundler Successfully installed bundler-1.1.5 1 gem installed Installing ri documentation for bundler-1.1.5&#8230; Installing RDoc documentation for bundler-1.1.5&#8230; And I got this error: # bundle \/usr\/bin\/bundle:2:in `require&#039;: no such file to load &#8212; bundler (LoadError) from \/usr\/bin\/bundle:2 It seemed that it was not able to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[53,52,54,145],"_links":{"self":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/411"}],"collection":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/comments?post=411"}],"version-history":[{"count":6,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/411\/revisions"}],"predecessor-version":[{"id":417,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/411\/revisions\/417"}],"wp:attachment":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/media?parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/categories?post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/tags?post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}