簡體   English   中英

如何在EC2上安裝sqlite3 gem?

[英]How to install sqlite3 gem on EC2?

當我試圖:

 sudo yum install ruby-devel sqlite3-devel

亞馬遜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

在我的Ubuntu框中,我按以下順序安裝了以下兩個庫以及gem:

sudo apt-get install libsqlite3-dev
sudo apt-get install sqlite3  # this installs several tools, including the command-line utility
sudo gem install sqlite3-ruby # this is going to spit out a bunch of errors, but you may be able to ignore them

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM