ruby on rails - Error with sudo gem install sqlite3 and gem install sqlite3 -
error 'gem install sqlite3'
'error: while executing gem ... (gem::filepermissionerror) don't have write permissions /library/ruby/gems/2.0.0 directory.'
and error while 'sudo gem install sqlite3'
"1 warning generated. compiling exception.c compiling sqlite3.c compiling statement.c linking shared-object sqlite3/sqlite3_native.bundle clang: error: unknown argument: '-multiply_definedsuppress' [-wunused-command-line-argument-hard-error-in-future] clang: note: hard error (cannot downgraded warning) in future make: * [sqlite3_native.bundle] error 1
make failed, exit code 2
gem files remain installed in /library/ruby/gems/2.0.0/gems/sqlite3-1.3.9 inspection. results logged /library/ruby/gems/2.0.0/extensions/universal-darwin-13/2.0.0/sqlite3-1.3.9/gem_make.out"
i have installed rvm , used 'sudo' gem install sqlite3 , gem install sqlite3 . missing?
thx!
you should not use sudo rvm. however, may rvm default ruby system ruby.
to install new ruby version using rvm:
rvm install 2.1.1
after installed rvm list make sure installed:
rvm list
and list of installed rubies.
rvm rubies ruby-2.0.0-p247 [ x86_64 ] ruby-2.1.1 [ x86_64 ] # => - current # =* - current && default # * - default
note show list. need select 1 installed if not selected already:
rvm use 2.1.1
then, running rvm list again, should see this:
rvm rubies ruby-2.0.0-p247 [ x86_64 ] =* ruby-2.1.1 [ x86_64 ] # => - current # =* - current && default # * - default
note difference, , how have local 2.1.1 ruby selected. safe run
gem install sqlite3
Comments
Post a Comment