【问题标题】:Can not launch a new project after installing railsinstaller安装 railsinstaller 后无法启动新项目
【发布时间】:2014-03-16 12:09:50
【问题描述】:

我刚开始学习 Rails。我在 W8 上,我刚刚安装了 railsinstaller-2.2.2。 我在安装过程中没有任何问题。

然后我尝试构建一个新项目:

$ rails new test1 

然后,它在之后保持阻塞:

   create  test/helpers
   create  test/helpers/.keep
   create  test/integration
   create  test/integration/.keep
   create  test/test_helper.rb
   create  tmp/cache
   create  tmp/cache/assets
   create  vendor/assets/javascripts
   create  vendor/assets/javascripts/.keep
   create  vendor/assets/stylesheets
   create  vendor/assets/stylesheets/.keep
      run  bundle install

有人给点建议吗?

我已经尝试删除并重新安装 railsinstaller。但是还是不行。

【问题讨论】:

  • 您具体遇到了什么错误?这可能是 W8 管理员权限的问题
  • 我没有任何消息错误!它看起来冻结了,但我不明白链接@AmrArafat 中的解决方案:(
  • c:/railsinstaller/devkit/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld。 exe:无法打开输出文件 conftest.exe:权限被拒绝
  • 是管理员权限问题吗?

标签: ruby-on-rails command new-project


【解决方案1】:

在创建项目时尝试并指定 rails 版本。例如:

rails _3.2.14_ new test1

【讨论】:

  • 有效!非常感谢您解释解决方案!
  • 其实问题并没有解决。作为一个年轻的学徒,我刚开始使用旧版本(3.2.16)的项目。但是当我尝试用 4.0.2 vrs 做同样的事情时,它就不再起作用了。
  • 我在安装 atomic 1.1.16 时遇到问题:无法构建 gem 原生扩展。
  • 试试这个,它可能会工作(stackoverflow.com/questions/22461011/…) 首先卸载任何现有的原子gem:“gem uninstall atomic”然后使用重新安装:“gem install atomic -v '1.1.16'” 在此之后尝试创建一个新的 Rails 应用程序:“rails new projectname”
【解决方案2】:

我认为你错过了你的输出,因为你的输出。

create  test/helpers
create  test/helpers/.keep
create  test/integration
create  test/integration/.keep
create  test/test_helper.rb
create  tmp/cache
create  tmp/cache/assets
create  vendor/assets/javascripts
create  vendor/assets/javascripts/.keep
create  vendor/assets/stylesheets
create  vendor/assets/stylesheets/.keep
run  bundle install

输出看起来像是您的 rails 应用程序文件夹已正确创建并且您的包安装正在运行。

请检查您的文件夹结构:

rails_app_name
..../app
......../controller
......../helpers
......../models
......../views
............../layouts
..../components
..../config
..../db
..../doc
..../lib
..../log
..../public
..../script
..../test
..../tmp
..../vendor
README
Rakefile

如果 rails app 文件夹包含这些结构,那么您的应用程序已正确创建,并且您的 bundle 安装需要时间。

所以,如果捆绑安装需要更多时间,那么您可以按“ctrl+c”停止捆绑安装,然后再次尝试通过“捆绑安装”安装捆绑

【讨论】:

    猜你喜欢
    • 2015-03-14
    • 1970-01-01
    • 2021-06-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-06-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多