ruby-on-rails - 如何在 EC2 上安装 sqlite3 gem?

标签 ruby-on-rails sqlite amazon-ec2

当我尝试:

 sudo yum install ruby-devel sqlite3-devel

Amazon EC2 返回:

 Loaded plugins: fastestmirror, priorities, security
 Loading mirror speeds from cached hostfile
 Setting up Install Process
 Package ruby-devel-1.8.7.330-1.5.amzn1.i686 already installed and latest version
 No package sqlite3-devel available.
 Nothing to do

任何帮助将不胜感激。

更新:

sudo gem install sqlite3-ruby

返回

Building native extensions.  This could take a while...
ERROR:  Error installing sqlite3-ruby:
    ERROR: Failed to build gem native extension.

        /usr/bin/ruby extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite3-devel' and check your shared library search path (the
location where your sqlite3 shared library is located).
*** 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.

最佳答案

sudo yum install sqlite3-devel 应该是:

sudo yum install sqlite-devel

关于ruby-on-rails - 如何在 EC2 上安装 sqlite3 gem?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5789432/

相关文章:

ruby-on-rails - ruby - ActiveRecord::ConnectionNotEstablished

android - SQLite 外键显示

heroku - 我可以使用 Heroku buildpack 部署到我自己的本地服务器吗?

java - 错误 :getReadableDatabase() on a null object reference

数据库作为文件格式

linux - 如何替换 Amazon EC2 实例的 key 对文件?

amazon-web-services - 将数据从 AWS SQS 传输到 S3 的最佳方式是什么?

ruby-on-rails - travis setup heroku 命令产生存储库未知错误

ruby-on-rails - Rails,gem,require,zsh和错误消息!由于与 “require”有关的问题,我无法加载我的应用

ruby-on-rails - nginx http 代理状态 400 "400 Bad Request"带 SSL 客户端身份验证和 Rails