Error Installing Sqlite3-ruby Centos
Contents |
here for a quick overview of the site Help Center Detailed answers to any error installing sqlite3 failed to build gem native extension questions you might have Meta Discuss the workings and policies of install sqlite3 linux this site About Us Learn more about Stack Overflow the company Business Learn more about hiring install sqlite centos 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
Install Mysql Centos
a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Issue with 'gem install sqlite3-ruby' on RHEL6 up vote 2 down vote favorite I'm attempting to install Ruby on Rails 3 on RHEL 6. I've 'yum install' sqlite and sqlite-devel (which error installing sqlite3: error: failed to build gem native extension. is sqlite3 on RHEL6). As you can see, sqlite3.h does exist where it needs to be. 'gem install sqlite3-ruby' still doesn't work, for some reason. SQLite3: [root@rhel6base gems]# yum list sqlite-devel Installed Packages sqlite-devel.x86_64 3.6.20-1.el6 @local Available Packages sqlite-devel.i686 3.6.20-1.el6 local [root@rhel6base gems]# ls -l /usr/include/sqlite3.h -rw-r--r--. 1 root root 268966 Nov 24 2009 /usr/include/sqlite3.h Gem install: [root@rhel6base gems]# 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. 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
Issues related to software problems. Post Reply install sqlite3 centos Print view Search Advanced search 4 posts • Page
Importerror: No Module Named _sqlite3
1 of 1 heidoo Posts: 9 Joined: 2008/01/28 06:19:37 sqlite gem error Quote Postby heidoo » 2008/02/01 06:31:38 Hello,I am trying to install a ruby-sqlite gem, however the installation fails saying there is no http://stackoverflow.com/questions/6014332/issue-with-gem-install-sqlite3-ruby-on-rhel6 sqlite.h file. I have install both sqlite and sqlite-devel packages (the h file should be part of the devel one). Did anyone resolve this issue somehow?Thanks. Top ponto Posts: 1 Joined: 2008/11/12 20:54:09 Re: sqlite gem error Quote Postby ponto » 2008/11/12 21:01:31 http://www.centos.org/forums/viewtopic.php?t=19167 you should be talkin' about this:mathilda ~ # gem install sqlite3-rubyBuilding native extensions. This could take a while...ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension./usr/bin/ruby extconf.rb install sqlite3-rubychecking for fdatasync() in -lrt... nochecking for sqlite3.h... nomakemake: *** No rule to make target `ruby.h', needed by `sqlite3_api_wrap.o'. Stop.Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4 for inspection.Results logged to /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/gem_make.outand i've this rpm's installed:mathilda ~ # rpm -qa | egrep 'sqlite'python-sqlite-1.1.7-1.2.1sqlite-devel-3.3.6-2sqlite-3.3.6-2mathilda ~ # rpm -qa | egrep '(ruby)|(irb)'rubygem-rake-0.7.3-2.el5ruby-irb-1.8.5-5.el5_2.5rubygem-actionmailer-2.1.1-1.el5ruby-libs-1.8.5-5.el5_2.5ruby-devel-1.8.5-5.el5_2.5ruby-ri-1.8.5-5.el5_2.5rubygems-1.2.0-2.el5rubygem-activeresource-2.1.1-1.el5ruby-1.8.5-5.el5_2.5ruby-rdoc-1.8.5-5.el5_2.5rubygem-activesupport-2.1.1-1.el5rubygem-activerecord-2.1.1-1.el5rubygem-actionpack-2.1.1-1.el5ruby-docs-1.8.5-5.el5_2.5rubygem-rails-2.1.1-2.el5and the sqlite3.h is here.mathilda ~ # find /usr/ -iname *sqlite3.h*/usr/include/sqlite3.hdoes anyone knows how to solve this? Top scottalanmiller Posts: 1 Joined: 2008/11/23 23:43:33 Contact: Contact scottalanmiller Website Re: sqlite gem error Quote Postby scottalanmiller » 2008/11/23 23:45:53 My guess is that you are missing the GCC compiler. Gem
a GitHub account Sign in Create a gist now Instantly share code, notes, and https://gist.github.com/1083087 snippets. Star 5 Fork 6 fabrizioc1/install-sqlite.sh Created Jul 14, 2011 Embed What would you like to do? Embed Embed this gist in your website. Embed Share Copy sharable URL for this gist. Share Clone via HTTPS Clone with Git or checkout with SVN using the repository's web address. error installing HTTPS Learn more about clone URLs Download ZIP Code Revisions 2 Stars 5 Forks 6 Installing sqlite3 in CentOS for use with ruby-sqlite3 Raw install-sqlite.sh # The YUM package is too old for use with ruby-sqlite3, use the autoconf package from www.sqlite.org cd /opt wget http://www.sqlite.org/sqlite-autoconf-3070701.tar.gz tar xvzf sqlite-autoconf-3070701.tar.gz error installing sqlite3 ln -s /opt/sqlite-autoconf-3070701 /opt/sqlite3 cd /opt/sqlite3 ./configure --prefix=/opt/sqlite3 make make install # Shared library will be installed in /usr/local/lib. # Make sure you it first in your LD_LIBRARY_PATH # Make sure to add it to your start-up files, like .bashrc export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH # Now it should work gem install sqlite3 bnewland commented Sep 17, 2013 ERROR: Error installing sqlite3: ERROR: Failed to build gem native extension. grupogenesys commented Dec 30, 2013 gem install sqlite3 -- --with-sqlite3-dir=/path/to/sqlite3/directory Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.