2 #Try to check if ZiK's dependencies are installed.
5 #################################
6 #Checking for global dependencies
7 #################################
8 echo -ne "Checking global dependencies:\n"
10 echo -ne "Checking env.."
12 (env
--version) &> /dev
/null ||
{
13 echo -ne "Error\nYou have to install env.\nhttp://www.gnu.org/software/coreutils/\n"
19 (test -f /usr
/bin
/env
) ||
{
20 echo -ne "Error\nenv is not installed in /usr/bin.\nTry a symbolic link."
30 echo -ne "Checking ruby.."
32 (ruby
--version) &> /dev
/null ||
{
33 echo -ne "Error\nRuby is not installed.\nhttp://www.ruby-lang.org/"
44 echo -ne "You should install the required dependencies and run this script once more\n\nERROR\n\n"
47 #############################
48 #Checking for ruby librairies
49 #############################
50 echo -ne "Checking ruby librairies:\n"
52 echo -ne "Checking gst0.10.."
54 (ruby
-e "require 'gst0.10'") ||
{
55 echo -ne "Error\nCannot find ruby-gstreamer0.10\nhttps://trac.luon.net/ruby-gstreamer0.10\n"
64 echo -ne "Checking gtk2.."
66 (ruby
-e "require 'gtk2'") ||
{
67 echo -ne "Error\nCannot find ruby-gtk2\nhttp://ruby-gnome2.sourceforge.jp/\n"
76 echo -ne "Checking taglib.."
78 (ruby
-e "require 'taglib'") ||
{
79 echo -ne "Error\nCannot find ruby-taglib\nhttp://www.hakubi.us/ruby-taglib/\n"
88 echo -ne "Checking gettext.."
90 (ruby
-e "require 'gettext'") ||
{
91 echo -ne "Error\nCannot find ruby-gettext-package\nhttp://rubyforge.org/projects/gettext\n"
100 if test "$EXIT" -eq 1
102 echo -ne "You should install the required dependencies.\n\nERROR\n\n"