install on Ubuntu Karmic

View: New views
9 Messages — Rating Filter:   Alert me  

install on Ubuntu Karmic

by Peter Busai :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I successfully used Mapnik on Ubuntu 9.4. Lately I upgraded to 9.10.
During update there was a complain about python-mapnic package.
I just reinstalled this and libmapnik0.6 packeges.
Testing in python:
 >>> import mapnik
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/dist-packages/mapnik/__init__.py", line 54, in
<module>
from _mapnik import *
ImportError: libicudata.so.38: cannot open shared object file: No such
file or directory
 >>>

and yes, there are only libicuXXX.so.40 files in Karmic
libicu38 is not available in this release. Should I create symlinks?

Building from source did not work either:
$python scons/scons.py
{...}
g++ -o plugins/input/kismet/kismet_datasource.os -c -DHAVE_LIBXML2
-DHAVE_PYCAIRO -ansi -Wall -pthread -ftemplate-depth-100 -DLINUX
-DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -DSVN_REVISION=1357 -O3
-finline-functions -Wno-inline -DNDEBUG -DSHAPE_MEMORY_MAPPED_FILE -fPIC
-D_REENTRANT -Iagg/include -Iinclude -I. -I/usr/include
-I/usr/local/include -I/usr/include/freetype2 -I/usr/include/libxml2
-I/usr/include/postgresql -I/usr/include/pycairo -I/usr/include/cairo
-I/usr/include/pixman-1 -I/usr/include/directfb -I/usr/include/libpng12
plugins/input/kismet/kismet_datasource.cpp
plugins/input/kismet/kismet_datasource.cpp: In member function ‘void
kismet_datasource::run(const std::string&, unsigned int)’:
plugins/input/kismet/kismet_datasource.cpp:272: error: ‘sscanf’ was not
declared in this scope
scons: *** [plugins/input/kismet/kismet_datasource.os] Error 1
scons: building terminated because of errors.

Thanks for any help
Peter
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: install on Ubuntu Karmic

by Artem Pavlenko-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Peter,

Should you be using 0.6.1 ?

Regards,
Artem

2009/11/6 Peter Busai <peter.busai@...>
Hi,

I successfully used Mapnik on Ubuntu 9.4. Lately I upgraded to 9.10.
During update there was a complain about python-mapnic package.
I just reinstalled this and libmapnik0.6 packeges.
Testing in python:
 >>> import mapnik
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/dist-packages/mapnik/__init__.py", line 54, in
<module>
from _mapnik import *
ImportError: libicudata.so.38: cannot open shared object file: No such
file or directory
 >>>

and yes, there are only libicuXXX.so.40 files in Karmic
libicu38 is not available in this release. Should I create symlinks?

Building from source did not work either:
$python scons/scons.py
{...}
g++ -o plugins/input/kismet/kismet_datasource.os -c -DHAVE_LIBXML2
-DHAVE_PYCAIRO -ansi -Wall -pthread -ftemplate-depth-100 -DLINUX
-DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -DSVN_REVISION=1357 -O3
-finline-functions -Wno-inline -DNDEBUG -DSHAPE_MEMORY_MAPPED_FILE -fPIC
-D_REENTRANT -Iagg/include -Iinclude -I. -I/usr/include
-I/usr/local/include -I/usr/include/freetype2 -I/usr/include/libxml2
-I/usr/include/postgresql -I/usr/include/pycairo -I/usr/include/cairo
-I/usr/include/pixman-1 -I/usr/include/directfb -I/usr/include/libpng12
plugins/input/kismet/kismet_datasource.cpp
plugins/input/kismet/kismet_datasource.cpp: In member function ‘void
kismet_datasource::run(const std::string&, unsigned int)’:
plugins/input/kismet/kismet_datasource.cpp:272: error: ‘sscanf’ was not
declared in this scope
scons: *** [plugins/input/kismet/kismet_datasource.os] Error 1
scons: building terminated because of errors.

Thanks for any help
Peter
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users


_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: install on Ubuntu Karmic

by Dennis Luxen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Testing in python:
>  >>> import mapnik

Same here, there seems to be a problem with the dependencies.

> Building from source did not work either:
> $python scons/scons.py

I was able to compile 0.61. I just had minor troubles with the Boost
installation. Did you run configure before and did it report any missing
  libraries?

--Dennis
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Parent Message unknown Re: install on Ubuntu Karmic

by Peter Busai :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks,

That was not enough. I had to remove the whole mapnik dir and do a
checkout again.
Configure, build and install done without errors,
and then:

Python 2.6.4 (r264:75706, Nov  2 2009, 14:38:03)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import mapnik
Problem loading plugin library: /usr/local/lib/mapnik/input/sqlite.input
(libtool error: file not found)
 >>>


Artem Pavlenko írta:

>
>
>
>     .sconf_temp/conftest_32: error while loading shared libraries:
>     libgeos-3.0.0.so <http://libgeos-3.0.0.so>: cannot open shared
>     object file: No such file or directory
>
>  
> Hmm... not sure who is trying to load geos - it's not a Mapnik dependency
>
> Try removing :
>
> .sconf_temp/    
> .sconsign.dblite
>
> and run scons/scons.py confugure again
>
>  Artem

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: install on Ubuntu Karmic

by Dane Springmeyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Nov 6, 2009, at 2:08 AM, Peter Busai wrote:

> scons: *** [plugins/input/kismet/kismet_datasource.os] Error 1
> scons: building terminated because of errors.
>


Peter, this is just a problem compiling the KISMET plugin.

Edit the 'config.py' in your source directory and remove 'kismet' from  
the list of INPUT_PLUGINS

Dane


_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: install on Ubuntu Karmic

by Dane Springmeyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Nov 6, 2009, at 3:51 AM, Dennis Luxen wrote:

> I was able to compile 0.61. I just had minor troubles with the Boost
> installation. Did you run configure before and did it report any  
> missing
>  libraries?


Dennis,

What problems did you run into with the boost libraries?

Dane

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: install on Ubuntu Karmic

by Dane Springmeyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Nov 6, 2009, at 5:48 AM, Peter Busai wrote:

>>>> import mapnik
> Problem loading plugin library: /usr/local/lib/mapnik/input/
> sqlite.input
> (libtool error: file not found)
>>>


Yup, sqlite lite might be the dependency that broke in the Karmic  
Upgrade.

Note that this error is not fatal it just means that Mapnik can't use  
SQLite datasources, and "not found" actually means that the library  
was found but will not work likely because of linking errors.

But  all you need to do to fix the error is re-install (so that plugin  
will get overwritten with a new working one- that is linked  
correctly), or just remove it:

sudo rm /usr/local/lib/mapnik/input/sqlite.input

Then '>>> import mapnik'  should work without complaining.

Dane

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Parent Message unknown Re: install on Ubuntu Karmic

by Dane Springmeyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Denis, okay thanks, right now I remember now how this issue appears  
due to packaging changes... http://trac.mapnik.org/ticket/438 and http://trac.mapnik.org/ticket/351

I was caught up in a long battle to get the mapnik packages working on  
Karmic (which use Boost 1.38) and lost track of this one.

Needs patch so I guess so folks that build trunk on new ubuntu  
versions will have smoother sailing, and perhaps a backport to 0.6.2.

Dane


On Nov 6, 2009, at 9:23 AM, Dennis Luxen wrote:

>> Dennis,
>>
>> What problems did you run into with the boost libraries?
>
>
> I installed the Boost 1.40 libraries from the repository and the  
> symlink to libboost_python-mt.so was missing. So, the linker  
> complained. Not too hard to fix.
>
> Best,
> Dennis
>
> --
> Dennis Luxen
> Universität Karlsruhe (TH) | Fon  : +49 (721) 608-6781
> Institut für Theoretische Informatik | Fax  : +49 (721) 608-3088
> Am Fasanengarten 5, Zimmer 220 | WWW  : algo2.ira.uka.de/luxen
> D-76131 Karlsruhe, Germany | Email: luxen@...
> --------------------------------------------------------------------
>

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: install on Ubuntu Karmic

by Peter Busai :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Dane. That did it.

Peter

Dane Springmeyer írta:

>> Problem loading plugin library: /usr/local/lib/mapnik/input/sqlite.input
>> (libtool error: file not found)
>
> But  all you need to do to fix the error is re-install (so that plugin
> will get overwritten with a new working one- that is linked
> correctly), or just remove it:
>
> sudo rm /usr/local/lib/mapnik/input/sqlite.input
>
> Then '>>> import mapnik'  should work without complaining.
>
> Dane
>
>

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users