ruby-on-rails – 如何在EC2上安装sqlite3 gem?
发布时间:2020-12-16 21:13:49 所属栏目:百科 来源:网络整理
导读:当我试图: 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 alread
当我试图:
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 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |