Os X Mavericks Install Rvm Warning

OS X Mavericks install rvm WARNING

When you install rvm its paths get added to ~/.bash_profile. RVM will warn you about this during installation as you noticed. You could run source ~/.profile each time you load the terminal, but that's a pain in the neck.

From the bash docs:

When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable.

What this means is that /.bash_profile is being run, and /.profile and /.bashrc are being ignored.

To resolve this just open .bash_profile and copy the rvm paths at the top and paste them at the top of your .bashrc file. Open a new terminal window and it should be working just fine.
You can either delete .bash_profile, if it's empty, or copy and paste the contents of ~/.profile into it if you choose to keep it.

Ruby on Rails Mac OSX Mavericks issues after RVM install

Your first set of errors will go away if your remove the hidden .rvmrc file in your project directory:

$ rm .rvmrc

The file only exists to set a Ruby version and gemset when you cd into the directory. You can either set the Ruby version and gemset manually, or create new .ruby-version and .ruby-gemset files which are compatible with RVM and other version managers. For details, see my answer Use rvmrc or ruby-version file to set a project gemset with RVM?.

You may need to remove and reinstall the Ruby version you are using. Here's how:

$ rvm remove ree-1.8.7-2012.02

Here's the documentation.

You probably don't need to uninstall RVM. But if you do, you can use

$ rvm implode

to remove all traces of RVM before re-installing (documented here). For more details on installing Ruby and multiple versions of Rails using RVM, see the article I wrote:

  • Install Ruby on Rails - Mac OS
    X

Lastly, since you mention that you are reading a tutorial that requires an old version of Rails, may I politely suggest you have a look at a book I've written for beginners that is up to date with the newest version of Rails (currently Rails 4.1 but I revise the book with every new release). I hope it is helpful:

  • Learn Ruby on
    Rails

I mention my article and my book because they provide additional information about setting your development environment for Rails using RVM and may answer further questions for you.

Error when installing Ruby 2.1.3 with RVM

I had the same problem

rvm reinstall 2.1.3 --disable-binary

worked for me
(based on Fresh Installs of RVM and Ruby 2.1.1 - dyld library/pathing error).

Can I upgrade to the current version of Ruby (2.2.3) on OS X v10.6.8?

I suggest that you use RVM to install Ruby.

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

You need to restart the terminal in order to run rvm:

rvm install 2.2
rvm use 2.2 --default

Ruby and gems reinstalling after update to OS X 10.9 (Mavericks)

I run in my terminal 'rvm get stable' to get stable rvm. Successful compleate, cool.
And try to reinstall ruby 1.9.3 without errors second time

Here I have a warning:


Warning: found user selected compiler '/usr/local/opt/apple-gcc42/bin/gcc-4.2',
this will suppress RVM auto detection mechanisms.

Now it install for me newest rubygems-2.1.10 (not 2.0.13).

New errors ^_^:


Error running '__rvm_with ruby-1.9.3-p448 /Users/bmalets/.rvm/scripts/gemsets pristine',
please read /Users/bmalets/.rvm/log/1383094697_ruby-1.9.3-p448/gemset.pristine-ruby-1.9.3-p448.log

I navigate ot my rails3/ruby1.9.3 project and run it. At first look it works fine.

So, It looks like successfully updated))))))

P.S I believe that update to new versions of OS_X will not be so horrible as update to iOS 7. New GUI in Calendar and Notes apps is like a shit. I'm so disappointed in apple now :'(.

Problems reinstalling ruby 1.9.3 on OSX 10.9.2 Mavericks (messy system?)

Just found someone with (probably) your same problem: Installing Ruby on Mac OS X 10.8.2

As you can see, you have the same error in running the rvm install:

regparse.c:582:15: error: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
return t->num_entries;

as the answer say ( https://stackoverflow.com/a/14663025/1833218 ), try here:

https://gist.github.com/zenkay/3237860

Error Installing Jekyll on Mac OS Mavericks (10.9.2)

Your problem appeared with Xcode 5.1. In order to avoid many problems related to MacOS' ruby version (this one and many others), you really should use RVM.

If you don't already have it, install Homebrew first: (it is not absolutely necessary, but allows us to install ruby and its dependencies without a looong compilation)

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Then, the following command will install RVM and the last version of Ruby:

\curl -L https://get.rvm.io | bash -s stable --ruby

Check everything is OK:

ruby --version

You can now install Jekyll:

gem install jekyll

Now, if you really don't want to use RVM, you can execute:

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install jekyll

But I bet further problems would come.



Related Topics



Leave a reply



Submit