tora on Fedora 16 for mysql and Oracle.

Sometime back I had posted a article on Tora on Fedora. But that was a while back and things have progressed and we already have Fedora 16 (aka Verne).

So, awhile back I installed Tora on my Fedora 16 and here are the steps to do so:

First get the Tora sources from sourceforge.net . Download the source tar file and extract the same.

Install the delel for some of the packages that you will need:

sudo yum install qt-devel postgresql-devel qscintilla-devel

Also download and install the instantclient and the relevant devel package. You can download the same from the oracle site.

Now go to the directory where you extracted tora.

cd src
vi Makefile.am

Search for BUILT_SOURCES in that file and add moc_toawr.cpp in that section. This is what was required for tora version 2.3.1, not sure if you would need that…But there would be no harm in adding that anyways 🙂

After this the step is straightforward:

./configure
make
sudo make install

And you are done…..

Enhanced by Zemanta

12 thoughts on “tora on Fedora 16 for mysql and Oracle.”

  1. Hi Amit,

    I get the same error before and after editing Makefile.am

    tora-toawr.o: In function `toAWR’:
    /home/escor/Descargas/tora-2.1.3/src/toawr.cpp:265: undefined reference to `vtable for toAWR’
    /home/escor/Descargas/tora-2.1.3/src/toawr.cpp:265: undefined reference to `vtable for toAWR’
    /home/escor/Descargas/tora-2.1.3/src/toawr.cpp:265: undefined reference to `vtable for toAWR’
    /home/escor/Descargas/tora-2.1.3/src/toawr.cpp:265: undefined reference to `vtable for toAWR’
    tora-toawr.o: In function `~toAWR’:
    /home/escor/Descargas/tora-2.1.3/src/toawr.cpp:381: undefined reference to `vtable for toAWR’
    tora-toawr.o:/home/escor/Descargas/tora-2.1.3/src/toawr.cpp:381: more undefined references to `vtable for toAWR’ follow
    tora-toawr.o: In function `toAWR::tr(char const*, char const*)’:
    /home/escor/Descargas/tora-2.1.3/src/toawr.h:57: undefined reference to `toAWR::staticMetaObject’
    collect2: ld returned 1 exit status
    make[3]: *** [tora] Error 1
    make[3]: se sale del directorio `/home/escor/Descargas/tora-2.1.3/src’
    make[2]: *** [all] Error 2
    make[2]: se sale del directorio `/home/escor/Descargas/tora-2.1.3/src’
    make[1]: *** [all-recursive] Error 1
    make[1]: se sale del directorio `/home/escor/Descargas/tora-2.1.3′
    make: *** [all] Error 2

    The moc_toawr.cpp is missing:

    >ls src/ | grep moc_toa
    moc_toabout.cpp
    moc_toalert.cpp
    moc_toanalyze.cpp
    tora-moc_toabout.o
    tora-moc_toalert.o
    tora-moc_toanalyze.o

    This is my Makefile.am:

    BUILT_SOURCES =
            moc_toabout.cpp
            moc_toalert.cpp
            moc_toanalyze.cpp
            moc_toawr.cpp
            moc_tobackup.cpp

    Thank you so much.

    1.  Actaully there will be no moc_toawr.cpp file in the tar file. However when you run make, the file moc_toawr.cxx should get created. This file gets created with command moc-qt4. Can you check that this command is present in your system. Currently I do not have access to the system where I had compiled tora, will check that and get back to you with more details.

      1. I got it!!!

        The hidden step in almost all webs is executing ./autogen.sh after the Makefile.am modification, as well as an appropiate ./configure command.

        Thank you so much for the effort!

        U gave me hope!!

  2. Pingback: Software