Languages/Ruby/Ruby-Qt/KDE Book/Installation/Installation on Linux: Difference between revisions
(Created page with '{{Box|Status Of Writing| noframe|left|40px{{Progress bar|10}}|100%}} In comparison to the installation process on [[Development/Languages/Ruby/Ruby-Qt/K...') |
m (Ochurlaud moved page Development/Languages/Ruby/Ruby-Qt/KDE Book/Installation/Installation on Linux to Languages/Ruby/Ruby-Qt/KDE Book/Installation/Installation on Linux) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{TutorialBrowser| | |||
series=Ruby| | |||
name=Ruby-Qt/KDE Book| | |||
pre=[[Development/Languages/Ruby/Ruby-Qt/KDE Book/Installation/Installation of Ruby|Installation of Ruby]]| | |||
next=[[Development/Languages/Ruby/Ruby-Qt/KDE Book/First Steps/Hello World|Hello World]] | |||
}} | |||
{{Box|Status Of Writing| | {{Box|Status Of Writing| | ||
[[Image:Action_pen.svg|noframe|left|40px]]{{Progress bar| | [[Image:Action_pen.svg|noframe|left|40px]]{{Progress bar|30}}|100%}} | ||
In comparison to the installation process on [[Development/Languages/Ruby/Ruby-Qt/KDE Book/Installation/Installation on Windows|Microsoft Windows]] or [[Development/Languages/Ruby/Ruby-Qt/KDE Book/Installation/Installation on Mac OS|Apple Mac OS]] you have to deal with the fact | In comparison to the installation process on [[Development/Languages/Ruby/Ruby-Qt/KDE Book/Installation/Installation on Windows|Microsoft Windows]] or [[Development/Languages/Ruby/Ruby-Qt/KDE Book/Installation/Installation on Mac OS|Apple Mac OS]] you have to deal with the fact that there are a lot of different Linux-based operating systems. So there are also different ways to set up your environment for kdebindings. | ||
While [[Development/Languages/Ruby/Ruby-Qt/KDE Book/Installation/Installation of Ruby|installing and testing your Ruby installation]] you should check if your [http://en.wikipedia.org/wiki/Linux_distribution Linux distribution] has the bindings preinstalled before starting to install something. | |||
= Test Installation = | = Test Bindings Installation = | ||
< | Maybe the Qt/KDE bindings are already installed. For a quick check, enter <tt>irb</tt> in a shell to start the interactive ruby shell. Try to load the bindings. | ||
> ruby | |||
<syntaxhighlight lang="ruby"> | |||
require "Qt4" | require "Qt4" | ||
=> true | => true | ||
require "korundum4" | require "korundum4" | ||
=> true | => true | ||
</ | </syntaxhighlight> | ||
You can load bindings for | You can load bindings for KDE 4 (korundum4) or only Qt 4 by a <tt>require</tt>. In the future you won't need to load Qt 4 first when using KDE 4, because by requiring KDE 4 everything needed is loaded automatically. | ||
If you got | If you got the same results so far you seem to have a working environment already. | ||
= Installation = | = Installation = | ||
== Installation of ruby == | There is always the option to install the bindings from source code, but it is recommended to use the existing binary packages. | ||
== Installation On Linux-based Systems == | |||
To [[Development/Languages/Ruby/Ruby-Qt/KDE Book/Installation/Installation of Ruby|install Ruby]] you should know how to use your package manager. | |||
Install the package "ruby-kde4" or something similar. Be aware though, that there might exist a package named "ruby-kde", which probably contains the old version of the bindings for KDE 3. Consider furthermore, that you will need a lot of KDE dependencies, if you are working on a GNOME desktop environment. | |||
== Installation On Mac OS == | |||
TODO | |||
== Installation On Windows == | |||
TODO |
Latest revision as of 17:39, 10 March 2016
Tutorial Series | Ruby |
Previous | Installation of Ruby |
What's Next | Hello World |
Further Reading | n/a |
30% completed (estimate)
In comparison to the installation process on Microsoft Windows or Apple Mac OS you have to deal with the fact that there are a lot of different Linux-based operating systems. So there are also different ways to set up your environment for kdebindings.
While installing and testing your Ruby installation you should check if your Linux distribution has the bindings preinstalled before starting to install something.
Test Bindings Installation
Maybe the Qt/KDE bindings are already installed. For a quick check, enter irb in a shell to start the interactive ruby shell. Try to load the bindings.
require "Qt4"
=> true
require "korundum4"
=> true
You can load bindings for KDE 4 (korundum4) or only Qt 4 by a require. In the future you won't need to load Qt 4 first when using KDE 4, because by requiring KDE 4 everything needed is loaded automatically.
If you got the same results so far you seem to have a working environment already.
Installation
There is always the option to install the bindings from source code, but it is recommended to use the existing binary packages.
Installation On Linux-based Systems
To install Ruby you should know how to use your package manager.
Install the package "ruby-kde4" or something similar. Be aware though, that there might exist a package named "ruby-kde", which probably contains the old version of the bindings for KDE 3. Consider furthermore, that you will need a lot of KDE dependencies, if you are working on a GNOME desktop environment.
Installation On Mac OS
TODO
Installation On Windows
TODO