【问题标题】:Railsinstaller trying to use unmapped driveRailsinstaller 尝试使用未映射的驱动器
【发布时间】:2011-11-07 08:27:52
【问题描述】:

安装完成后, 弹出“Rails 环境配置”窗口:

The system cannot find the drive specified.
# Rails Environment Configuration.
Your git configuration is incomplete.
user.name and user.email are required for properly using git and services such
as GitHub ( http://github.com/ ).
Please enter your name, for example mine is: Wayne E. Seguin

设置我的名字后,出现以下错误:

error: could not lock config file H:\/.gitconfig: No such file or directory

我真的应该映射 H:/ 以便能够安装 Rails 吗?

UPD:我查看了 c:\RailsInstaller\Ruby1.9.2\setup_environment.bat,发现它使用 HOMEDRIVE 和 HOMEPATH,我没有这样的环境变量。我添加了这些,仍然没有帮助。

UPD2:不过,我可以在安装后运行 rails。同时,我将它安装在我的虚拟 Ubuntu 上。

UPD3:@Luis:谢谢,一定是这个原因。虽然我已经设置了环境变量 HOMEDRIVE 来更正一个,但是,如果我在 cmd 中运行“set homedrive”,它会给出错误的值。

【问题讨论】:

    标签: ruby-on-rails railsinstaller railsinstaller-windows


    【解决方案1】:

    问题是setup_environment.bat 寻找那些环境变量。

    请在 RailsInstaller 列表中查看此帖子:

    https://groups.google.com/group/railsinstaller/browse_thread/thread/2337bfed4557f3f1

    虽然错误不一样,但可能与相同的环境变量相关联。

    【讨论】:

      猜你喜欢
      • 2018-04-13
      • 2018-02-21
      • 2017-10-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多