Error Installing Sqlite3-ruby Os X
Contents |
here for a quick overview of the site Help Center Detailed answers install sqlite3 mac os x to any questions you might have Meta Discuss the workings
Install The Sqlite3 Ruby Gem
and policies of this site About Us Learn more about Stack Overflow the company Business
Error Installing Sqlite3 Failed To Build Gem Native Extension
Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the
Install Sqlite Os X
Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up I can't install the sqlite3 gem on mac osx 10.8.2 up vote 4 down vote favorite 1 My bundle install is not working install mysql os x and I get this error: Installing sqlite3 (1.3.6) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/Frank/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb --with-sqlite3- include=/Users/Frank/include --with-sqlite3-lib=/Users/Frank/lib --with-sqlite3-dir=/Users/Frank/bin checking for sqlite3.h... yes checking for sqlite3_libversion_number() in -lsqlite3... yes checking for rb_proc_arity()... yes checking for sqlite3_initialize()... yes checking for sqlite3_backup_init()... yes checking for sqlite3_column_database_name()... no checking for sqlite3_enable_load_extension()... no checking for sqlite3_load_extension()... no checking for sqlite3_open_v2()... yes checking for sqlite3_prepare_v2()... yes checking for sqlite3_int64 in sqlite3.h... yes checking for sqlite3_uint64 in sqlite3.h... yes creating Makefile Which I think it has to do with the libsql-dev thats not working. but then I get this make compiling backup.c In file included from ./sqlite3_ruby.h:51, from backup.c:3: ./backup.h:7: error: expected specifier-qualifier-list before ‘sqlite3_backup’ backup.c: In function ‘initialize’: backup.c:63: error: ‘sqlite3_backup’ undeclared (first use in this function) backup.c:63: error: (Each undeclared identifier is reported only once backup.c:63: error: for each function it appears in.) backup.c:63: error: ‘pBackup
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and osx install sqlite3 policies of this site About Us Learn more about Stack Overflow the sqlite3 gem company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes http://stackoverflow.com/questions/14026944/i-cant-install-the-sqlite3-gem-on-mac-osx-10-8-2 a minute: Sign up Installing Sqlite3 for Ruby (Mac OSX 10.5.8) up vote 3 down vote favorite 1 I am following this guide ATM - http://guides.rubyonrails.org/getting_started.html#getting-up-and-running-quickly-with-scaffolding When trying to create a database, I got: Morgans-Computer:blog Morgan$ rake db:create Could not find gem 'sqlite3 (>= 0)' in any of the gem sources listed in your Gemfile. Run bundle install to install missing gems. http://stackoverflow.com/questions/7701236/installing-sqlite3-for-ruby-mac-osx-10-5-8 When I try to run 'bundle install', I get more errors: Installing sqlite3 (1.3.4) with native extensions /Users/Morgan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:551:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /Users/Morgan/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb I have tried to install the Ruby Gem Sqlite3 (http://rubygems.org/gems/sqlite3-ruby) but it continues to fail. I found another post on here saying that I need to install C because that is what the compiler is written in? Wasn't sure exactly what that meant, or how I go about doing it. Any help would be greatly appreciated!! ruby osx homebrew sqlite3-ruby share|improve this question edited Oct 9 '11 at 18:08 Mike Atlas 6,36232752 asked Oct 9 '11 at 3:19 Morgan Allen 472517 add a comment| 3 Answers 3 active oldest votes up vote 4 down vote If you don't already have homebrew installed, I would set that up first. It's a nice package manager and allows you to install things like sqlite with brew install sqlite. To install brew you'll need xcode installed. If you don't already have that you'll probably need the cd that came with you system, o
Forum »Setup and Configuration »Can't install sqlite3-ruby gem on Mac http://archive.railsforum.com/viewtopic.php?id=23018 OS X Pages 1 Posts [ 13 ] 1 Topic by tom_soderlund 2008-10-05 18:29:52 tom_soderlund From: Stockholm, Sweden Registered: 2008-10-05 Posts: 53 Topic: Can't install sqlite3-ruby gem https://gorails.com/setup/osx/ on Mac OS X Hello,I have problems installing the sqlite3-ruby gem on my Mac OS X (10.5) system.I run the command:sudo gem install sqlite3-ruby...and I get the message:Building os x native extensions. This could take a while...ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension./opt/local/bin/ruby extconf.rb install sqlite3-rubychecking for fdatasync() in -lrt... nochecking for sqlite3.h... yeschecking for sqlite3_open() in -lsqlite3... yescreating Makefilemakegcc -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin8.10.2 -I. -DHAVE_SQLITE3_H -I/usr/local/include -I/opt/local/include -fno-common -O2 -fno-common -pipe -fno-common -c sqlite3_api_wrap.ccc -dynamic -bundle -undefined suppress -flat_namespace -L/opt/local/lib error installing sqlite3 -L"/opt/local/lib" -L"/usr/local/lib" -o sqlite3_api.bundle sqlite3_api_wrap.o -lruby -lsqlite3 -lpthread -ldl -lobjc ld: in /usr/local/lib/libstdc++.6.dylib, file is not of required architecturecollect2: ld returned 1 exit statusmake: *** [sqlite3_api.bundle] Error 1Gem files will remain installed in /opt/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4 for inspection.Results logged to /opt/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/gem_make.outHow can I get around this?The sqlite3 version installed is 3.4.0, gem version is 1.3.0, ruby is 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.10.2].Regards,Tom. tom_soderlund's Website 2 Reply by standout 2008-10-06 12:30:44 standout From: Vaxjo, Sweden Registered: 2006-11-05 Posts: 58 Re: Can't install sqlite3-ruby gem on Mac OS X Do you have Developer Tools installed? David SvenssonRails developer at Standout solutions, Vaxjo, Sweden standout's Website 3 Reply by tom_soderlund 2008-10-06 18:46:17 tom_soderlund From: Stockholm, Sweden Registered: 2008-10-05 Posts: 53 Re: Can't install sqlite3-ruby gem on Mac OS X standout wrote:Do you have Developer Tools installed?Mac Developer Tools? Yes. tom_soderlund's Website 4 Reply by tom_soderlund 2008-10-07 10:31:59 tom_soderlund From: Stockholm, Sweden Registered: 2008-10-05 Posts: 53 Re: Can't install sqlite3-ruby gem on Mac OS X By following these instructions:http:
Logs with LogRotate Setting Up Rails 4 with MongoDB and Mongoid Using Vagrant for Rails Development Community Pricing Login Sign Up Home Screencasts Community Account Overview Installing Homebrew Installing Ruby Configuring Git Installing Rails Setting Up A Database MySQL PostgreSQL Final Steps Watch the latest screencast Direct File Uploads to S3: Part 3 Setup Ruby On Rails on Mac OS X 10.11 El Capitan A guide to setting up a Ruby on Rails development environment Mac OS X 10.12 Mac OS X 10.11 Mac OS X 10.10 Mac OS X 10.9 Ubuntu Windows Overview This will take about 30 minutes. We will be setting up a Ruby on Rails development environment on Mac OS X 10.11 El Capitan. Older versions of OS X are mostly compatible so follow along as far as you can and then Google search for any problems you run into. There are plenty of people who have documented solutions for them. Installing Homebrew First, we need to install Homebrew. Homebrew allows us to install and compile software packages easily from source. Homebrew comes with a very simple install script. When it asks you to install XCode CommandLine Tools, say yes. Open Terminal and run the following command: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Installing Ruby Choose the version of Ruby you want to install: 2.3.1 (Recommended) 2.2.5 2.1.9 2.0.0-p648 Now that we have Homebrew installed, we can use it to install Ruby. We're going to use rbenv to install and manage our Ruby versions. To do this, run the following commands in your Terminal: brew install rbenv ruby-build # Add rbenv to bash so that it loads every time you open a terminal echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile source ~/.bash_profile # Install Ruby rbenv install 2.3.1 rbenv global 2.3.1 ruby -v Configuring Git We'll be using Git for our version control system so we're going to set it up to match our Github account. If you don't already have a Gi