From: Jacob Bandes-storch Date: 2009-04-27T06:34:13+09:00 Subject: Iconv (& sqlite) problems on Leopard: Ruby 1.9.1/Rails 2.3.2 I have both a PPC Mac and an Intel Mac, and I recently installed Ruby 1.9.1 from source on both the same way, and Rails 2.3.2. I'm trying to run a Rails app locally that's set to use sqlite3. This is a side question, not the main issue: on the PPC mac, when I started the server, I got errors about sqlite3 not existing. I was able to fix that by doing "sudo gem install sqlite3-ruby". This didn't happen on the Intel mac. Why did I have to do that? On the Intel mac, when I try to start the server, I get this: /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/inflector.rb:3:in `require': no such file to load -- iconv (LoadError) from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/inflector.rb:3:in `' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/core_ext/integer/inflections.rb:1:in `require' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/core_ext/integer/inflections.rb:1:in `' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/core_ext/integer.rb:2:in `require' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/core_ext/integer.rb:2:in `' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/core_ext.rb:3:in `require' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/core_ext.rb:3:in `block in ' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/core_ext.rb:1:in `each' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/core_ext.rb:1:in `' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support.rb:55:in `require' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support.rb:55:in `' from /usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/commands/server.rb:1:in `require' from /usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/commands/server.rb:1:in `' from script/server:3:in `require' from script/server:3:in `
' And this doesn't happen on the PPC mac. On PPC, when I run "gem which iconv", I get /usr/local/lib/ruby/1.9.1/powerpc-darwin9.6.0/iconv.bundle. When I run that on the Intel mac, I get "Can't find ruby library file or shared library iconv". (Using the old preinstalled 1.8 version of ruby, the path to the iconv bundle that's in .../Ruby.framework/... shows up, on both computers.) I checked the /usr/local/lib/ruby/1.9.1/i386-darwin9.6.0/ folder on the Intel mac, and iconv.bundle is not there. Why is this happening? How can I fix it — where can I get iconv? Thanks. -- Posted via http://www.ruby-forum.com/.