rvm

How do I get Sublime Text 2 to work with Ruby on Rails?

╄→尐↘猪︶ㄣ 提交于 2019-12-22 15:26:54
问题 I'm new to Ruby on Rails. Here’s what I’ve done so far: I’ve installed XCode, Homebrew, RVM, Ruby and Rails. Now how do I get Sublime Text 2 to work with Ruby on Rails? 回答1: First thing you should do is install Package Control if you haven't already. This will make downloading packages and plugins way easier. Then you can look at some of the Rails specific packages to make your life easier when coding with Sublime Text. Sublime Text has native support for syntax coloring in .rb files, so you

How do I get Sublime Text 2 to work with Ruby on Rails?

心已入冬 提交于 2019-12-22 15:24:20
问题 I'm new to Ruby on Rails. Here’s what I’ve done so far: I’ve installed XCode, Homebrew, RVM, Ruby and Rails. Now how do I get Sublime Text 2 to work with Ruby on Rails? 回答1: First thing you should do is install Package Control if you haven't already. This will make downloading packages and plugins way easier. Then you can look at some of the Rails specific packages to make your life easier when coding with Sublime Text. Sublime Text has native support for syntax coloring in .rb files, so you

how install rvm on RHL7 using centos repo

丶灬走出姿态 提交于 2019-12-22 13:46:35
问题 How to install rvm(ruby) on RHL7 using centos repo. I know if we are using centos repository we should be using centos OS and not RedHat, but we have a proprietary software that require Redhat. when I try to install ruby 1.93 using rvm I got this: rvm install 1.9.3 Searching for binary rubies, this might take some time. No binary rubies available for: redhat/6/x86_64/ruby-1.9.3-p551. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking

Clean slate install Rails

情到浓时终转凉″ 提交于 2019-12-22 11:34:17
问题 Father, I've done terrible things. I've messed my system up completely. It all started back when I tried to make Rails to use the same MySQL that my MAMP PRO uses. ( I still haven't managed them to work together).It ended badly, and just keeps getting worse. The latest error message: ➜ ~ rails /Users/hb/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find railties (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5

Can't start service with sudo since root user has no access to Ruby

≡放荡痞女 提交于 2019-12-22 09:54:31
问题 tl;dr Trying to run a service which needs ruby to run. But, Ruby is installed with RVM where the root user can't seem to access it, producting the error /usr/bin/env: ruby: No such file or directory . rvmsudo doesn't work. Background I have an init.d script which is supposed to start a unicorn server. I keep the script in the config directory of my rails application and symlink to it from /etc/init.d/busables_unicorn . $ ls -l /etc/init.d/busables_unicorn -> lrwxrwxrwx 1 root root 62 2012-01

ERROR: While executing gem … (Gem::FilePermissionError)

纵饮孤独 提交于 2019-12-22 09:48:36
问题 $ gem install passenger Fetching: passenger-4.0.5.gem (100%) ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Users/snowcrash/.rvm/gems/ruby-2.0.0-p195 directory. $ ls -ld /Users/snowcrash/.rvm/gems/ruby-2.0.0-p195 drwxrwsr-x 8 root rvm 272 21 May 16:07 /Users/snowcrash/.rvm/gems/ruby-2.0.0-p195 Clearly my version of ruby is owned by root/rvm. I'm not happy with this SO answer which suggests making .gem/specs world-writable: Permission denied

rubygems 1.3.7 TypeError (in 'merge') during installation on Ubuntu

跟風遠走 提交于 2019-12-22 08:03:40
问题 While installing ruby-1.9.2-p0 with rvm on an updated Ubunutu x86_64, I keep getting an error in `merge': can't convert String into Hash (TypeError). All apt packages in rvm notes and those found in the rubygems manual have been installed. I believe the error is resulting when RVM is attempting to install rubygems. I also get the same error installing ruby gems with the system ruby. I think this is a dependency problem. I have compiled on Ubuntu before on both i386 and x86_64 before and never

Can I use RVM to maintain a single version of Ruby for all users?

白昼怎懂夜的黑 提交于 2019-12-22 06:51:03
问题 I love RVM. I realize that the main use case for it is letting different users switch between different versions of Ruby. But let's say I'm deploying a Rails app to a server and I just want a single version of Ruby running. In particular, I want 1.9.2, which is a breeze to install with RVM but a pain without it. Is there a way that I can say "I want this to be the canonical Ruby installation for all users" (along with all of its gems) without having to create a bunch of symlinks by hand and

gcc not working - Xcode 3.2.6 - Snow Leopard

爱⌒轻易说出口 提交于 2019-12-22 05:18:13
问题 I'm a bit of a novice at messing around with my environment and I seem to have rather broken it. Many thanks in advance for any assistance you can offer. The main symptom is that when trying to run rvm install 1.9.3 I get the following trace: Installing Ruby from source to: /Users/duncanstuart/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)... ruby-1.9.3-p0 - #fetching ruby-1.9.3-p0 - #extracted to /Users/duncanstuart/.rvm/src/ruby-1.9.3-p0 (already extracted)

LoadError by requiring a gem with :path or :git

╄→гoц情女王★ 提交于 2019-12-22 04:31:50
问题 I've got a really strange problem here. I forked a gem on github to do some modifications, cloned my repo on my local machine, made the changes and changed the Gemfile of another project to fetch the gem from my local repository for testing it. Unfortunately I get a LoadError while requiring that gem in my ruby script. rvm current => ruby-1.9.3-p448 ruby --version => ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux] bundle --version => Bundler version 1.3.5 Content of my Gemfile: