Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 845  / 2 Years ago, fri, july 1, 2022, 10:55:44

So, I am trying to install Octopress. I need ruby 1.9.2. It looks like sudo apt-get install ruby wants to install ruby 1.8. I've read that RVM is a good way to go. But it seems rather excessive since I don't expect to use much else apart from the bare-bones needed for octopress. Do I have an alternative?



I use a TeXlive 2011 I installed myself, but I like being up to date there. For ruby, I literally only want it for Octopress, so I don't really want to have to deal with maintenance separately if I can avoid it. I'd prefer if sudo apt-get update would deal with it for me.



I know there are PPAs. But the thing is, there are loads of PPAs. How do I choose a trustworthy one?


More From » ruby

 Answers
4

note that I'm writing this on Ubuntu 12.04, however this should work on 11.10
Open a terminal, then install the ruby1.9.1-full, rake and git packages.



sudo apt-get install ruby1.9.1-full git rake



Install the bundler gem with



sudo gem install bundler



Then, download a copy of octopress.



git clone git://github.com/imathis/octopress.git octopress



cd into the octopress directory, and then run



bundle install



You might need to enter in your password so you can install the gems, as shown here:



$ bundle install


Fetching source index for http://rubygems.org/


Enter your password to install the bundled RubyGems to your system:



Then, just follow the instructions on the octopress docs and you should be set! Enjoy octopress!


Note that where you would normally type "rake", you'll need to type rake1.9.1 instead. I'll update this once I figure out a way around it.


[#40381] Sunday, July 3, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
raldership

Total Points: 222
Total Questions: 115
Total Answers: 124

Location: North Korea
Member since Fri, Nov 4, 2022
2 Years ago
;