openSUSE Lizards

Authors
Adam Jurkiewicz
Adrian Schröter (5)
Agustin Chavarria (1)
Akhil Laddha
Alex Barrios
Alex Minton
Alexander Naumov
Alexander Orlovskyy (3)
Alexey Eromenko
Alin M Elena (4)
Andrea Florio (14)
Andreas Jaeger (44)
Andreas Stieger (1)
Andreas van dem Helge
Andrej Semen
Andrew Wafaa (25)
Arvin Schnell (6)
Beineri2
Bernhard Wiedemann
Bharath Acharya
Bonnie Kurniawan
Brian G. Merrell
Bruno Friedmann
Carl Fletcher
Casual Programmer
Chang ChiaChin
Christoph Thiel
Christopher Hobbs (15)
Ciaran Farrell (2)
Claes Backstrom
Coly Li
Cristian Rodríguez
Daniel Bornkessel
David Bailey
David C. Rankin
Dean Hilkewich
Dinar Valeev (5)
Dirk Müller (1)
Dmitry Serpokryl (7)
Duncan Mac-Vicar
Enrique Herrera Noya
Eugene Pivnev
FabioMux (1)
Federico Lucifredi
Frank Lee
Gabriele Mohr
Gerrit Beine
Helman Rene Taleno Martinez
Helmut Schaa
Henne (6)
Herbert Graeber
Holgi (2)
Hubert Mantel (1)
Ioan Vancea
J. Daniel Schmidt (1)
Jaime Andrés Vélez Osorio
James Tremblay (7)
Jan Blunck (4)
Jan Loeser (1)
Jan Madsen (1)
Jan Nieuwenhuizen
Jan-Christoph Bornschlegel (3)
Jan-Simon Möller (19)
Javier Llorente (2)
Jigish Gohil (22)
Jiri Srain (1)
Jiří Suchomel (1)
Johan Kotze (5)
John Terpstra
Joop Boonen
José Oramas
Josef Reidinger (8)
Juergen Weigert (1)
Julio Vannini (7)
Justin Haygood
Kálmán Kéménczy
Kayo Hamid
Kevin Yeaux (10)
Klaas Freitag (21)
Klara Cihlarova
Klaus Kämpf
Klaus Singvogel
kl_eisbaer (10)
Lars Marowsky-Bree
Li Bin
Ludwig Nussel (6)
M. Edward (Ed) Borasky
M. Edwin Zakaria
M. Hill
Manuel Trujillo
Marcos David
Marcus Hüwe (8)
Marcus Meissner (1)
Marcus Moeller (1)
Marcus Schaefer (3)
Martin Lasarsch (8)
Martin Mohring (8)
Martin Schmiderer
Martin Schmidkunz
Masim "Vavai" Sugianto (20)
Matt Sealey
Mauro Parra-Miranda
Michael Andres (1)
Michael Löffler (3)
Michael Skiba
Michal Marek (3)
Michal Vyskocil (9)
Michal Zugec
Miguel Angel Barajas Hernandez
Mingxi Wu
mrdocs
Nikanth Karthikesan (2)
Oprea Lucian
Oswin Zulu
Peter Nixon
Peter Pöml (4)
Petr Mladek (32)
Petr Uzel (2)
Philipp Thomas
Pragnesh Radadiya
Raul Libório
Ravi Kumar
Ray Chen
Ray Wang (1)
Renato de Pontes Pereira
Ricardo Chung
Ricardo Varas Santana (6)
Richard Bos (5)
Robert Lihm
Roland Haidl
Roman Drahtmueller
Rossana Motta (1)
Rupert Horstkötter (10)
Sascha Manns (45)
Savin Alex V.
Sebastian Schöbinger (4)
Stanislav Visnovsky (7)
Stefan Haas (1)
Stefan Hundhammer (5)
Stefan Schubert (3)
Steffen Winterfeldt (4)
Stephan Kulow (10)
Suman Manjunath
Suresh Jayaraman (1)
Susanne Oberhauser (2)
Syamsul Qamar Ngabito
Thomas Göttlicher (4)
Thomas Jones
Thomas Schraitle (15)
Thruth Wang
Tuukka (11)
Ulrich Hecht
Vincenzo Barranco
Wilken Gottwalt
Will Stephenson (1)
Xin Wei Hu
Yuri Tsarev





 

What’s green, red, and awesome all over?

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.50 out of 5)
Loading ... Loading ...
Saturday, January 10th, 2009 by Christopher Hobbs Digg!

openSUSE/SLES and Ruby!

Considering that my blog no-longer exists and I’ve got a couple of topics floating around in my head, I thought I’d make use of my Lizards account and contribute something useful for once.

openSUSE has quickly become my favorite development platform and Ruby is my language of choice these days.  The two together make an excellent combination and it couldn’t be easier to get started.  In the next few posts, I’ll cover how I use the Ruby scripting language with SUSE on a daily basis.

That being said, lets start with installation…

What version should I use?

openSUSE ships with Ruby 1.8.7 by default, while SLES ships with version 1.8.4 (which I believe you need the OES2 disc to install).  1.8.7 is current, but some find that the inclusion of features from 1.9 are a little too new for stability.

For this series of articles, I’ll discuss installation of 1.8.6 patchlevel 114.  Why?  Well, it’s stable and it’s what I’ve been developing with for a while now.  Once I’m satisfied that 1.9 is stable, I’ll move that direction.  You can follow along with this article and install most any version of Ruby that you like and the examples should still work.

Installation via zypper

As I previously mentioned, openSUSE comes with version 1.8.7 and SLES ships with version 1.8.4.  If you use zypper to install Ruby, you’ll be using one of those versions.  Installation with zypper is relatively simple:

sudo zypper in ruby devel_ruby

Addtionally, you’ll probably want to install rubygems, but that will be discussed further down in the post.

Installation from source

Grab the latest source (or a stable version like 1.8.6) from http://ruby-lang.org.  Installation is much like any other source package.  Simply extract the tarball, change to the given directory, and execute ‘./configure’ followed by ‘make’ and ’sudo make install’.

Note that you’ll need the build essentials package installed, which can be found in YaST.

Extra goodies and useful ’stuff’

Additionally, I like to install RubyGems (found at http://rubygems.org/).  RubyGems is a package management tool, much like zypper.  It’s got very simple syntax and installation is straightforward as well.  Just download, unpack, change to the RubyGems directory and issue ’sudo ruby setup.rb’.  Sit back and watch the magic.

Alternatively, you could install it via zypper as per usual:

sudo zypper in rubygems

Documentation for RubyGems is availalbe on their site.  There are thousands of ‘gems’ available for Ruby, many of which are invaluable.

Wrapping Up

So there you have it, basic Ruby installation on openSUSE.  If you don’t already know the language, hop on over to http://ruby-lang.org and try a couple of their tutorials.  In the next few posts, I’ll cover how I use Ruby with openSUSE.  Stay tuned for topics on system automation, web development, and simple deployment with Ruby on openSUSE.


Comments

No comments yet.

Sorry, the comment form is closed at this time.