无法在c9.io上运行(旧)Rails项目(服务器将无法加载)

时间:2016-02-09 14:24:52

标签: ruby-on-rails ruby

我正在尝试克隆并在c9.io上处理此项目的副本: https://github.com/asalant/freehub

在使用ruby-1.9.3并执行gem install rails后,我运行bundle install并得到此错误:

<script type="text/javascript">
    $(function () {

        $("#Search").click(function () {
            var RID = $('#txtRequestID').val();
            var SDate = $('#txtStartDate').val();
            var EDate = $('#txtEndDate').val();
            var stat = $('#selectedRequestID').val();
            var CDate = $('#txtCloseDate').val();

            //alert(stat);

            $.ajax({
                url: 'Home/partialIssueListDetails',
                type: 'GET',
                data: { id: RID, StartDate: SDate, EndDate: EDate, status: stat, CloseDate: CDate },

                success: function (result) {
                    $('#IssueListDetails').html(result);
                },
                error: function () {
                    alert("error");
                }

            });
        });
    });
</script>

我从gemfile中删除了“debugger”,之后捆绑运行正常,但是当我尝试启动rails服务器时,会发生这种情况:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /usr/local/rvm/rubies/ruby-1.9.3-p551/bin/ruby -r ./siteconf20160209-19681-1isskta.rb extconf.rb 
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.3-p551 provided with debugger-ruby_core_source gem.
**************************************************************************
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-ruby-lib
        --without-ruby-lib=${ruby-dir}/lib

extconf failed, exit code 1

Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.3-p551/gems/debugger-1.6.6 for inspection.
Results logged to /usr/local/rvm/gems/ruby-1.9.3-p551/extensions/x86_64-linux/1.9.1/debugger-1.6.6/gem_make.out
An error occurred while installing debugger (1.6.6), and Bundler cannot continue.
Make sure that `gem install debugger -v '1.6.6'` succeeds before bundling.

为什么重新创建我已经从github克隆的所有这些文件?为什么服务器不启动?我记得我之前有这个应用程序工作。很奇怪,现在正在发生这种情况。

0 个答案:

没有答案