2011-12-30 12 views
0

で作業していない、次のメッセージが来る:のAptana Studioの3 Aptanaのは、新しいRailsのプロジェクトを作成するとRailsInstaller 2.0.1

sh: /c/RailsInstaller/Ruby1.9.2/bin/rails: C:/Projects/railsinstaller/stage/Ruby1.9.2/bin/ruby.exe: bad interpreter: No such file or directory 

RailsInstallerルビー/ binのフォルダthere'saのbatファイルではレールのために(Rails.bat

@ECHO OFF 
IF NOT "%~f0" == "~f0" GOTO :WinNT 
@"ruby.exe" "C:/Projects/railsinstaller/stage/Ruby1.9.2/bin/rails" %1 %2 %3 %4 %5 %6 %7 %8 %9 
GOTO :EOF 
:WinNT 
@"ruby.exe" "%~dpn0" %* 

新しいRailsプロジェクトはAptanaなしで作成することができますが、端末でレールまたはタイプを使用するとエラーが発生します。

The "C:/Projects/railsinstaller/stage/Ruby1.9.2/bin" directoty doesn´t exists, so I´he changed all bat files to the correct one, plus I´m on Win7, so the code shound´t be running after all. That wrong dir is RailsINstaller problem, but after correcting it, Aptana still doesn´t work. 

ruby​​/binはPATH変数にあります。

ご協力いただきありがとうございます。

答えて

1

RailsInstallerグループに、このトピックに私の応答を参照してください。

https://groups.google.com/group/railsinstaller/msg/a0c2138948567b5b

railsスクリプト(拡張子の1、ないrails.bat)のシェバング行を変更する:

#! /usr/bin/env ruby 

行う必要がありますトリック。

また、--env-shebangで宝石をインストールすると、sh.exeは生成されたエクステンデッドファイルを使用できるようになります。

関連する問題