9 responses to “Install SQLite Database Browser on Fedora”

  1. Temperage

    You did not have to install the KDE monster to have qmake. Most likely just had to run it like /usr/lib/qt4/qmake if you had qt4 installed, or create a symlink to /usr/bin. I got it past the qmake stage, but I am stuck at running make. Did anyone had any luck building it on later Fedora releases.
    Here is what I am seeing after running make. Any suggestions?

    /usr/bin/ld: .obj/sqlite3.o: undefined reference to symbol ‘dlopen@@GLIBC_2.1′
    /usr/bin/ld: note: ‘dlopen@@GLIBC_2.1′ is defined in DSO /lib/libdl.so.2 so try adding it to the linker command line
    /lib/libdl.so.2: could not read symbols: Invalid operation
    collect2: ld returned 1 exit status

  2. Temperage

    Thanks buddy, but I tried the solution described in that forum, and still no luck. I just want to know if there are any champs out there that managed to build that evil script. Please step forward and explain it to us mortals, step by step, noob-style.

    Here is what I tried so far:
    1. At a minimum Install “qt-config” and “qt-devel” packages
    2. Extract “sqlitebrowser_200_b1_src.tar.gz” and cd into the extracted directory
    3. $ qmake-qt4
    4. $ gedit sqlitedb.h to replace all instances of “DBBrowserField() : name( 0 ) { }” with “DBBrowserField() { }”
    5. $ gedit Makefile to change “CFLAGS = -ldl -lpthread -pipe -Wall -W -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT”
    6. $ make

    There were somewhere around 20 variations of step 5 that I did. All the permutations of using -ldl -lpthread with quotes and without. Still get the same error as above.

  3. Temperage

    I was able to build the GIT source but the program had no functionality whatsoever. So I ended up booting from Ubuntu liveCD and installing sqlitebrowser available from the repos.

    If you want to run the sqlitebrowser under Fedora. you can install qt3 and use the pre-compiled binary they include with the “sqlitebrowser-1.3-i386.tar.gz”. I tried it and it works on my FC14. You do not have to uninstall qt4 in order to make it work.

    I was unsuccessful building from source either 1.3 or 2.0 releases. I think sqlitebrowser is left to die its natural death, as qt3 is becoming outdated, and the qt4 port is not functional.

  4. Henrik

    Thanks for the tip Temperage, this workaround worked for me too on a Fedora 15 x86_64 release, although I had to install the i686 version of the qt3 package.

  5. oscar

    For Fedora 14 x86_64, you can also use sqlite-devel package instead of the sqlite3 source included. It solved an issue with not getting results from sql.

    1. yum install qt3 sqlite-devel qt-devel
    2. tar xzf sqlitebrowser_200_b1.src.tar.gz; cd to the extracted directory
    3. qmake-qt4
    4. gedit Makefile and remove all references to sqlite_source/sqlite3.c, sqlite3.o; set “LIBS=… -ldl -lsqlite3″
    5. make

    Works beautifully.

  6. TRiPgod

    Thank you, Oscar. That really did work beautifully.

Leave a Reply