Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Railsinstaller正在尝试使用未映射的驱动器_Ruby On Rails_Railsinstaller_Railsinstaller Windows - Fatal编程技术网

Ruby on rails Railsinstaller正在尝试使用未映射的驱动器

Ruby on rails Railsinstaller正在尝试使用未映射的驱动器,ruby-on-rails,railsinstaller,railsinstaller-windows,Ruby On Rails,Railsinstaller,Railsinstaller Windows,安装完成后, 弹出“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/

安装完成后, 弹出“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\u environment.bat,发现它使用HOMEDRIVE和HOMEPATH,我没有这样的环境变量。我加了这些,但还是没用

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


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

问题在于
setup\u environment.bat
查找那些环境变量

请参见RailsInstaller列表中的此帖子:

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