Cannot install qtruby

G

Gunnar

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;
cd /home/gunnar/gunnar/Downloads/Ruby/qtruby-1.0.9
make -f Makefile.cvs
./configure --with-qt-libraries=/usr/lib/qt3/lib64
(runs to the end and says its ok to run make)
make
(fails towards the end (I think) and I include the last couple of lines of
output
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
 
G

Gunnar

Gunnar said:
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;
cd /home/gunnar/gunnar/Downloads/Ruby/qtruby-1.0.9
make -f Makefile.cvs
./configure --with-qt-libraries=/usr/lib/qt3/lib64
(runs to the end and says its ok to run make)
make
(fails towards the end (I think) and I include the last couple of
lines of
output
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!
 
W

William Ramirez

------=_Part_62511_31325351.1131472143344
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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

------=_Part_62511_31325351.1131472143344--
 
G

Gunnar

William said:
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
./configure --enable-shared
make
make install
then cd to the qtruby-directory
make -f Makefile.cvs
./configure --with-qt-libraries=/usr/lib/qt3/lib64
make
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top