# Cannot install qtruby

**URL:** <https://rubytalk.org/t/cannot-install-qtruby/22248>\
**Category:** ruby-talk\
**Created:** [7 November 2005 18:22 UTC](https://rubytalk.org/t/cannot-install-qtruby/22248 "2005-11-07T18:22:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gunnar](https://avatars.discourse-cdn.com/v4/letter/g/ed655f/32.png) [@Gunnar](https://rubytalk.org/u/Gunnar)\
**Post date:** [7 November 2005 18:22 UTC](https://rubytalk.org/t/cannot-install-qtruby/22248/1 "2005-11-07T18:22:13Z")

</div>

I'm running OpenSUSE 10.0 on a AMD64. I tried using the Suse ruby rpm  
( (ruby-1.8.2-11) package but qtruby 1.0.9 will not install.  
Removing the ruby-1.8.2-11 installation and "configure/make/make install"  
ruby-1.8.3 instead. Verify install OK. Install gem OK. Now trying the  
qtruby-1.0.9 package I do the following steps;  
&nbsp;&nbsp;cd /home/gunnar/gunnar/Downloads/Ruby/qtruby-1.0.9  
&nbsp;&nbsp;make -f Makefile.cvs  
&nbsp;&nbsp;./configure --with-qt-libraries=/usr/lib/qt3/lib64  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(runs to the end and says its ok to run make)  
&nbsp;&nbsp;make  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(fails towards the end (I think) and I include the last couple of lines of  
output  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make[3]: Entering directory  
`/home/gunnar/gunnar/Downloads/Ruby/qtruby-1.0.9/qtruby/bin'  
if g++ -DHAVE\_CONFIG\_H -I. -I. -I../.. -I/usr/lib/qt3/include  
-I/usr/X11R6/include -I/usr/local/lib/ruby/1.8/x86\_64-linux  
-DQT\_THREAD\_SUPPORT -D\_REENTRANT -Wnon-virtual-dtor -Wno-long-long  
-Wundef -ansi -D\_XOPEN\_SOURCE=500 -D\_BSD\_SOURCE -Wcast-align -Wconversion  
-Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2  
-Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new  
-fno-common -MT qtrubyinit.o -MD -MP -MF ".deps/qtrubyinit.Tpo" -c -o  
qtrubyinit.o qtrubyinit.cpp; \  
then mv -f ".deps/qtrubyinit.Tpo" ".deps/qtrubyinit.Po"; else rm -f  
".deps/qtrubyinit.Tpo"; exit 1; fi  
/bin/sh ../../libtool --silent --tag=CXX --mode=link g++ -Wnon-virtual-dtor  
-Wno-long-long -Wundef -ansi -D\_XOPEN\_SOURCE=500 -D\_BSD\_SOURCE -Wcast-align  
-Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2  
-Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new  
-fno-common -o qtrubyinit -module -L/usr/X11R6/lib64  
-L/usr/lib/qt3/lib64 -version-info 0:0:0 -L../../smoke/qt/ -L/usr/local/lib  
qtrubyinit.o -lqt-mt -lz -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread  
-Wl,-R -Wl,/usr/local/lib -L/usr/local/lib  
-L. ../../smoke/qt/libsmokeqt.la ../../qtruby/rubylib/qtruby/libqtrubyinternal.la  
libtool: link: warning: `-version-info' is ignored for programs  
qtrubyinit.o: In function `main':  
qtrubyinit.cpp:(.text+0x15): undefined reference to `ruby\_init'  
qtrubyinit.cpp:(.text+0x21): undefined reference to `ruby\_script'  
qtrubyinit.cpp:(.text+0x2c): undefined reference to `ruby\_options'  
qtrubyinit.cpp:(.text+0x31): undefined reference to `ruby\_run'  
collect2: ld returned 1 exit status  
make[3]: \*\*\* [qtrubyinit] Error 1  
make[3]: Leaving directory  
`/home/gunnar/gunnar/Downloads/Ruby/qtruby-1.0.9/qtruby/bin'  
make[2]: \*\*\* [all-recursive] Error 1  
make[2]: Leaving directory  
`/home/gunnar/gunnar/Downloads/Ruby/qtruby-1.0.9/qtruby'  
make[1]: \*\*\* [all-recursive] Error 1  
make[1]: Leaving directory `/home/gunnar/gunnar/Downloads/Ruby/qtruby-1.0.9'  
make: \*\*\* [all] Error 2

To me it looks like I'm missing a header-file (qtrubyinit.h).  
All help appreciated  
Gunnar

---

<div class="post-metadata">

**Author:** ![Gunnar](https://avatars.discourse-cdn.com/v4/letter/g/ed655f/32.png) [@Gunnar](https://rubytalk.org/u/Gunnar)\
**Post date:** [8 November 2005 12:37 UTC](https://rubytalk.org/t/cannot-install-qtruby/22248/2 "2005-11-08T12:37:12Z")

</div>

Gunnar wrote:

> I'm running OpenSUSE 10.0 on a AMD64. I tried using the Suse ruby rpm  
> ( (ruby-1.8.2-11) package but qtruby 1.0.9 will not install.  
> Removing the ruby-1.8.2-11 installation and "configure/make/make install"  
> ruby-1.8.3 instead. Verify install OK. Install gem OK. Now trying the  
> qtruby-1.0.9 package I do the following steps;  
> &nbsp;&nbsp;cd /home/gunnar/gunnar/Downloads/Ruby/qtruby-1.0.9  
> &nbsp;&nbsp;make -f Makefile.cvs  
> &nbsp;&nbsp;./configure --with-qt-libraries=/usr/lib/qt3/lib64  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(runs to the end and says its ok to run make)  
> &nbsp;&nbsp;make  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(fails towards the end (I think) and I include the last couple of  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lines of  
> output  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make[3]: Entering directory  
> `/home/gunnar/gunnar/Downloads/Ruby/qtruby-1.0.9/qtruby/bin'  
> if g++ -DHAVE\_CONFIG\_H -I. -I. -I../.. -I/usr/lib/qt3/include  
> -I/usr/X11R6/include -I/usr/local/lib/ruby/1.8/x86\_64-linux  
> -DQT\_THREAD\_SUPPORT -D\_REENTRANT -Wnon-virtual-dtor -Wno-long-long  
> -Wundef -ansi -D\_XOPEN\_SOURCE=500 -D\_BSD\_SOURCE -Wcast-align -Wconversion  
> -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2  
> -Wformat-security -Wmissing-format-attribute -fno-exceptions  
> -fno-check-new  
> -fno-common -MT qtrubyinit.o -MD -MP -MF ".deps/qtrubyinit.Tpo" -c -o  
> qtrubyinit.o qtrubyinit.cpp; \  
> then mv -f ".deps/qtrubyinit.Tpo" ".deps/qtrubyinit.Po"; else rm -f  
> ".deps/qtrubyinit.Tpo"; exit 1; fi  
> /bin/sh ../../libtool --silent --tag=CXX --mode=link g++  
> -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D\_XOPEN\_SOURCE=500  
> -D\_BSD\_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W  
> -Wpointer-arith -Wwrite-strings -O2 -Wformat-security  
> -Wmissing-format-attribute -fno-exceptions -fno-check-new  
> -fno-common -o qtrubyinit -module -L/usr/X11R6/lib64  
> -L/usr/lib/qt3/lib64 -version-info 0:0:0 -L../../smoke/qt/  
> -L/usr/local/lib  
> qtrubyinit.o -lqt-mt -lz -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread  
> -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib  
> -L. ../../smoke/qt/libsmokeqt.la  
> ../../qtruby/rubylib/qtruby/libqtrubyinternal.la libtool: link: warning:  
> `-version-info' is ignored for programs qtrubyinit.o: In function `main':  
> qtrubyinit.cpp:(.text+0x15): undefined reference to `ruby\_init'  
> qtrubyinit.cpp:(.text+0x21): undefined reference to `ruby\_script'  
> qtrubyinit.cpp:(.text+0x2c): undefined reference to `ruby\_options'  
> qtrubyinit.cpp:(.text+0x31): undefined reference to `ruby\_run'  
> collect2: ld returned 1 exit status  
> make[3]: \*\*\* [qtrubyinit] Error 1  
> make[3]: Leaving directory  
> `/home/gunnar/gunnar/Downloads/Ruby/qtruby-1.0.9/qtruby/bin'  
> make[2]: \*\*\* [all-recursive] Error 1  
> make[2]: Leaving directory  
> `/home/gunnar/gunnar/Downloads/Ruby/qtruby-1.0.9/qtruby'  
> make[1]: \*\*\* [all-recursive] Error 1  
> make[1]: Leaving directory  
> `/home/gunnar/gunnar/Downloads/Ruby/qtruby-1.0.9' make: \*\*\* [all] Error 2
> 
> To me it looks like I'm missing a header-file (qtrubyinit.h).  
> All help appreciated  
> Gunnar

Solved!

---

<div class="post-metadata">

**Author:** ![William\_Ramirez](https://avatars.discourse-cdn.com/v4/letter/w/ce73a5/32.png) [@William\_Ramirez](https://rubytalk.org/u/William_Ramirez)\
**Post date:** [8 November 2005 17:49 UTC](https://rubytalk.org/t/cannot-install-qtruby/22248/3 "2005-11-08T17:49:06Z")

</div>

Out of curiosity, what did you do to solve this issue?

---

<div class="post-metadata">

**Author:** ![Gunnar](https://avatars.discourse-cdn.com/v4/letter/g/ed655f/32.png) [@Gunnar](https://rubytalk.org/u/Gunnar)\
**Post date:** [9 November 2005 10:12 UTC](https://rubytalk.org/t/cannot-install-qtruby/22248/4 "2005-11-09T10:12:12Z")

</div>

William Ramirez wrote:

> Out of curiosity, what did you do to solve this issue?

Well William  
After cleaning the machine of all ruby-installations, thus starting fresh I  
think the magic thing was in installing ruby. If you install ruby with  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;./configure --enable-shared  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make install  
then cd to the qtruby-directory  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make -f Makefile.cvs  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;./configure --with-qt-libraries=/usr/lib/qt3/lib64  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make install  
it all completes and work, too!

After that, I had to take the walk of shame.

Turns out that in Suse its all done already!!  
All that is needed is to install the ruby-rpm package together with the  
kdebindings3-ruby rpm and its all done.

Conclusion, at least I had two days on Google looking for answers and I even  
think I learned something.  
Gunnar
