sqlite3-ruby

Problem installing sqlite3-ruby!

拥有回忆 提交于 2019-11-28 03:37:48
问题 I'm having issues installing the sqlite3-ruby gem on crunchbang linux. After googling the past few hours and following several people with the same problem, I still haven't gotten it to work. Here is what I see after trying a '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/ruby1.8 extconf.rb checking for sqlite3.h... yes checking for sqlite3_libversion_number() in

Sqlite-3 error while running ROR application

北城以北 提交于 2019-11-28 01:25:01
问题 When i try to run Ruby on Rails application.... i facing the following error symbol lookup error: /home/user/.rvm/gems/ruby-1.9.2-preview3/gems/sqlite3-ruby-1.3.0/lib/sqlite3/sqlite3_native.so: undefined symbol: sqlite3_initialize I don't know whats the error exactly. can any one please help me out this...... 回答1: I had the same issue this morning after upgrading sqlite3-ruby to 1.3.0. A quick fix is to uninstall 1.3.0 and ensure 1.2.5 is installed: gem uninstall sqlite3-ruby --version 1.3.0

no such file to load — sqlite3/sqlite3_native

好久不见. 提交于 2019-11-27 23:06:38
问题 I am having trouble trying to run the following ruby script on OSX (Leopard). require 'sqlite3' database = SQLite3::Database.new( "new.database" ) database.execute( "create table sample_table (id INTEGER PRIMARY KEY, sample_text TEXT, sample_number NUMERIC);" ) database.execute( "insert into sample_table (sample_text,sample_number) values ('Sample Text1', 123)") database.execute( "insert into sample_table (sample_text,sample_number) values ('Sample Text2', 456)") rows = database.execute(

Segmentation fault with Rails after upgrading to OS Sierra, possibly related to sqlite3 gem

别来无恙 提交于 2019-11-27 15:40:26
问题 After upgrading to OSX Sierra I am having an issue with random segmentation faults. It most commonly occurs when running rails test and I believe it is due to the sqlite3_adapter. My present work around is to simply quit terminal and restart it. This works for about 1 or 2 rails test and by the third one I am almost guaranteed to get another segmentation fault. Is anybody else having an issue with this or find a better workaround? $ rails t Running via Spring preloader in process 13817 /Users

sqlite3 gem fails to install

南笙酒味 提交于 2019-11-27 13:15:35
I'm trying to install the "sqlite3-ruby" gem (or the "sqlite3" gem) on OS X 10.6. I'm using ruby-1.9.2 and I currently get the following: $ sqlite3 --version 3.7.4 $ sudo gem install sqlite3 Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. /Users/folken/.rvm/rubies/ruby-1.9.2-head/bin/ruby extconf.rb checking for sqlite3.h... *** 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

How to solve “Cannot add a NOT NULL column with default value NULL” in SQLite3?

二次信任 提交于 2019-11-27 06:57:18
I am getting the following error while trying to add a NOT NULL column to an existing table. Why is it happening ?. I tried rake db:reset thinking that the existing records are the problem, but even after resetting the DB, the problem persists. Can you please help me figure this out. Migration File class AddDivisionIdToProfile < ActiveRecord::Migration def self.up add_column :profiles, :division_id, :integer, :null => false end def self.down remove_column :profiles, :division_id end end Error Message SQLite3::SQLException: Cannot add a NOT NULL column with default value NULL: ALTER TABLE

sqlite3-ruby install error on Ubuntu

人走茶凉 提交于 2019-11-26 23:25:31
I have the following error during sqlite3-ruby install: Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb checking for sqlite3.h... no sqlite3.h is missing. Try 'port install sqlite3 +universal' or 'yum install sqlite3-devel' *** 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 -

sqlite3 gem fails to install

ぃ、小莉子 提交于 2019-11-26 16:16:20
问题 I'm trying to install the "sqlite3-ruby" gem (or the "sqlite3" gem) on OS X 10.6. I'm using ruby-1.9.2 and I currently get the following: $ sqlite3 --version 3.7.4 $ sudo gem install sqlite3 Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. /Users/folken/.rvm/rubies/ruby-1.9.2-head/bin/ruby extconf.rb checking for sqlite3.h... *** extconf.rb failed *** Could not create Makefile due to some reason, probably

How to solve “Cannot add a NOT NULL column with default value NULL” in SQLite3?

雨燕双飞 提交于 2019-11-26 12:57:16
问题 I am getting the following error while trying to add a NOT NULL column to an existing table. Why is it happening ?. I tried rake db:reset thinking that the existing records are the problem, but even after resetting the DB, the problem persists. Can you please help me figure this out. Migration File class AddDivisionIdToProfile < ActiveRecord::Migration def self.up add_column :profiles, :division_id, :integer, :null => false end def self.down remove_column :profiles, :division_id end end Error

sqlite3-ruby install error on Ubuntu

空扰寡人 提交于 2019-11-26 08:40:02
问题 I have the following error during sqlite3-ruby install: Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb checking for sqlite3.h... no sqlite3.h is missing. Try \'port install sqlite3 +universal\' or \'yum install sqlite3-devel\' *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file