ruby on rails - Error installing sqlite3 gem rvm opensuse premission denied -


new linux. installing ruby 2.0 , rails 4.0 through rvm. got working on laptop linux ubuntu having problem on work computer linux opensuse.

installed rvm, ruby , rails. created rails app when run bundle install this:

**errno::eacces: permission denied - /home/alf/.rvm/gems/ruby-2.0.0-p247/gems/sqlite3-1.3.8/api_changes.rdoc error occurred while installing sqlite3 (1.3.8), , bundler cannot continue. make sure `gem install sqlite3 -v '1.3.8'` succeeds before bundling.** 

also got when running bundle install:

**gem::installer::extensionbuilderror: error: failed build gem native extension.     /home/alf/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb  checking sqlite3.h... no sqlite3.h missing. try 'port install sqlite3 +universal' or 'yum install sqlite-devel' , check shared library search path (the location sqlite3 shared library located). *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers.  check mkmf.log file more details.  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}/lib64         --with-make-prog         --without-make-prog         --srcdir=.         --curdir         --ruby=/home/alf/.rvm/rubies/ruby-2.0.0-p247/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}/         --enable-local         --disable-local gem files remain installed in /home/alf/.bundler/tmp/10121/gems/sqlite3-1.3.8 inspection. results logged /home/alf/.bundler/tmp/10121/gems/sqlite3-1.3.8/ext/sqlite3/gem_make.out error occurred while installing sqlite3 (1.3.8), , bundler cannot continue. make sure `gem install sqlite3 -v '1.3.8'` succeeds before bundling.** 

i have sqlite3 installed, don#t know if installed locally somewhere. i'm new linux , opensuse. please me.

when run gem install sqlite3 -v '1.3.8' get:

**error:  while executing gem ... (errno::eacces)     permission denied - /home/alf/.rvm/gems/ruby-2.0.0-p247/gems/sqlite3-1.3.8/api_changes.rdoc** 

this drives me crazy, google cant find solution works.

i had same error on ubuntu, trying start new rails project. in case sqlite3.h missing, means libsqlite3-dev missing, guess (i'm new ubuntu , sqlite3). answer can found right here : installing sqlite headers.

~$ sudo apt-get install sqlite3 ~$ sudo apt-get install libsqlite3-dev ~$ bundle install 

after that, rails server worked me. had welcome aboard in localhost.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -