[cmake-developers] Fwd: Bug#407481: cmake cannot find ruby library
Andy Cedilnik
andy.cedilnik at kitware.com
Thu Jan 18 22:12:03 EST 2007
---------- Forwarded message ----------
From: Federico Grau <donfede at casagrau.org>
Date: Jan 18, 2007 2:38 PM
Subject: Bug#407481: cmake cannot find ruby library
To: Debian Bug Tracking System <submit at bugs.debian.org>
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:
donfede at xwing:/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.
donfede at xwing:/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
--
-------------------------------------------
Andy Cedilnik
Kitware Inc.
http://www.kitware.com
Phone: +1 518 371 3971 x110
More information about the cmake-developers
mailing list