I have an old laptop which runs OSX 10.4 Tiger where I'd like to run git, rvm, Ruby 1.9.2 and Rails 3.1.
At the moment I have git installed (using MacPorts), but rvm seems to require a newer version of bash. This I realized because the install script complains and I googled the error. Anyhow, I installed a newer bash with MacPorts and that helped me with getting rvm installed. However, it of course didn't replace the default bash version on the system and all rvm scripts point to the system one. This simply results in failures when I try to run any rvm commands.
Before I totally mess up the system I'd like to know does anyone have git, rvm, Ruby 1.9.2 and Rails 3.1 installed on OSX 10.4 Tiger? How did you install each part and what versions do you use?
Thanks for all help!
I never got this to work, but I decided to upgrade to OSX Snow Leopard. After this it was very easy to get things set up. This is what I recommend.
Related
I have installed the rvm and ruby, and it's installed under /usr/local/rvm/rubies/ruby-1.9.3-p551/bin/ruby, but when I run the build via bamboo, senchacmd it's failing by saying
Did not find a system installed ruby runtime
27-Feb-2020 11:31:41 Please install ruby for this platform and ensure that
27-Feb-2020 11:31:41 a ruby command compatible with 1.8 or 1.9 is available
27-Feb-2020 11:31:41 on the system path.
I come to know that senchacmd fail to load the ruby while building, and I have tried a couple of solutions which dint help much.
https://www.enovision.net/sencha-cmd-ruby-not-found/
Search in your project file .sencha/package/build.properties and set in it path to your ruby
build.ruby.path=/usr/local/rvm/rubies/ruby-1.9.3-p551/bin/ruby
I used RailsInstaller (for Windows) to set up my environment for my Rails 3 app. I recently installed Pik so that I can update my ruby version as well.
According to the Pik docs https://github.com/vertiginous/pik/wiki/Usage, running 'pik install ruby 1.9.3' should install lastest version of ruby (or atleast the latest patch level for the version I am specifying).
However, this only installs ruby 1.9.3p429, but I understand that 1.9.3p545 is available.
Does anyone know how I can install 1.9.3p545?
Thanks!
Looks like you went with Pik from your previous question. I read on another thread that Pik only supports some of the 1.9.3 patch levels, but unfortunately nothing verifiable. The project has also been abandoned, no longer maintained, which might explain why that latest patch isn't supported...
Might just be my perspective, but seems like Windows is very poorly supported in the Rails/Ruby world? Our project requires Windows and Linux support which is causing us lots of grief. If you find a solid & reliable upgrade solution for Windows I would be very interested!
I have a rails application which is running well in local (OsX, WEBrick).
I've cloned the repo on a server (Ubuntu 10.04, Apache, Passenger), setted up passenger, but now when i try to connect to every page i get
Less::ParseError in Pages#home
Showing /var/www/MYAPP/app/views/layouts/application.html.erb where line #5 raised:
Cannot call method 'charAt' of undefined
(in /usr/lib/ruby/gems/1.8/gems/twitter-bootstrap-rails-2.0.2/vendor/assets/stylesheets/twitter/bootstrap.css.less)
the content of bootstrap.css.less is:
#import "twitter/bootstrap/bootstrap";
line 5 of application.html.erb is:
<%= stylesheet_link_tag "application" %>
ruby 1.8.7 on both machines
solved upgrading to ruby 1.9.3
Upgrading less worked for me on Ubuntu server 10.04
For system wide:
sudo npm -g install less
For user only:
npm install less
I believe this has something to do with the Ruby less gem not compiling it correctly. I had this problem locally on mac as well. Somewhere I saw a suggestion to use the node version of less (1.3) instead of the ruby gem, which you can install with npm install less.
However, most of the gems that hook up bootstrap to rails use the ruby gem version, so it seemed like a no go, esp on heroku etc. After a very frustrating couple of days on this I gave up and switch to the sass version of bootstrap: https://github.com/thomas-mcdonald/bootstrap-sass
It was simpler to integrate with rails, but unfortunate to be off the official version of bootstrap. I later went to integrate bootswatch but this doesn't play well with sass either. So I'm back to the plain old css version of bootswatch for now until a better way to handle this comes out :/
I had started the Rails app yesterday and got everything working.
Then today I decided to go with RVM, as I realized I might have need of it. So I uninstalled all gems, installed RVM and have now a working(?) RVM.
I reinstalled the gems and now my bundle exec rails server crashes
$ bundle exec rails server
[BUG] cross-thread violation on rb_gc()
(null)
Abort trap: 6
Crashreport
I have no idea whats wrong with my installation, as there is no reasonable error' which I could understand. :(
Edit: Gemfile
Try adding gcc-4.2 as your default C compiler to your bash profile:
export CC=/usr/bin/gcc-4.2
Then reinstall your rubies. You need XCode 4.1 to be installed before 4.2, otherwise you won't have gcc-4.2. The easiest way is to uninstall 4.2, and then install 4.1, then upgrade to 4.2.
Check out this solution: Error: cross-thread violation on rb_gc()
It looks like this might be an issue with a ruby version difference between your system and RVM. There are a few other articles out there on how to clean this up, like the one below, but I'm not sure which one will work for you:
http://blog.ubrio.us/nix/osx-rubygems-and-cross-thread-violations-in-rb_gc/
Great, the answer was to use ruby 1.9.3 instead of 1.9.2 ...
I'm getting the following error whenever trying to start a rails server.
/Users/craigspaeth/.rvm/gems/ruby-1.9.2-p290/gems/yard-dm-0.1.1/lib/yard-dm/property_handler.rb:5:in `<module:DM>': uninitialized constant YARD::Handlers (NameError)
I'm setting up a development environment that works flawlessly on my 10.6.8 snow leopard laptop, but is having troubles running on my new imac machine.
I'm using ruby 1.9.2-p290 on OSX Lion 10.7.2 in 64bit on a brand new iMac with Xcode 4.2. I've cleared out my gemset and re-installed ruby countless times. I've tried removing my OSX version of ruby and pointing everything to my rvm version. I've re-installed the yard gem from a bundle install and straight gem install. I've tried to install 1.9.3, and 1.9.2-head instead of just rvm install 1.9.2 (I get make errors).
Nothing.
Is there a known bug with the latest version of Lion and ruby 1.9.2 or Yard? I seem to be running in circles and can't find anything online to help.
If it helps, a related post was suggested installing 1.9.3 based on this bug report/fix. This worked for me and now yard works just fine in my Lion environment so give it another shot. I'm on rvm 1.10.0-pre.