0

I want to install rails to use it with aptana studio 3. After hiting gem install rails following error is being thrown:

ERROR:  While executing gem ... (Zlib::GzipFile::Error)
    not in gzip format

I installed ruby 1.9.2 and and rubygems 1.8.9 seperately (after that I read about ruby 1.9.1+ including gem support already).

My gem source is: http://rubygems.org/

I have searched for solutions for quite some time. But can't find the issue.

Your help is appreciated :-)


EDIT1:

All right. After using the RailsInstaller I can find Rails in my gem-folder. When I try to open a project in Aptana I get the following Error:

sh.exe":C:/Projects/railsinstaller/Stage/Ruby1.9.2/bin/ruby.exe: bad interpreter: No such file or directory

found simialar issue here and here. but didn't help in my case.


EDIT2:

I started a new topic since I solved this issue indirectly and a new one occured. To follow my further steps go here

Community
  • 1
  • 1
Sven
  • 6,288
  • 24
  • 74
  • 116

3 Answers3

0

I have found a solution but not a direct one:

http://railsinstaller.org/ <-- here you can find an install-package that istalls all you need...

Sven
  • 6,288
  • 24
  • 74
  • 116
0

I used RailsInstaller for Windows but I still had that Aptana error, which I solved by simply calling:

$ gem update

than, on my project

$ bundle update

My error was:

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
Darme
  • 6,984
  • 5
  • 37
  • 52
0

gem update will work. This is because most of the bat files in bin directory refers to wrong railsInstaller path.

Atul
  • 1,694
  • 4
  • 21
  • 30