zoukankan      html  css  js  c++  java
  • about sqlite3 error when install rails3.1

    mlzboy@mlzboy-laptop:~/my/IR$ bundle install
    Fetching source index for http://rubygems.org/
    Installing rake (0.9.2.2)
    Using multi_json (1.0.4)
    Using activesupport (3.1.3)
    Using builder (3.0.0)
    Using i18n (0.6.0)
    Using activemodel (3.1.3)
    Using erubis (2.7.0)
    Using rack (1.3.5)
    Using rack-cache (1.1)
    Using rack-mount (0.8.3)
    Using rack-test (0.6.1)
    Using hike (1.2.1)
    Using tilt (1.3.3)
    Using sprockets (2.0.3)
    Using actionpack (3.1.3)
    Using mime-types (1.17.2)
    Using polyglot (0.3.3)
    Using treetop (1.4.10)
    Using mail (2.3.0)
    Using actionmailer (3.1.3)
    Using arel (2.2.1)
    Using tzinfo (0.3.31)
    Using activerecord (3.1.3)
    Using activeresource (3.1.3)
    Installing ansi (1.4.1)
    Using bundler (1.0.21)
    Installing coffee-script-source (1.1.3)
    Installing execjs (1.2.12)
    Installing coffee-script (2.2.0)
    Using rack-ssl (1.3.2)
    Using json (1.6.3)
    Using rdoc (3.11)
    Using thor (0.14.6)
    Using railties (3.1.3)
    Installing coffee-rails (3.1.1)
    Installing jquery-rails (1.0.19)
    Installing thrift (0.8.0) with native extensions
    Installing massive_record (0.2.1)
    Using rails (3.1.3)
    Using sass (3.1.11)
    Installing sass-rails (3.1.5)
    Installing sqlite3 (1.3.5) with native extensions
    Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

            /home/mlzboy/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb
    checking for sqlite3.h... no
    sqlite3.h is missing. Try 'port install sqlite3 +universal'
    or 'yum install sqlite-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=/home/mlzboy/.rvm/rubies/ruby-1.9.3-p0/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
        --enable-local
        --disable-local


    Gem files will remain installed in /home/mlzboy/.rvm/gems/ruby-1.9.3-p0/gems/sqlite3-1.3.5 for inspection.
    Results logged to /home/mlzboy/.rvm/gems/ruby-1.9.3-p0/gems/sqlite3-1.3.5/ext/sqlite3/gem_make.out
    An error occured while installing sqlite3 (1.3.5), and Bundler cannot continue.
    Make sure that `gem install sqlite3 -v '1.3.5'` succeeds before bundling.

    sudo apt-get install libsqlite3-dev
    http://stackoverflow.com/questions/3458602/sqlite3-ruby-install-error-on-ubuntu

  • 相关阅读:
    xib中Autolayout的使用
    duplicate symbol _gestureMinimumTranslation in:
    oracle数字字符串是否有非法数字
    ora-01536 space quota exceeded for tablespace
    Linux core 文件(二)
    Linux core 文件(一)
    完全卸载oracle11g步骤
    oracle11gr2 for windows 32-bit win7安装与卸载
    Oracle的几个概念:数据库名,全局数据库名,SID,实例,命名空间,schema
    cut 字符截取命令
  • 原文地址:https://www.cnblogs.com/lexus/p/2284161.html
Copyright © 2011-2022 走看看