Instructions to install a dirty buid of Weft-QDA on Mandriva 2006.0 (i586). (20061122ber) Installation instructions: -------------------------- Make sure the following packages are installed. E.g. use drakconf to install them from Mandriva mirrors for main and contrib: ruby-1.8.2-7.4.20060mdk.i586 ruby-sqlite-2.2.3-1mdv2007.0.i586 libsqlite0-2.8.17-5mdv2007.0.i586 ruby-RubyGems-0.8.11-1mdk Install ruby gem PageTemplates using the gem command line: gem install PageTemplate Successfully installed PageTemplate-2.2.3 Also the stdc++ library for gcc 3.3.6 is needed: libstdc++5-3.3.6-2mdk As root install the contents of this tarball into /opt/, e.g. cd /opt tar -xvmjf /home/bernhard/weft-qda-20060mdk-ber1.tar.bz2 If you place it somewhere else, you must change the path in the file run-weft-qda with an editor. Create a symbolic link from /usr/local/bin: ln -s /opt/weft-qda-20060mdk/run-weft-qda /usr/local/bin/weft-qda Now any user can just start it on the command line: weft-qda Known problems: --------------- Exporting does not work. It might be combination with PageTemplate-2.2.3. See my question on http://rubyforge.org/mailman/listinfo/weft-qda-users. Background or how and why was this dirty build produced? ----------------------------------- The first approach is: Installing the packages that come with Mandriva main and contrib. Install ruby's PageTemplates and build wxruby 0.6.0. Trying to run any wxruby application, e.g. ruby wxruby-0.6-src/samples/controls/controls.rb there is an error: [..]src/wxruby.so: undefined symbol: _ZTV12wxRbListCtrl - [..]/src/wxruby.so (LoadError) The error was reported on Fedora with gcc 4 as well, but the developers do not want to fix it. http://rubyforge.org/tracker/index.php?func=detail&aid=2153&group_id=35&atid=218 Thesis: There is a difference between older g++ compilers and version 4.0. Constructive proof: Fortunately Mandriva has a package for an old version of gcc as well. Install: gcc3.3-cpp-3.3.6-2mdk gcc3.3-c++-3.3.6-2mdk gcc3.3-3.3.6-2mdk Recompile wxruby with g++-3.3.6. This alone produces more errors, probably because the binaries are incompatible. So rebuild wxGTK-2.4.2 as well and then rebuild wxruby again. To do this additionally install: libgtk+1.2-devel-1.2.10-41mdk export CC=gcc-3.3.6 export CXX=g++-3.3.6 #set LD_LIBRARY_PATH and PATH accordingly before # building wxruby This build also has wx/html/htmlproc.h copied to the right place and the removal lines deactivated in extconf.rb.