开发者

Difficulty getting Rails up and Running

I'm tryi开发者_运维问答ng to get rails up and running, but I can't seem to get bast the up part.

Fist I run

rails new test_app

Inside the application I run

bundle install

but when this happens I get a slew of errors - at the start it says "ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)"

EDIT:

Gist of issue https://gist.github.com/747423.

OS: OSX 10.6.5 RUBY: 1.8.7 RAILS: 3.0.1 XCODE: 3.2.2

can someone give me an idea of how to get this set up right,

Thanks


Perhaps you don't have a compiler installed? Like the commenters have said we need to know your platform and also we need to see more of the error message context.

EDIT

That's better. Your problem appears to be an incomplete or too-old installation of sqlite3. I'd suggest following the instructions in the error message and installing sqlite3 via macports (or fink or homebrew depending on preference).

You may also like to install RVM for a more flexible way to maintain ruby installations. It has gemsets which can really help to avoid polluting your system-wide rubygem collections with hundreds of old gems.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜