开发者

Bundle install error in Rails

This is the error message I got when I ran bundle install:

I'm running on Ubuntu 10.04, Ruby 1.9.2, Rails 3.0.1 and installed the latest RVM. My gemfile contains the sqlite3-ruby.

/home/manju/.rvm/rubies/ruby-1.9.2-开发者_StackOverflowp180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

I got the same error message when I installed the package libsqlite3-dev.


be sure to have the GNU compiling chain (GCC, make, ...)

On Ubuntu, all you have to do is be sure that the build-essential package is installed.

You can run sudo apt-get install build-essential for that.

The libsqlite3-dev package is probably also needed.


run

sudo apt-get install sqlite3 libsqlite3-dev

Then install sqlite3 gem

gem install sqlite3


Try this one.

Just update your bundler, May be of any-one of the older gem is conflicting with latest one, this type of issues arises.

'gem install bundler'

and then 'bundler install'

If you find again error, then delete GEM.lock file, then run bundler install. It may resolve the issue.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜