WebFaction
Community site: login faq

I'm working through the initial rails tutorial setup: https://docs.webfaction.com/software/rails.html

Step 11 is not working:

ruby setup.rb install --prefix=$HOME/webapps/app

[<redacted>@web532 rubygems-3.0.0]$ ruby setup.rb install --prefix=$HOME/webapps/tembees ERROR: While executing gem ... (Errno::EACCES) Permission denied @ rb_sysopen - /usr/local/lib/ruby25/ruby/gems/2.5.0/specifications/default/bundler-1.17.2.gemspec [<redacted>@web532 rubygems-3.0.0]$

I have followed the export steps:

echo $PATH

/home/<redacted>/webapps/tembees/bin:/home/<redacted>/webapps/tembees/bin:/home/<redacted>/webapps/tembees/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/<redacted>/bin

echo $RUBYLIB

/home/<redacted>/webapps/tembees/lib

echo $GEM_HOME

/home/<redacted>/webapps/tembees/gems

asked 21 Dec '18, 05:10

ktemby
112
accept rate: 0%

edited 21 Dec '18, 06:37

If it is a new Rails app, created using our panel, it has the latest version of gems pre-installed:

[kclnto@web532 ~]$ cd webapps/tembees
[kclnto@web532 tembees]$ export PATH=$PWD/bin:$PATH
[kclnto@web532 tembees]$ export GEM_HOME=$PWD/gems
[kclnto@web532 tembees]$ export RUBYLIB=$PWD/lib
[kclnto@web532 tembees]$ which gem
~/webapps/tembees/bin/gem
[kclnto@web532 tembees]$ gem -v
3.0.0

Is there a specific reason you are trying to re-install the same version?

(21 Dec '18, 09:41) iliasr ♦♦

Thank you @iliasr - I'm just following the tutorial directly https://docs.webfaction.com/software/rails.html

If I don't need to do step 11, then I guess I should keep going?!

(21 Dec '18, 18:13) ktemby

For a new app you only really need to follow "Installing Ruby on Rails". The other parts are complimentary and you should only use them if you need to.

(21 Dec '18, 21:08) NickR ♦♦

Awesome, ok thank you so much @NickR and @iliasr

(22 Dec '18, 21:42) ktemby
Be the first one to answer this question!
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:

×108
×81
×64
×33

question asked: 21 Dec '18, 05:10

question was seen: 103 times

last updated: 23 Dec '18, 00:19

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