WebFaction
Community site: login faq

I am triying excute a command with "gem". First i enter via ssh and put in my app directory the next command:

export PATH=$PWD/bin:$PATH
export GEM_HOME=$PWD/gems
export RUBYLIB=$PWD/lib

But when i put "gem install ..." i obtain the next message in the terminal:

ERROR:  While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /home/---/webapps/---/gems directory.

asked 22 Apr '16, 11:02

pantic14
1114
accept rate: 0%

edited 22 Apr '16, 11:03


That is the correct routine and should work if you are running those commands as the primary ssh user.

permanent link

answered 22 Apr '16, 11:58

aaront ♦♦
7664
accept rate: 27%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×81
×11

question asked: 22 Apr '16, 11:02

question was seen: 1,375 times

last updated: 22 Apr '16, 11:58

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM