[Tracker] Re: tracker on Fedora Core 5



Dan Nicolaescu wrote:
Hi!

I tried to run the tracker CVS on Fedora Core 5. First FC5 comes with mysql-5.0.18, so it won't work with tracker
because it requires 5.0.19... But even if it 5.0.18 was OK, it seems
that the FC5 mysql is not compiled with the embedded server
support (I looked at the rpm .spec file and --with-embedded-server is
not passed to mysql's configure).

(cc to tracker-list so others can see - please join mailing list at http://mail.gnome.org/mailman/listinfo/tracker-list )

yes I have installed FC5 and have got it working with some changes.

The spec file also emits the --enable-assembler which means the FC5 version of mysql is not fully optimised


Then I compiled mysql-5.0.21 and installed it.
After that I got a fresh CVS checkout of tracker and run autogen.sh

./autogen.sh  --prefix=/tmp/TR --with-mysql=/tmp/MYSQL
/usr/bin/gnome-autogen.sh
checking for autoconf >= 2.53...
  testing autoconf2.50... not found.
  testing autoconf... found 2.59
checking for automake >= 1.7...
  testing automake-1.7... found 1.7.9
checking for libtool >= 1.4.3...
  testing libtoolize... found 1.5.22
checking for gettext >= 0.10.40...
  testing gettextize... found 0.14.5
checking for pkg-config >= 0.14.0...
  testing pkg-config... found 0.20
Checking for required M4 macros...
Checking for forbidden M4 macros...
Processing ./configure.in
Running aclocal-1.7...
Running autoconf...
Running autoheader...
Running automake-1.7...
configure.in: installing `./install-sh'
configure.in: installing `./mkinstalldirs'
configure.in: installing `./missing'
configure.in:17: installing `./config.guess'
configure.in:17: installing `./config.sub'
src/libtracker/Makefile.am: installing `./depcomp'
INSTALL INSTALL.autogen_bak differ: char 1, line 1
Processing ./src/libextractor/configure.ac
Running libtoolize...
You should update your `aclocal.m4' by running aclocal.
Putting files in AC_CONFIG_AUX_DIR, `../..'.
Running autopoint...
Copying file config.rpath
Copying file mkinstalldirs
Copying file po/Makefile.in.in
Running aclocal-1.7...
Running autoconf...
Running autoheader...
Running automake-1.7...
configure.ac: installing `./missing'
configure.ac:11: installing `./config.guess'
configure.ac:11: installing `./config.sub'
configure.ac:90: required file `./ltmain.sh' not found
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Not sure what is wrong here

ignore


src/main/Makefile.am: installing `./depcomp'
src/plugins/ole2/Makefile.am: installing `./compile'
src/plugins/pdf/Makefile.am:49: `CXXFLAGS' is a user variable, you should not override it;
src/plugins/pdf/Makefile.am:49: use `AM_CXXFLAGS' instead.
src/plugins/pdf/Makefile.am:49: `CXXFLAGS' is a user variable, you should not override it;
src/plugins/pdf/Makefile.am:49: use `AM_CXXFLAGS' instead.

after this autogen.sh fails


did not get failure here

Running it a second time succeeds.

I got it going with all dev packages correctly installed (like gettext, M4 and others)



When running "make" trackerd cannot be linked due to a missing -lssl
on the link line. I added it manually and the build could continue.

no need - the libs are retrieved from mysql_config --libmysqld-libs

make sure you do not have an old version mysql_config on your system path as it will give the wrong libs. (you dont need ssl support for the embedded server!)



When running trackerd `pwd` I got this error:
(I deleted ~/.Tracker before that just to be sure)

Initialising tracker...
060506 11:19:48 [ERROR] Error message file '/tmp/TR/share/tracker/english/errmsg.sys' had only 461 error 
messages,
but it should contain at least 463 error messages.
Check that the above file is the right version for this program!

this is a problem with mysql - each version tends to increment the no of msgs in hte errmsg file. You can grab the correct version from sql/share/english in your mysql source tree and put it in /usr/share/tracker/english


after that everything seemed to be working and the files in the
current directory were indexed.
Then I tried to run tracker-search, and I got an error:
Could not initialise Tracker - exiting...

you will get this if trackerd is not running and the service file is not installed in the dbus servces folder (it wont auto activate it). If you have trackerd running already then it will connect regardless of above but make sure you are running both as same user as tracker uses the session bus so running tracker-search as root would fail if trackerd is running on a different session.

I run tracker-search under strace, and this is the only interesting
thing that I could find:



ignore rest


I am about to build an rpm (for all rpm distros including FC5) though I need to work out what needs to go in a spec file (if you can help with this then please let me know)

I have also made changes so that inotify support is detected and works on FC5 (amazingly ubuntu has inotify header in usr/include/linux whilst FC5 has it in usr/include/sys)

Will send amended tarball with this support (add add to cvs) shortly once I have done some more testing.


--
Mr Jamie McCracken
http://jamiemcc.livejournal.com/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]