아마존의 사용자 정의 된 Linux 인 ami-595a0a1c로 빌드 된 인스턴스가 실행 중입니다. 내가 sqlite3를 (또는 sqlite가) 보석을 설치하려고하며 아래의 오류와 함께 실패하는 것 : Amazon Linux에 sqlite3 gem을 설치할 수 없습니다. (Ruby 및 sqlite 용 개발 라이브러리는 이미 설치되어 있습니다.)
는 일반적으로이 단지는 개발 라이브러리를 설치해야 의미 모든 것이 멋지다. 그러나 sqlite-devel 패키지를 설치했지만 여전히 주사위가 없습니다. 이것이 아마존 리눅스 인스턴스이기 때문에 가능한 경우 아마존이 제공하는 것보다 많은 저장소를 추가하지는 않을 것입니다. 이 일을 컴파일하려면 어떻게해야합니까? 어떤 통찰력을 가져 주셔서 감사합니다! 새로운 인스턴스에서 , 여기에 내가 무슨 짓을했는지의 :$ sudo gem install sqlite3 Building native extensions. This could take a while... ERROR: Error installing sqlite3: 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.
Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/ruby --with-sqlite3-dir --without-sqlite3-dir --with-sqlite3-include --without-sqlite3-include=${sqlite3-dir}/include --with-sqlite3-lib --without-sqlite3-lib=${sqlite3-dir}/lib Gem files will remain installed in /usr/lib64/ruby/gems/1.8/gems/sqlite3-1.3.3 for inspection. Results logged to /usr/lib64/ruby/gems/1.8/gems/sqlite3-1.3.3/ext/sqlite3/gem_make.out
$ sudo yum install rubygems ruby-devel
$ sudo gem update --system
$ sudo gem install rails
$ rails new app
$ cd app
$ rails server
Could not find gem 'sqlite3 (>= 0)' in any of the gem sources listed in your Gemfile.
$ sudo yum install sqlite-devel
$ sudo gem install sqlite (or sqlite3 -- same result)
참조 파손 위. 그리고 참고 - 레일을 실행하기 위해 gemfile의 라인을 주석 처리 할 수 있다는 것을 알지만 실제로 보석이 필요합니다. 미리 감사드립니다!
신선한 인스턴스에서 당신은 또한 냠 루비 - devel을 설치해야 um 설치 sqlite - devel – Jean