Now i use German.pak which i downloaded from http://dev.openstreetmap.de/gosmore/
Firstly when i try routing with accessing localhost on browser it doesn’t work, becuase of this code i think:


/*switch ($layer) { 
case 'cn': 
    $gosmore = '/normal'; 
    $style = 'cyclestyles.xml'; 
    break; 
case 'test': 
    $gosmore = '/test'; 
    $style = 'elemstyles.xml'; 
    break; 
default: 
    $gosmore = '/normal'; 
    $style = 'genericstyles.xml'; 
    break; 
}
 
$dir = $yours_dir.$gosmore;


when i check on some folders, i can’t get some xml file include gosmore.i found elemstyles.xml only.
After i commented these line and change


$dir = $yours_dir.$gosmore; 

be


$dir = $yours_dir;

Now my routing works well.I can create route on Germany map. :slight_smile: .Its running on ubuntu 10.10

But now i try using it on Ubuntu 11.10 server.

After i checkout source then i got error when execute :


$ make
gcc -lm density.c -o density
/tmp/ccNQSatu.o: In function `main':
density.c:(.text+0x21f): undefined reference to `exp'
density.c:(.text+0x224): undefined reference to `atan'
density.c:(.text+0x2c3): undefined reference to `exp'
density.c:(.text+0x2c8): undefined reference to `atan'
density.c:(.text+0x5d3): undefined reference to `exp'
density.c:(.text+0x5d8): undefined reference to `atan'
density.c:(.text+0x67a): undefined reference to `exp'
density.c:(.text+0x67f): undefined reference to `atan'
density.c:(.text+0x723): undefined reference to `exp'
density.c:(.text+0x728): undefined reference to `atan'
density.c:(.text+0x793): undefined reference to `exp'
density.c:(.text+0x798): undefined reference to `atan'
collect2: ld returned 1 exit status
make: *** [jni/bboxes.c] Error 1


is it bug of gosmore on ubuntu 11.10 or what is this ?
How to solve this ?