View Single Post
Old 09-13-2011, 08:34 PM   #1
chris1412
Junior Member
chris1412 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2011
Device: Android
Source Install Fails on Ubuntu 11.04

Hi there I am spending now hours to install calibre from source.
Unfortunatelly this is needed for using WSGI adapter.

Packages are missing:
poppler.pc
MagickWand.pc

And I have no Idea how to get them.... searched but now frustrated...

Code:
$ sudo python setup.py install
Package poppler was not found in the pkg-config search path.
Perhaps you should add the directory containing `poppler.pc'
to the PKG_CONFIG_PATH environment variable
No package 'poppler' found
Package MagickWand was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickWand.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickWand' found
Package poppler was not found in the pkg-config search path.
Perhaps you should add the directory containing `poppler.pc'
to the PKG_CONFIG_PATH environment variable
No package 'poppler' found
Package MagickWand was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickWand.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickWand' found
Dropping privileges to those of chris: 1000
No module named icu
No module named icu

*
* Running build
*


####### Building extension speedup #######

####### Building extension icu #######
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -pthread -I/usr/include/python2.7 -c /opt/calibre/src/calibre/utils/icu.c -o /opt/calibre/build/objects/icu/icu.o
/opt/calibre/src/calibre/utils/icu.c:4:28: fatal error: unicode/utypes.h: No such file or directory
compilation terminated.
Traceback (most recent call last):
  File "setup.py", line 99, in <module>
    sys.exit(main())
  File "setup.py", line 85, in main
    command.run_all(opts)
  File "/opt/calibre/setup/__init__.py", line 163, in run_all
    self.run_cmd(self, opts)
  File "/opt/calibre/setup/__init__.py", line 156, in run_cmd
    self.run_cmd(scmd, opts)
  File "/opt/calibre/setup/__init__.py", line 159, in run_cmd
    cmd.run(opts)
  File "/opt/calibre/setup/extensions.py", line 298, in run
    self.build(ext, dest)
  File "/opt/calibre/setup/extensions.py", line 339, in build
    subprocess.check_call(cmd)
  File "/usr/lib/python2.7/subprocess.py", line 504, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gcc', '-O3', '-Wall', '-DNDEBUG', '-fno-strict-aliasing', '-pipe', '-fPIC', '-pthread', '-I/usr/include/python2.7', '-c', '/opt/calibre/src/calibre/utils/icu.c', '-o', '/opt/calibre/build/objects/icu/icu.o']' returned non-zero exit status 1
chris1412 is offline   Reply With Quote