Package: cmake
Version: 2.4.5-1
Severity: normal

Hello,

cmake cannot find the ruby library .  I am trying to compile some
software (canorus , a music note editor) that uses cmake to create it's
Makefile.  cmake is failing, unable to find the ruby library; it appears
to be looking for the wrong library name.  Here is an example of the
error message it returns:


    [EMAIL PROTECTED]:/tmp/baz/canorus_svn_trunk$ cmake .
    -- Found Qt-Version 4.2.1
    SWIG found, using scripting extensions.
    Ruby Library and Development files found. Ruby extensions enabled.
    Python Library and Development files found. Python extensions enabled.
    CMake Error: This project requires some variables to be set,
    and cmake can not find them.
    Please set the following variables:
    RUBY_LIBRARY (ADVANCED)

    -- Configuring done

I first tried setting and exporting a RUBY_LIBRARY variable in my
envoronment, but that did not help.
    [EMAIL PROTECTED]:/tmp/baz/canorus_svn_trunk$ echo $RUBY_LIBRARY
    /usr/lib/libruby1.8.so

I was able to correct the problem by editing
"/usr/share/cmake-2.4/Modules/FindRuby.cmake" from the cmake package and
adding "ruby1.8" to the list of libraries to search for (that appears to
be how debian packages the ruby library).

--- /usr/share/cmake-2.4/Modules/FindRuby.cmake_org     2007-01-18
14:30:30.000000000 -0500
+++ /usr/share/cmake-2.4/Modules/FindRuby.cmake 2007-01-18
14:36:05.000000000 -0500
@@ -46,7 +46,7 @@
   /usr/lib/ruby/1.8/i586-linux-gnu/ )

 FIND_LIBRARY(RUBY_LIBRARY
-  NAMES ruby
+  NAMES ruby ruby1.8
   PATHS ${RUBY_POSSIBLE_LIB_PATH}
   )



thanks,
donfede

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.2-xwing-1
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages cmake depends on:
ii  libc6                        2.3.6.ds1-6 GNU C Library: Shared libraries
ii  libgcc1                      1:4.1.1-13  GCC support library
ii  libncurses5                  5.5-3       Shared libraries for terminal hand
ii  libstdc++6                   4.1.1-13    The GNU Standard C++ Library v3

cmake recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to