Closed JohnAtl closed 10 years ago
it should have worked, sounds like a bug in rvm
, anyway this will be easier with RVM 2 (Fundriser), current version was based on RVM 1. and was not flexible enough.
It seems rails was not installed either, as 'rails -v' advises me to install it with gem. Is this correct, or is there an RI/rvm specific command that I should use now?
start with basics of rvm:
echo $rvm_path
rvm list
rvm use ruby
gem list
I installed ruby 1.9.3 using:
rvm install 1.9.3
Installed rails using:
sudo gem install rails
(version 4, not sure if that's a problem) SQLite3 runs at the prompt. Hopefully, I'm in business. Thanks.
sudo
this changes environment and basically disables rvmThat's what I was thinking too, but don't know of another way around these issues. Should I run the uninstaller? I'm open to suggestions.
start with answering my questions:
echo $rvm_path
rvm list
rvm use ruby
gem list
I didn't realize those were questions :-) I uninstalled RailsInstaller, uninstalled Homebrew, uninstalled MacPorts, rebooted, reinstalled RailsInstaller, and it looks like I'm good to go. I haven't twiddled the bits in a while, which package manager do you recommend (MacPorts, Homebrew, etc.)?
The output you requested is below. Thanks for the help.
john-johnsons-macbook-pro:~ john$ echo $rvm_path
/usr/local/rvm
john-johnsons-macbook-pro:~ john$ rvm list
rvm rubies
=* ruby-1.9.3-p392 [ x86_64 ]
# => - current
# =* - current && default
# * - default
john-johnsons-macbook-pro:~ john$ rvm use ruby
Using /usr/local/rvm/gems/ruby-1.9.3-p392
john-johnsons-macbook-pro:~ john$ gem list
*** LOCAL GEMS ***
actionmailer (3.2.12)
actionpack (3.2.12)
activemodel (3.2.12)
activerecord (3.2.12)
activeresource (3.2.12)
activesupport (3.2.12)
appscrolls (0.9.0)
arel (3.0.2)
bigdecimal (1.1.0)
builder (3.0.4)
bundler (1.2.4)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.4.0)
erubis (2.7.0)
execjs (1.4.0)
hike (1.2.1)
i18n (0.6.1)
io-console (0.3)
journey (1.0.4)
jquery-rails (2.2.1)
json (1.7.7, 1.5.5)
mail (2.4.4)
mime-types (1.21)
minitest (2.5.1)
multi_json (1.6.1)
polyglot (0.3.3)
rack (1.4.5)
rack-cache (1.2)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.12)
railties (3.2.12)
rake (10.0.3, 0.9.2.2)
rdoc (3.12.1, 3.9.5)
rubygems-bundler (1.1.0)
rvm (1.11.3.6)
sass (3.2.6)
sass-rails (3.2.6)
sprockets (2.2.2)
sqlite3 (1.3.7)
thor (0.17.0)
tilt (1.3.3)
treetop (1.4.12)
tzinfo (0.3.35)
uglifier (1.3.0)
RailsInstaller comes with SM Framework installed, it is good for managing software, if you need to run multiple versions bellow 1.9.3, then I would advise Homebrew (as it supports installation of two openssl versions at once and ruby can be linked to each of them separatelly), otherwise you can use Macports the asam as SM Framework and Homebrew.
Thanks for the suggestion.
In working through a Rails tutorial, the author suggested "rvm get stable". When I ran it, I received the following error messages. (I just rebooted to ensure the environment was being set.)
rvm get stable
Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-1.9.3-p392/bin' is not at first place,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
to fix temporarily in this shell session run: 'rvm use ruby-1.9.3-p392'.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0 0 276 0 --:--:-- --:--:-- --:--:-- 336
100 19605 100 19605 0 0 6454 0 0:00:03 0:00:03 --:--:-- 22380
Downloading RVM branch stable
Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz to rvm-stable.tgz.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 124 100 124 0 0 182 0 --:--:-- --:--:-- --:--:-- 427
100 1086k 100 1086k 0 0 295k 0 0:00:03 0:00:03 --:--:-- 436k
Upgrading the RVM installation in /usr/local/rvm/
chmod: Unable to change file mode on /usr/local/rvm/scripts/aliases: Operation not permitted
chmod: Unable to change file mode on /usr/local/rvm/scripts/irbrc: Operation not permitted
chmod: Unable to change file mode on /usr/local/rvm/scripts/irbrc.rb: Operation not permitted
Failed to set permissions of: /usr/local/rvm/scripts/aliases /usr/local/rvm/scripts/irbrc /usr/local/rvm/scripts/irbrc.rb, prefix the command with 'rvmsudo' to fix it, if the situation persist report a bug.
Can not automatically remove lines with 'rvm_autolibs_flag=' from '/etc/rvmrc', please clean it manually.
Found 116 directories with mode different then '775', use `--debug` to see the list, prefix the command with 'rvmsudo' to fix it, if the situation persist report a bug.
Upgrade of RVM in /usr/local/rvm/ is complete.
I tried rvm get stable --auto-dotfiles, but it did not fix the PATH warning.
I used the --debug flag to list the 116 offending directories, here are the first few:
john-johnsons-macbook-pro:~ john$ pbpaste | xargs ls -lhd
drwxrwxr-x 3 john rvm 102B Oct 18 16:47 /usr/local/rvm/config/solaris
drwxrwxr-x 4 john rvm 136B Oct 18 16:47 /usr/local/rvm/help/rvmrc
drwxrwxr-x 2 john rvm 68B Oct 18 16:16 /usr/local/rvm/log/ruby-1.9.3-p392
drwxrwxr-x 3 john rvm 102B Oct 18 16:47 /usr/local/rvm/patches/libxslt-1.1.26
drwxrwxr-x 3 john rvm 102B Oct 18 16:47 /usr/local/rvm/patches/ruby/1.9.3/p429
drwxrwxr-x 7 john rvm 238B Oct 18 16:47 /usr/local/rvm/patches/ruby/2.0.0
drwxrwxr-x 3 john rvm 102B Oct 18 16:59 /usr/local/rvm/patchsets/ruby/1.8.7/p371
drwxrwxr-x 5 john rvm 170B Oct 18 16:59 /usr/local/rvm/patchsets/ruby/1.9.3/p429
drwxrwxr-x 3 john rvm 102B Oct 18 16:59 /usr/local/rvm/patchsets/ruby/1.9.3/p448
drwxrwxr-x 3 john rvm 102B Oct 18 16:47 /usr/local/rvm/patchsets/ruby/2.0.0
drwxrwxr-x 4 john rvm 136B Oct 18 16:59 /usr/local/rvm/patchsets/ruby/2.0.0/p247
drwxrwxr-x 3 john rvm 102B Oct 18 16:59 /usr/local/rvm/scripts/extras/completion.zsh
Thought you might want this too:
john-johnsons-macbook-pro:~ john$ ls -lhd /usr/local/rvm/scripts/aliases /usr/local/rvm/scripts/irbrc /usr/local/rvm/scripts/irbrc.rb
-rw-rw-r-- 1 root rvm 97B Oct 18 16:59 /usr/local/rvm/scripts/aliases
-rw-rw-r-- 1 root rvm 406B Oct 18 16:59 /usr/local/rvm/scripts/irbrc
-rw-rw-r-- 1 root rvm 2.5K Oct 18 16:59 /usr/local/rvm/scripts/irbrc.rb
john-johnsons-macbook-pro:~ john$ groups
staff com.apple.sharepoint.group.1 rvm com.apple.access_screensharing com.apple.sharepoint.group.3 everyone _appstore localaccounts _appserverusr admin _appserveradm _lpadmin _lpoperator _developer com.apple.sharepoint.group.2
Thanks for your help.
you might need to restart computer to get to the rvm
group for real, OSX can report you are in the group and still not give it to you in the current session
Restarted, but have the same issues, except for the PATH, which I fixed.
please run:
rvm fix-permissions
and if it's still persists show me the current output with problems
Still have permissions problems. Here's the output. Thanks.
john-johnsons-macbook-pro:~ john$ rvm fix-permissions
Fixing user/group for ':rvm' - this might take few long minutes...
john password required for 'chown -R :rvm /usr/local/rvm':
Fixing rights with 'g+w' - this might take few long minutes...
Finished fixing.
john-johnsons-macbook-pro:~ john$ rvm get stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0 0 247 0 --:--:-- --:--:-- --:--:-- 339
100 19632 100 19632 0 0 14560 0 0:00:01 0:00:01 --:--:-- 14560
Downloading RVM branch stable
Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz to rvm-stable.tgz.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 124 100 124 0 0 580 0 --:--:-- --:--:-- --:--:-- 810
100 1083k 100 1083k 0 0 517k 0 0:00:02 0:00:02 --:--:-- 834k
Upgrading the RVM installation in /usr/local/rvm/
chmod: Unable to change file mode on /usr/local/rvm/scripts/irbrc: Operation not permitted
chmod: Unable to change file mode on /usr/local/rvm/scripts/irbrc.rb: Operation not permitted
Failed to set permissions of: /usr/local/rvm/scripts/irbrc /usr/local/rvm/scripts/irbrc.rb, prefix the command with 'rvmsudo' to fix it, if the situation persist report a bug.
/usr/local/rvm/src/rvm/scripts/functions/installer: line 1259: /etc/rvmrc.backup: Permission denied
Can not automatically remove lines with 'rvm_autolibs_flag=' from '/etc/rvmrc', please clean it manually.
Found 563 directories with mode different then '775', use `--debug` to see the list, prefix the command with 'rvmsudo' to fix it, if the situation persist report a bug.
Upgrade of RVM in /usr/local/rvm/ is complete.
# John Johnson,
#
# Thank you for using RVM!
# We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.
In case of problems: http://rvm.io/help
Help RVM 2.0: https://www.bountysource.com/fundraisers/489-rvm-2-0
Upgrade Notes:
* No new notes to display.
RVM reloaded!
for now use rvmsudo rvm get stable ; rvm reload
to continue, the permissions problem will be fixed in https://github.com/wayneeseguin/rvm/issues/2300
Thanks for the help and sticking with me!
Regards, John
rvm install rbx,jruby Could not detect ruby version/name for installation, please be more specific.
I had hope RI would take the pain out of installing.
How do I resolve this?