Am getting this error message when I try to start 'Rails Server' after updating MacPorts earlier today.
User$ rails server
Could not find linecache-0.43 in any of the sources
Run `bundle install` to install missing gems.
User$
I've read elsewhere to try installing linecache19 instead of linecache as the former is incompatible with Ruby version 1.9.2. Okay, so 'sudo gem install linecache19' then 'bundle install' and then this error appears:
Building native extensions. This could take a while...
Successfully installed linecache19-0.5.12
1 gem installed
Installing ri documentation for linecache19-0.5.12...
Installing RDoc documentation for linecache19-0.5.12...
User$ bundle install
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
...
Using jquery-rails (1.0.4)
Using rails (3.0.5)
Using kaminari (0.12.4)
Installing linecache (0.43) with native extensions /opt/local/lib/ruby1.9/1.9.1/rubygems/installer.rb:483:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension
. (Gem::Installer::ExtensionBuildError)
/opt/local/bin/ruby extconf.rb
Can't handle 1.9.x yet
*** 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
--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=/opt/local/bin/ruby
Gem files will remain installed in /Users/xxx/.bundler/tmp/1805/gems/linecache-0.43 for inspection.
Results logged to /Users/xxx/.bundler/tmp/1805/gems/linecache-0.43/ext/gem_make.out
from /opt/local/lib/ruby1.9/1.9.1/rubygems/installer.rb:486:in `block in build_extensions'
from /opt/local/lib/ruby1.9/1.9.1/rubygems/installer.rb:446:in `each'
from /opt/local/lib/ruby1.9/1.9.1/rubygems/installer.rb:446:in `build_extensions'
from /opt/local/lib/ruby1.9/1.9.1/rubygems/installer.rb:198:in `install'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/source.rb:101:in `block in install'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/rubygems_integration.rb:78:in `preserve_paths'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/source.rb:91:in `install'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/installer.rb:58:in `block (2 levels) in run'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/rubygems_integration.rb:93:in `with_build_args'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/installer.rb:57:in `block in run'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/installer.rb:49:in `run'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/installer.rb:8:in `install'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/cli.rb:220:in `install'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/vendor/thor/task.rb:22:in `run'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/vendor/thor/base.rb:386:in `start'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/bundler-1.0.18/bin/bundle:13:in `<top (required)>'
from /opt/local/bin/bundle:19:in `load'
from /opt/local/bin/bundle:19:in `<main>'
User$
Any help would be appreciated...