Coder Social home page Coder Social logo

Comments (5)

zackexplosion avatar zackexplosion commented on May 20, 2024

之前有想過這問題,不過這東西基本上就是利用 User 把環境隔開,如果特別把他裝 Global 似乎就失去原本故意隔開的意義了。

這裡有一篇文章,你可以參考看看,主要就是把 RBENV_ROOT 給換掉的樣子
http://toschas.com/rbenv-setting-it-up-globally/

from ama.

aryung avatar aryung commented on May 20, 2024

用 root 裝 ruby...
root 裝的 ruby 每個 user 都可以用..
(記的是這樣..path 設好就好了..)..

from ama.

AskBear avatar AskBear commented on May 20, 2024

好像都是不錯的方法,不過我現在在想..
我會有這個問題是,我在架設新的環境時,執行sudo gem install .........
會有sudo: gem: command not found的錯誤
遇到這種情形一般會怎麼解決?

from ama.

chinghanho avatar chinghanho commented on May 20, 2024

如果是 RVM 的話:

Multi-User installations - For server administrators - For an installation usable by all users on the system - Please note that Single-User supersedes Multi-User. This also used to be called the System-Wide Install. Using this type of installation without knowledge how umask works is a big security risk.

For a Multi-User install you would execute the following:

\curl -sSL https://get.rvm.io | sudo bash -s stable

ref: https://rvm.io/rvm/install#installation-explained

sudo: gem: command not found 問題解法:

rvmsudo

ref: https://rvm.io/integration/sudo

from ama.

AskBear avatar AskBear commented on May 20, 2024

@chinghanho rvmsudo不錯用,謝嚕

from ama.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.