ruby - ERROR: While executing gem ... (Gem::FilePermissionError) -


i have checked other similar answers , none mine, neither did of solutions work me.

gem environment , sudo gem environment give same result:

rubygems environment:   - rubygems version: 1.5.3   - ruby version: 1.8.7 (2011-12-28 patchlevel 357) [x86_64-linux]   - installation directory: /usr/local/lib/ruby/gems/1.8   - ruby executable: /usr/local/bin/ruby   - executable directory: /usr/local/bin   - rubygems platforms:     - ruby     - x86_64-linux   - gem paths:      - /usr/local/lib/ruby/gems/1.8      - /home/ava/.gem/ruby/1.8   - gem configuration:      - :update_sources => true      - :verbose => true      - :benchmark => false      - :backtrace => false      - :bulk_threshold => 1000   - remote sources:      - http://rubygems.org/ 

rvm -v : rvm 1.22.3

ruby -v : ruby 1.8.7

osx 10.8.4

echo $path /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/ava/.rvm/bin:/home/ava/bin

gem install <gem-name> gives

error:  while executing gem ... (gem::filepermissionerror)     don't have write permissions /usr/local/lib/ruby/gems/1.8 directory. 

whereas able install same via sudo. doing wrong?

update:

as per comments , post, ran following:

rvm implode , re installed stable version. rvm install 1.9.3 or other ruby installation fails with

error running '__rvm_make -j24', please read /home/ava/.rvm/log/log/1378418790_ruby-1.9.3-p194/make.log there has been error while running make. halting installation. 

make.log

    [2013-09-05 22:06:48] make current path: /home/ava/.rvm/src/ruby-1.9.3-p194 command(2): make -j24         cc = gcc         ld = ld         ldshared = gcc -shared         cflags = -o3 -ggdb -wextra -wno-unused-parameter -wno-parentheses -wno-long-long -wno-missing-field-initializers -wpointer-arith -wwrite-strings -wdeclaration-after-statement -werror-implicit-function-declaration  -fpic         xcflags = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -druby_export         cppflags =   -i. -i.ext/include/x86_64-linux -i./include -i.         dldflags = -wl,-soname,libruby.so.1.9         solibs = -lpthread -lrt -ldl -lcrypt -lm compiling main.c compiling dmydln.c compiling dmyencoding.c compiling version.c compiling miniprelude.c compiling array.c compiling bignum.c compiling class.c compiling compar.c compiling complex.c compiling dir.c compiling dln_find.c compiling enum.c compiling enumerator.c compiling error.c compiling eval.c compiling load.c compiling proc.c compiling file.c : : : in file included ossl.h:213,                  ossl_pkcs5.c:5: openssl_missing.h:71: error: conflicting types ‘hmac_ctx_copy’ /usr/local/include/openssl/hmac.h:102: error: previous declaration of ‘hmac_ctx_copy’ here openssl_missing.h:95: error: conflicting types ‘evp_cipher_ctx_copy’ /usr/local/include/openssl/evp.h:459: error: previous declaration of ‘evp_cipher_ctx_copy’ here make[2]: *** [ossl_pkcs5.o] error 1 in file included ossl.h:213,                  ossl_x509req.c:11: : : : 

if have installed rvm root user, must sudo install anything.

you can install rvm in user-mode regular user, in case stored in home directory , no sudo required.

if not committed particular install, type sudo rvm implode , start over.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -