Sida 1 av 1

ruby on rails, 10.10, kan ej installera sqlite3-ruby[LÖST]

Postat: 09 nov 2010, 10:38
av jansson
Hej. Sitter och försöka komma ihång med Ruby on Rails på Ubuntu 10.10 och följer den här guiden. http://guides.rubyonrails.org/getting_started.html. Jag hade först problem med att installera version 3 men det har jag lyckats med nu så nu kan jag iaf följa guiden.

Men nu kom nästa problem. När jag kör

Kod: Markera allt

bundle install
enligt guiden så får jag följande fel:

Kod: Markera allt

rails@ubuntu:~/rails/blog$ bundle install
Fetching source index for http://rubygems.org/
/usr/lib/ruby/1.8/fileutils.rb:243:in `mkdir': Permission denied - /home/rails/.gem/specs (Errno::EACCES)
	from /usr/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir'
	from /usr/lib/ruby/1.8/fileutils.rb:217:in `mkdir_p'
	from /usr/lib/ruby/1.8/fileutils.rb:215:in `reverse_each'
	from /usr/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p'
	from /usr/lib/ruby/1.8/fileutils.rb:201:in `each'
	from /usr/lib/ruby/1.8/fileutils.rb:201:in `mkdir_p'
	from /usr/local/lib/site_ruby/1.8/rubygems/spec_fetcher.rb:110:in `fetch_spec'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/remote_specification.rb:47:in `_remote_specification'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/remote_specification.rb:53:in `method_missing'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:104:in `__dependencies'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:101:in `each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:101:in `__dependencies'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:71:in `activate_platform'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:325:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:216:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:216:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:216:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:216:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:216:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:216:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:216:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:216:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:216:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:216:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:216:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:216:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:216:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:216:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:344:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:343:in `resolve_requirement'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:295:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `reverse_each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:294:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:162:in `start'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:131:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:130:in `catch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb:130:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/definition.rb:153:in `resolve'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/definition.rb:93:in `specs'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/definition.rb:88:in `resolve_remotely!'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/installer.rb:35:in `run'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/installer.rb:8:in `install'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/cli.rb:221:in `install'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/task.rb:22:in `send'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/task.rb:22:in `run'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor.rb:246:in `dispatch'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/base.rb:389:in `start'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/bin/bundle:13
	from /usr/bin/bundle:19:in `load'
	from /usr/bin/bundle:19
rails@ubuntu:~/rails/blog$
Jag testade med sudo och jag testade med

Kod: Markera allt

sudo gem install sqlite3-ruby
och fick samma fel båda gångerna.

Borde jag kanske köra på 10.04 eller kan det vara något annat fel?

Kanske borde jag köra någon annan dist helt och hållet.

Jag bytte till Ubuntu för att det tydligen skulle vara dåligt att köra på Windows enligt den där guiden. Lika så är den server vi hyrt en ubuntu-server.

Re: ruby on rails, 10.10, kan ej installera sqlite3-ruby

Postat: 09 nov 2010, 11:22
av jansson
Försökte nu med mysql genom att ändra inställningarna i ./config/database.yml till mysql, kommentera ut sqlite3 ut ./gemfile och installera mysql genom

Kod: Markera allt

sudo gem install mysql2
men jag fick samma fel igen.

Kod: Markera allt

rails@ubuntu:~/rails/blog$ sudo gem install mysql2
Building native extensions.  This could take a while...
ERROR:  Error installing mysql2:
	ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
checking for rb_thread_blocking_region()... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
	--with-opt-dir
	--without-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/usr/bin/ruby1.8
	--with-mysql-config
	--without-mysql-config
	--with-mysql-dir
	--without-mysql-dir
	--with-mysql-include
	--without-mysql-include=${mysql-dir}/include
	--with-mysql-lib
	--without-mysql-lib=${mysql-dir}/lib
	--with-mysqlclientlib
	--without-mysqlclientlib
	--with-mlib
	--without-mlib
	--with-mysqlclientlib
	--without-mysqlclientlib
	--with-zlib
	--without-zlib
	--with-mysqlclientlib
	--without-mysqlclientlib
	--with-socketlib
	--without-socketlib
	--with-mysqlclientlib
	--without-mysqlclientlib
	--with-nsllib
	--without-nsllib
	--with-mysqlclientlib
	--without-mysqlclientlib
	--with-mygcclib
	--without-mygcclib
	--with-mysqlclientlib
	--without-mysqlclientlib


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mysql2-0.2.6 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/mysql2-0.2.6/ext/mysql2/gem_make.out
rails@ubuntu:~/rails/blog$
ideér?

Re: ruby on rails, 10.10, kan ej installera sqlite3-ruby

Postat: 09 nov 2010, 11:36
av jansson
Här är mkmf.log som det hänvisas till i felmeddelandet också.

Kod: Markera allt

find_header: checking for sqlite3.h... -------------------- no

"gcc -E -I. -I/usr/lib/ruby/1.8/i686-linux -I. -I/usr/local/include -I/opt/local/include -I/sw/local/include -I/usr/include  -D_FILE_OFFSET_BITS=64  -fno-strict-aliasing -g -g -O2  -fPIC    conftest.c -o conftest.i"
conftest.c:1: fatal error: sqlite3.h: Filen eller katalogen finns inte
compilation terminated.
checked program was:
/* begin */
1: #include <sqlite3.h>
/* end */

--------------------

Re: ruby on rails, 10.10, kan ej installera sqlite3-ruby[LÖS

Postat: 09 nov 2010, 12:37
av jansson
Allt löste sig iaf med lite hjälp från officiella ruby on rails IRC-kanalen.

Tydligen så måste man ha libsqlite3-dev installerat för att det ska fungera.
Hehe, bra att det är så intuitivt ;D

Re: ruby on rails, 10.10, kan ej installera sqlite3-ruby[LÖS

Postat: 17 nov 2010, 00:10
av AJxn
Varför använder du inte ruby och rails som är paketerat med Ubuntu? Då hade dessa "problem" lösts direkt. Detta eftersom Ubuntu-paketen, till skillnad från gem, ser till att beroenden på andra paket hanteras (pseudo-)automatiskt.

gem är ett program som laddar hem ruby-paket och installerar dem. Men de måste ju ha tillgång till C-biblioteken som gör arbetet. Som för att snacka med SQLite3- eller MySQL-databasen så måste du ju ha C-koden för detta. Den ligger paketerad i programpaket(libraries) som libsqlight3*-dev respektive libmysql*-dev.

Suffixet (slutet) på paketnamnet, "-dev", talar om att paketet innehåller allt som behövs för att kompilera egna program som använder sig av dessa bibliotek.

De motsvarande paket som inte har "-dev", som libsqlite3, är de paket som andra behöver för att över huvud taget köra program som använder sig av SQLite3-databaser.

Installerar du färdiga paket från Ubuntu, så fixas detta automatisk, installerar dui själv, som du gör med Gem, så måste du se till detta själv.

Sedan om du läste felmedelandet så står det ju att det saknas programbibliotek. Fast det kan vara svårt att se om man är ovan med Linux. Men till nästa gång så vet du det :)

Kod: Markera allt

Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Re: ruby on rails, 10.10, kan ej installera sqlite3-ruby[LÖS

Postat: 17 nov 2010, 13:06
av jansson
AJxn skrev:Varför använder du inte ruby och rails som är paketerat med Ubuntu? Då hade dessa "problem" lösts direkt. Detta eftersom Ubuntu-paketen, till skillnad från gem, ser till att beroenden på andra paket hanteras (pseudo-)automatiskt.

gem är ett program som laddar hem ruby-paket och installerar dem. Men de måste ju ha tillgång till C-biblioteken som gör arbetet. Som för att snacka med SQLite3- eller MySQL-databasen så måste du ju ha C-koden för detta. Den ligger paketerad i programpaket(libraries) som libsqlight3*-dev respektive libmysql*-dev.

Suffixet (slutet) på paketnamnet, "-dev", talar om att paketet innehåller allt som behövs för att kompilera egna program som använder sig av dessa bibliotek.

De motsvarande paket som inte har "-dev", som libsqlite3, är de paket som andra behöver för att över huvud taget köra program som använder sig av SQLite3-databaser.

Installerar du färdiga paket från Ubuntu, så fixas detta automatisk, installerar dui själv, som du gör med Gem, så måste du se till detta själv.

Sedan om du läste felmedelandet så står det ju att det saknas programbibliotek. Fast det kan vara svårt att se om man är ovan med Linux. Men till nästa gång så vet du det :)

Kod: Markera allt

Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Anledningen till att jag inte kör ruby och rails som är paketerat med Ubuntu är att jag vill ha version 3. Kommer inte ihåg vad det var för version som finns i förådet men det var inte 3 iaf. Jag följer guider som finns på rubyonrails.org och dom förutsätter version 3. Nästan varje steg jag tog enl. guiden ställde till problem tex det första steget

Kod: Markera allt

rails new blog
var i gamla versionen

Kod: Markera allt

rails blog
Jag hade ingen lust att sitta och klura ut om det var jag som gjort fel eller om det var guiden som inte stämde med min version av rails varje gång jag fick ett felmeddelande. Inte ville jag luska ut hur jag skulle göra annars heller, om det var guiden som inte stämde.

Re: ruby on rails, 10.10, kan ej installera sqlite3-ruby[LÖS

Postat: 18 nov 2010, 06:33
av AJxn
Ok. Men då blir det lite krångligare, eftersom du måste kompilera RoR själv.

Annars är den paketerade versionen den senaste stabila versionen. Rails v3 är väl fortfarande en utvecklingsversion.

Men dit argument är så gott som något, och då är det bara att kompilera Rails själv. Vet inte om du behöver kompilera Ruby dock, men det tar ju inte så lång tid det heller, när man har alla nödvändiga *-dev paket installerade.

Men glöm inte att du nu själv måste hålla reda på säkerhetsuppdateringar som kommer till RoR.

I vart fall,

Lycka till med hackandet.