hi all
i'm trying to install ruby on rails on my debian server. i didn't use
apt-get. i installed everything from source. i used this tutorial
(without PD-Admin):
http://railswiki.de/Ruby_on_Rails_auf_einem_Debian_Server_installieren
now i can't install rails over gem, i'm getting this zlib crc error:
root@co2:~# gem install rails --include-dependencies --verbose --
backtrace
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
ERROR: While executing gem ... (Zlib::GzipFile::CRCError)
invalid compressed data -- crc error
/usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:508:in `close'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:508:in
`initialize'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:445:in
`each_entry'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:439:in `loop'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:439:in
`each_entry'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:424:in `each'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:485:in
`initialize'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:582:in `new'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:582:in
`open_from_io'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:802:in
`open_from_io'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/format.rb:69:in `from_io'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/format.rb:52:in
`from_file_by_path'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:
104:in `find_gems_with_sources'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:
103:in `each'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:
103:in `find_gems_with_sources'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:
196:in `gather_dependencies'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:
195:in `each'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:
195:in `gather_dependencies'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:
91:in `initialize'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/commands/
install_command.rb:69:in `new'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/commands/
install_command.rb:69:in `execute'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/commands/
install_command.rb:67:in `each'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/commands/
install_command.rb:67:in `execute'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/command.rb:136:in `invoke'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:104:in
`process_args'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:74:in
`run'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:39:in `run'
/usr/local/bin/gem:22
somebody any idea, what the problem is?
thanks in advance!
on 2008-04-04 21:36
on 2008-04-07 19:44
Hi.
Did you found a solution for this problem?
I got the same problem on debian and searched already a lot for
solutions.
I found only that you may haven't installed zlib. You can check this
via:
---
# ruby -e "puts(require('zlib'))"
true
---
Unfortunately i get true back, but still got this error. Has anyone a
idea?
Here are my details:
---
# gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.1.0 (1.1.0)
- RUBY VERSION: 1.8.6 (2007-03-13 patchlevel 0) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/local/bin/ruby
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/local/lib/ruby/gems/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org
# uname -a
Linux vadmin408 2.6.18-xen #2 SMP Fri Aug 24 20:31:36 CEST 2007 x86_64
GNU/Linux
---
thx
on 2008-04-09 13:29
Hi yes, you have to install the ruby1.8-dev package from apt-get. this problems are because of mixing apt-get with rails 2.0... On 7 Apr., 19:44, Hinnerk Gildhoff <rails-mailing-l...@andreas-s.net>
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.