ruby - Gitlab project - failed to run "rails generate" -


Introduction

  • I have a gitlab installation on a local LCD container which is running Ubuntu 13.10 - saucy.
  • I have installed RVM as a multi-user installation - to do / usr / local / rvm
  • The gitlab application is running properly but I have a problem generating rail

    / li>

  • $ cd / home / git / gitlab
  • $ source / etc / profile /
  • use $ rvm gemset ruby_2.1.1@gitlab - I A custom made gemset
  • $ gem list - lists all the gems that in Gemfile Appears for Gitlab, so I know I am on the correct gemset
  • $ rails -v - & gt; Rails 4.0.3
  • generate $ rails --help output

      / usr / local / rvm / gems / ruby-2.1 .1 @ global / gems / bundler-1.5.3 / lib / bundler / runtime.rb: 76: In `requirement ': such a file can not load - / usr / local / rvm / gem-rb-inotifa (load) Err) /ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb: 76: requires 'block (2 levels)' / usr / local / rvm / gems / Ruby 2.1 from '.1 @ Global / Gems / Bundler-1.5.3 / Lib / Bundler / Runtime RB: 72: /usr/local/rvm/gems/ruby-2.1.1@global/gems/bundler-1.5 to `/ usr / local / 'in / var / bundler / runtime.rb: 72 in each' From 'rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime' block required '.rb: 61: to `each' in / usr / local / rvm / gems / Ruby.2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb: 61: in with 'requirement' /usr/local/rvm/gems/ruby-2.1.1@global/ 'Requirement' from gems / bundler-1.5.3 / lib / bundler.rb: 131: in / home / git / gitlab / config / application.rb: 6: `& lt; Top (required) & gt; 'Requirement' from / home / git / gitlab / vendor / from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.0.3/lib/rails/commands.rb:43:in Bundle / Ruby / 2.1.0 / Gem / Railway-4.0.0 / Lib / Rail / Command RB: 43: `At the top (expected) & gt; From bin / rail: 8: in `requirement 'from bin / rail: 8:` & lt; Main & gt;     

    I have gathered from this output that it is by any means ruby-2.1.1@google gemset.

    If I go to that gemset $ rvm, then use gemset ruby_2.1.1@google , $ gem list output

     *** Local Participation *** Large Decimal (1.2.4) Bundler (1.5.3) Bundler-Unload (1.0.2) Executable-Hook (1.3.1) Mani-wrapper (1.2.4) Io-console (0.4.2) jsan (1.8.1) minute (4.7.5) sike (2.0.3) rake (10.1.0) RDOC (4.1.0) RubyGames-Bundler (1.4.2) RVM (1.11. 3.9) Testing unit (2.1.1.0)   

    And if I run the bundle install or install the wrapper bundle, then it says that all the h Ahrat installed.

    What am I missing here?

    -------------------- Edit ------------------

    It found a way to work

    I followed it and tried to generate RAILS_ENV = output bundle Angel Rail --help and it worked

    Apparently as stated in the previous comment, RB-Inopter "marked as development dependence" is therefore compelling the environment to produce it Will not try to

    "post-te Xt "itemprop =" text ">

    to resolve: This type of file can not be loaded - rb-inotify

    You need gem to set it:

      Install the ruby-inotif   / div> 

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -