Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm compiling navit on ubuntu It gets down to this step and fails

/bin/bash ../libtool --tag=CC   --mode=link gcc  -g -O2 -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -ffast-math   -o osm2navit osm2navit-osm2navit.o  -L../navit/support/glib -lsupport_glib -L../navit/support/ezxml -lsupport_ezxml -ldl  -L../navit/support/zlib -lsupport_zlib  -lm -rdynamic
 libtool: link: gcc -g -O2 -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -ffast-math -o osm2navit osm2navit-osm2navit.o -rdynamic  ./.libs/libnavit.a -L/home/rory/navit/svn/navit/navit/support/glib -lsupport_glib -L/home/rory/navit/svn/navit/navit/support/ezxml -lsupport_ezxml -ldl -L/home/rory/navit/svn/navit/navit/support/zlib -lsupport_zlib -lm
/usr/bin/ld: cannot find -lsupport_glib

Any idea what ubuntu package to install?

share|improve this question
up vote 1 down vote accepted

It looks like it's trying to find the library in the local source tree.


Yep. It's expecting to find the library in navit/support/glib. I'm guessing you missed a build step somewhere that told it to compile that file first.

share|improve this answer

From the above it looks like the libsupport_glibc library should be provided by the package you are building. Try doing doing a find and/or rgrep at the top of the source tree to figure out how it is built. Something like find /path/to/source/tree -type f -name '*support?glib*' should indicate what the source file is for the library. rgrep 'support?glib' /path/to/source/tree can help you figure out how it is built.

It appears that there is a package for some version of oms2navit. The package info is at one of the sites under [] at [].

Have fun

share|improve this answer

Is there a reason you need to compile it, this wiki includes sources you can add to /etc/apt/sources.list

* deb gutsy main
* deb hardy main
* deb intrepid main
* deb jaunty main

Just add the correct line that matches your distro to the sources.list and then just:

sudo apt-get update
apt-cache search navit
apt-get install <whatever it is>

That being said, with the following version: navit-0.1.1.tar.gz . I had no problems with the standard step below in Jaunty.

sudo make install
share|improve this answer
I want to try to compile it from source, since osm2navit, one of the tools, doesn't work with the latest OpenStreetMap database dump – Rory Aug 5 '09 at 20:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.