简体   繁体   English

Ruby + Sinatra + Sequel,无法加载pg_ext

[英]Ruby + Sinatra + Sequel, cannot load pg_ext

I'm writing app using Ruby, Sinatra, psql and Sequel. 我正在使用Ruby,Sinatra,psql和Sequel编写应用程序。 I'm on Windows 7. I created database and wrote migations following tutorial. 我在Windows 7上。我按照教程创建数据库并编写了迁移。 Now I should run them using 现在我应该使用

sequel -m migrations postgres://<username>:<password>@localhost/good_vids_development

but I'm getting an error AdapterNotFound, Load Error, cannot load such file: pg_ext. 但是我收到一个错误AdapterNotFound, Load Error, cannot load such file: pg_ext.

Looks like the pg gem's C extension was not compiled. 看起来pg gem的C扩展未编译。 You either need to fix that or use a pure ruby driver (eg jeremyevans-postgres-pr). 您要么需要解决此问题,要么使用纯红宝石驱动程序(例如jeremyevans-postgres-pr)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM