rvm

Cannot install RVM . Permission denied in /usr/local/rvm

こ雲淡風輕ζ 提交于 2019-11-30 01:51:29
Based on my previous thread : RVM installed by Ruby not working? where i had installed RVM using the root user, I then had to entirely remove the RVM install and now i am installing as a user. So i did : Create a new user by doing : useradd newuser Follow the instructions on the RVM website and execute the command : bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) Now, i get the error : mkdir: cannot create directory `/usr/local/rvm': Permission denied The new user i created does not have access to this directory. I manually tried creating the folder but the same error.

Permission denied error with RVM

杀马特。学长 韩版系。学妹 提交于 2019-11-30 01:51:18
问题 I have searched for this problem and couldn't find relevant similar questions. Please bear with me if this is repetitive. I have followed guides in RVM website to install RVM and I have installed rubies: syed@rails:~$ rvm list rvm rubies ruby-1.8.7-p302 [ i386 ] => ruby-1.9.2-p0 [ i386 ] As you can see I have made ruby-1.9.2 my default. This is my gem directory: syed@rails:~$ rvm gemdir /home/syed/.rvm/gems/ruby-1.9.2-p0 Now, I tried to install rails and I am thrown the following error: syed

Is a system-wide install of RVM a bad idea? [closed]

一个人想着一个人 提交于 2019-11-30 01:51:10
I'm confused about whether, on a server, you're supposed to install RVM as a regular user or do a system-wide installation, and, if the latter, how you're supposed to do things like bundle install without using sudo . Is there any definite set of guidelines on what you're supposed to do as far as RVM is concerned on a server running Rails under e.g. Passenger and Nginx? In this type of environment, not all Ruby processes run under the same user, so I think that's where things get unclear as far as RVM and bundler are concerned. How about just avoiding RVM all together on the server and just

Cannot compile ruby 1.9.3

人走茶凉 提交于 2019-11-30 01:46:51
When I run rvm install 1.9.3 --with-gcc=clang on Mac OSX Lion, ruby does not compile, and I get the following error in (.rvm/log/ruby-1.9.3-p374/make.log) [2013-01-29 16:31:05] make CC = clang LD = ld LDSHARED = clang -dynamic -bundle CFLAGS = -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -pipe XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT

如何快速正确的安装 Ruby, Rails 运行环境

ぐ巨炮叔叔 提交于 2019-11-30 01:26:16
系统需求 首先确定操作系统环境,不建议在 Windows 上面搞,所以你需要用: Mac OS X 任意 Linux 发行版本( Ubuntu , CentOS , Redhat, ArchLinux ...) 强烈新手使用 Ubuntu 省掉不必要的麻烦! 以下代码区域,带有 $ 打头的表示需要在控制台(终端)下面执行(不包括 $ 符号) 步骤0 - 安装系统需要的包 Mac 请安装 Xcode 开发工具,它将帮你安装好 Unix 环境需要的开发包 Ubuntu 请安装 $ sudo apt-get install -y build-essential openssl curl libcurl3-dev libreadline6 libreadline6-dev git zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev libxslt-dev autoconf automake libtool imagemagick libmagickwand-dev libpcre3-dev libsqlite3-dev 步骤1 - 安装 RVM RVM 是干什么的这里就不解释了,后面你将会慢慢搞明白。 $ curl -L get.rvm.io | bash -s stable 等待一段时间后就可以成功安装好 RVM。 给 ~/

Getting Ruby 1.8.7 installed on Mountain Lion (10.8)

无人久伴 提交于 2019-11-30 00:23:05
I'm having a lot of trouble getting Ruby 1.8.7 installed on my clean install of Mountain Lion. I've looked around on Stack Overflow and don't see anything that specifically addresses this issue and hope that someone might have encountered this before. I'm using the command line tools that can be downloaded with Xcode I haven't had any problems installing Ruby 1.9.3 via RVM and HomeBrew. When I try to install 1.8.7 I get the following message after it tries to compile: I first ran the command rvm install 1.8.7 This gave me this error The provided compiler '/usr/bin/gcc' is LLVM based, it is not

Fresh Installs of RVM and Ruby 2.1.1 - dyld library/pathing error

旧巷老猫 提交于 2019-11-30 00:20:14
I have been trying to install RVM and Ruby 2.1.1 onto my new Mac (OS 10.9.2), and everything seems to be going well until I try to install any version of Ruby. My input $ rvm reinstall 2.1 So far so good... ruby-2.1.1 - #removing rubies/ruby-2.1.1.. Searching for binary rubies, this might take some time. Found remote file https://rvm.io/binaries/osx/10.9/x86_64/ruby-2.1.1.tar.bz2 Checking requirements for osx. Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date. Requirements installation successful. ruby-2.1.1 - #configure ruby-2.1.1 - #download ruby-2.1.1 - #validate

RVM Command: source ~/.rvm/scripts/rvm

别来无恙 提交于 2019-11-30 00:06:32
I'm going through the rails by example tutorial series. I'm trying my best to find solutions prior to asking questions, so if I have missed anything I apologise. Every time I need to boot up RVM from the command line in terminal I need to punch a command so that RVM initialises: source ~/.rvm/scripts/rvm Is this normal? It seems that I cant get the RVM commands to work unless I punch in this code prior. Note I only have to enter the command once, not every time I need to enter an RVM command. Many thanks for your help. Put this in your ~/.profile or ~/.bashrc : # This loads RVM into a shell

Where does bundler store gems?

蓝咒 提交于 2019-11-29 23:29:46
I know that when using gem install , the gem will be stored under /home/username/.rvm/gems/, under which gemset the gem was installed. But if I use Bundler and specify the gem in the Gemfile, when I run bundle install, where will those gems be stored? And what if I already installed the gem using gem install , if I run bundle install, will it use the previous gem installed using gem install ? It depends. In the usual development setup they are installed where they would be when you install a gem "normally" (by running gem install foo ) and bundler won't reinstall gems that are already there.

install ruby 1.9.3 using rvm on ubuntu [duplicate]

点点圈 提交于 2019-11-29 23:10:11
Possible Duplicate: Ruby 1.9.2 and Rails 3 cannot open rails console I have already installed rvm and ruby 1.9.2, both working properly. Using rvm version 1.10.2. I previously installed the rvm packages readline/zlib, but now I'm having big troubles with readline now. I'm trying to install ruby 1.9.3 in rvm, but I always end up having readline not found. I tried to follow different solutions: rvm remove 1.9.3 rvm pkg install readline rvm install 1.9.3 --with-readline-dir=$rvm_path/usr/ \ --with-zlib-dir=$rvm_path/usr/ rvm use 1.9.3 rvmsudo gem install bundler bundle install (all gems installed