Difference between revisions of "Development/Languages/Ruby/Ruby-Qt/KDE Book/Installation/Installation of Ruby"

Jump to: navigation, search
m (add installation: general, openSUSE, ubuntu)
 
m (Text replace - "</code>" to "</syntaxhighlight>")
 
(One intermediate revision by one user not shown)
Line 15: Line 15:
 
Start a shell and try to get the version of your ruby installation. In the case of a working ruby installation you get something like this.
 
Start a shell and try to get the version of your ruby installation. In the case of a working ruby installation you get something like this.
  
<code bash>
+
<syntaxhighlight lang="bash">
 
> ruby -v
 
> ruby -v
 
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
 
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
</code>
+
</syntaxhighlight>
  
 
In any other case you can proceed to install ruby and check afterwards the installation again.
 
In any other case you can proceed to install ruby and check afterwards the installation again.

Latest revision as of 21:50, 29 June 2011

Ruby-Qt/KDE Book
Tutorial Series   Ruby
Previous   None
What's Next   Installation on Linux, Installation on Mac OS or Installation on Windows
Further Reading   n/a
100%
 
noframe

10% completed (estimate)

  

Status Of Writing


Before you can use the Qt/KDE bindings with Ruby, you have to install Ruby itself. On the most linux-based systems, ruby should be installed already. So just check before installing it, if it is installed already. On Windows and Mac OS it isn't most likely preinstalled.

Contents

[edit] Test Installation Of Ruby

Start a shell and try to get the version of your ruby installation. In the case of a working ruby installation you get something like this.

> ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]

In any other case you can proceed to install ruby and check afterwards the installation again.

[edit] Installation Of Ruby

General information are also provided by the official ruby site on their download page.

[edit] Installation On Linux-based Systems

The most linux packages delivers already configured binary packages of ruby that can be installed by the package manager of your distribution. This way is recommended. The installation from source code is possible, but not preferred, because the automatic installation of the bindings requires the binary package of ruby. The installation of ruby by source code should be not complicated, but installing the bindings manually requires advanced knowledge in different development tools.

Generic Installation
Start you favorite distribution specific package manager and add a the package "ruby". There may be some additional packages like "ruby-devel", "ruby-doc", etc. Maybe you want to install them to.
Installation on openSUSE
Start YaST, open the module called something like "add/delete Software", change to Installation Patterns and activate "Ruby Development". Install the chosen packages.
Installation on Ubuntu
Follow the specific ubuntu help to install the ruby package.

[edit] Installation On Mac OS

TODO

[edit] Installation On Windows

TODO


This page was last modified on 29 June 2011, at 21:50. This page has been accessed 2,356 times. Content is available under Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal