[Çözüldü] Ruby Qt Modülü Hata

Başlatan MehmetNuri, 01 Ekim 2013 - 15:56:37

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

MehmetNuri

Lubuntu 32 bit sistem üzerinde Ruby kurulu qt için gerekli modülleri yüklememe rağmen 
require 'Qt'

komutunu girmeme rağmen şu hatayı alıyorum:

irb

from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
   from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
   from (irb):1
   from /usr/bin/irb:12:in `<main>'


Konsol


/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- qt4 (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from -:1:in `<main>'


Gem olarak yüklemek istediğimde de şu hatayı alıyorum


gem install qtbindings
Building native extensions.  This could take a while...
ERROR:  Error installing qtbindings:
ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb

make
mkdir ext/build
mkdir bin/1.8
mkdir bin/1.9
mkdir bin/plugins
mkdir bin/plugins/accessible
mkdir bin/plugins/bearer
mkdir bin/plugins/codecs
mkdir bin/plugins/designer
mkdir bin/plugins/graphicssystems
mkdir bin/plugins/iconengines
mkdir bin/plugins/imageformats
mkdir bin/plugins/phonon_backend
mkdir bin/plugins/qmltooling
mkdir bin/plugins/sqldrivers
mkdir lib/1.8
mkdir lib/1.9
cd ext/build; rm -rf CMakeFiles
cd ext/build; rm -rf generator
cd ext/build; rm -rf smoke
cd ext/build; rm -rf ruby
cd ext/build; rm *
rm: `*' silinemedi: Böyle bir dosya ya da dizin yok
make: [clean] Hata 1 (yoksayıldı)
cd ext/build; \
cmake \
-G "Unix Makefiles" \
-Wno-dev \
-DENABLE_SMOKE=on \
-DENABLE_QTCORE_SMOKE=on \
-DENABLE_QTNETWORK_SMOKE=on \
-DENABLE_QTDBUS_SMOKE=on \
-DENABLE_QTGUI_SMOKE=on \
-DENABLE_QTSVG_SMOKE=on \
-DENABLE_QTSQL_SMOKE=on \
-DENABLE_QTXML_SMOKE=on \
-DENABLE_QTXMLPATTERNS_SMOKE=on \
-DENABLE_QTOPENGL_SMOKE=on \
-DENABLE_QTWEBKIT_SMOKE=on \
-DENABLE_QTSCRIPT_SMOKE=on \
-DENABLE_QTUITOOLS_SMOKE=on \
-DENABLE_QTTEST_SMOKE=on \
-DENABLE_QTMULTIMEDIA_SMOKE=on \
-DENABLE_QTRUBY=on \
-DENABLE_QTWEBKIT_RUBY=on \
-DENABLE_QTUITOOLS_RUBY=on \
-DENABLE_QTSCRIPT=on \
-DENABLE_QTTEST=on \
..
-- The C compiler identification is GNU 4.7.3
-- The CXX compiler identification is GNU 4.7.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Warning at /usr/share/cmake-2.8/Modules/FindQt4.cmake:615 (message):
  /usr/bin/qmake reported QT_INSTALL_LIBS as "/usr/lib/i386-linux-gnu" but
  QtCore could not be found there.  Qt is NOT installed correctly for the
  target build environment.
Call Stack (most recent call first):
  generator/CMakeLists.txt:3 (find_package)


CMake Error at /usr/share/cmake-2.8/Modules/FindQt4.cmake:619 (message):
  Could NOT find QtCore.  Check
  /var/lib/gems/1.9.1/gems/qtbindings-4.8.3.0/ext/build/CMakeFiles/CMakeError.log
  for more details.
Call Stack (most recent call first):
  generator/CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!
make: [build] Hata 1 (yoksayıldı)
cd ext/build; make
make[1]:`/var/lib/gems/1.9.1/gems/qtbindings-4.8.3.0/ext/build' dizinine giriliyor
make[1]: *** Hedef belirtilmemiş ve makefile dosyası bulunamadı. Durdu.
make[1]: `/var/lib/gems/1.9.1/gems/qtbindings-4.8.3.0/ext/build' dizininden çıkılıyor
make: *** [build] Hata 2


Gem files will remain installed in /var/lib/gems/1.9.1/gems/qtbindings-4.8.3.0 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/qtbindings-4.8.3.0/./gem_make.out

if

libqt4-dev  paketini kurduktan sonra deneyin bir de.

MehmetNuri

Sorun Ruby1.9x ile 1.8x in aynı anda kurulu olmasından kaynaklanıyormuş. 1.9x i kaldırınca sorun çözüldü.