安装完成后,弹出"Rails Environment configuration“窗口:
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吗?
更新:我查看了c:\RailsInstaller\Ruby1.9.2\setup_environment.bat,发现它使用HOMEDRIVE和HOMEPATH,我没有这样的环境变量。我添加了这些,但仍然没有帮助。
UPD2:尽管如此,我仍然可以在安装后运行rails。同时,我在我的虚拟Ubuntu上安装了它。
UPD3:@Luis:谢谢,这一定是原因。虽然我已经设置了环境变量HOMEDRIVE来纠正它,但是如果我在cmd中运行"set homedrive“,它仍然会给出错误的值。
发布于 2011-11-08 06:57:15
问题是setup_environment.bat会查找这些环境变量。
请在RailsInstaller列表上看到这篇文章:
https://groups.google.com/group/railsinstaller/browse_thread/thread/2337bfed4557f3f1
虽然错误不是相同的,但它可能与相同的环境变量相关。
https://stackoverflow.com/questions/8034191
复制相似问题