Building inkscape-20794 (0.47 dev) on Centos 4.7 fails to find lcms dev packages

Asked by squiggle

Hi all. I am trying to get Inkscape 0.46 or 0.47 dev installed onto my Centos 4.7 server. I need the SVG -> PDF conversion features of 0.46 but I read that there were improvements in 0.47 so the dev version might be a good idea. (I installed 0.46 via the package system on my Ubuntu laptop and this went fine). My Centos server is a virtual server with limited RAM (160Mb min, 512Mb burst) but I have loaded 0.43 via yum and this appears to convert files to PS or EPS successfully (not PDF of course as this was not implemented until 0.46).

I have installed RPMForge (http://wiki.centos.org/AdditionalResources/Repositories/RPMForge) but it looks like other repositories for Centos 4.x don't have any version more recent that 0.43 anyway. I then tried my hand at compiling a dev version. A few dependencies were easy to sort out with yum, but I have come to a blocking problem after the issue of the "./configure" command.

The result of this command is:

------------------------------
checking pkg-config is at least version 0.9.0... yes
checking for XFT... Package fontconfig was not found in the pkg-config search path.
Perhaps you should add the directory containing `fontconfig.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fontconfig' found
no
checking for XFT... Package xft was not found in the pkg-config search path.
Perhaps you should add the directory containing `xft.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xft' found
no
checking X11/Xft/Xft.h usability... no
checking X11/Xft/Xft.h presence... no
checking for X11/Xft/Xft.h... no
checking for GNOME_VFS... Package gnome-vfs-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gnome-vfs-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gnome-vfs-2.0' found
no
no
checking whether byte ordering is bigendian... no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for Perl development environment... skipped
checking for Python development environment... skipped
checking for LCMS... Package lcms was not found in the pkg-config search path.
Perhaps you should add the directory containing `lcms.pc'
to the PKG_CONFIG_PATH environment variable
No package 'lcms' found
no
configure: error: --enable-lcms was specified, but appropriate LittleCms development packages could not be found
------------------------------

I have downloaded the lcms tarball but can't find the "lcms.pc" file it mentions. So, has anyone any ideas?

As a side note, I am using inkscape simply as a cli-based SVG to PDF converter. If folks think I should be using something like iText for Java (http://www.lowagie.com/iText/) then please let me know.

Thanks all!

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
Guillermo Espertino (Gez)
Solved:
Last query:
Last reply:
Revision history for this message
squiggle (answers-launchpad-net-ws) said :
#1

(Addendum - of course that's not the whole output. I thought just the tail would be most useful.)

Revision history for this message
squiggle (answers-launchpad-net-ws) said :
#2

Addendum ii: if there is a way I can get 0.46 as a binary from somewhere I suspect that would be a whole bunch easier - it's for test only and by the time I am ready to go live with this project, 0.47 will probably be released!

Revision history for this message
Guillermo Espertino (Gez) (gespertino-gmail) said :
#3

you need lcms-dev package.
When the configuration script asks for a package always look for the -dev version.

Revision history for this message
squiggle (answers-launchpad-net-ws) said :
#4

Thank you very much for your answer. I ran "yum install lcms-devel" at the command line and that fixed the problem. Which revealed the next set of errors, however! (Apologies for the supplementary question and if this should be on a different thread, I shall be happy to open a new one.)

I am now getting this:

> configure: error: Package requirements (gdkmm-2.4 glibmm-2.4 gtkmm-2.4 >= 2.10.0 gtk+-2.0
> libxml-2.0 >= 2.6.11 libxslt >= 1.0.15 cairo sigc++-2.0 >= 2.0.11 gthread-2.0 >= 2.0
> libpng >= 1.2 gsl) were not met:

A number of these things don't appear to be available in the Centos 4.7 repo - I have tried "yum search" on a number of them. And I confess I am losing the will to live ;o)

I also tried step 1 from this tutorial (substituting yum for apt-get): http://screencasters.heathenx.org/blog/2008/07/03/making-a-debian-package-of-inkscape-on-ubuntu-hardy/. None of the required items seem to be found.

If there is a simple solution for the above I should be interested to hear it, but tbh I don't want to download the source for all of those things and compile them separately - I'd go mad first! I wonder whether it is worth re-considering how to get a binary for my system? Alternatively I could ask my host on how to upgrade to Centos 5, which appears to have a choice of 0.45 and 0.46 available (http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/).

I will enquire at my host for upgrade advice but your advice on simplest strategy to get things working on my current distro release would be much appreciated :o)

Revision history for this message
Best Guillermo Espertino (Gez) (gespertino-gmail) said :
#5

No, it's better to stay in this thread and not open a new one.

I'm an Ubuntu user, so I'm not sure if this applies to non-debian distros, but I guess that the official fedora/redhat repositories should have those packages (remember, always search the -dev versions).
The current cenOS version seems to be 5, but you have 4.7. It's possible that your version has older versions of the libraries, but they should be there anyway.

Try with yum search libpng, yum search gsl and so on. It should return the available packages. Install the -dev ones.

Revision history for this message
squiggle (answers-launchpad-net-ws) said :
#6

Hiya, thank you again for your hints. In general you were right - persistent searching can turn up some results :o)

Most of them were found (last time I tried I was tired, so probably not paying enough attention!). However "poppler", "gdkmm" and "pangoft2" appear not to be available, in 'normal' versions or devel.

I do appreciate your advice but - having contacted my host for an opportunity to move to Centos 5 - I will give up for now and will try to resolve this on my new machine. Since this - afaict - ought to have worked, I will mark as solved.

Revision history for this message
squiggle (answers-launchpad-net-ws) said :
#7

Thanks Guillermo Espertino (Gez), that solved my question.

Revision history for this message
squiggle (answers-launchpad-net-ws) said :
#8

(Hmm, incidentally, I didn't "say" the last post - I just marked one of Gez's answers as "best". I do dislike software that masquerades in this way).

Just wanted to add that I upgraded to Centos 5.2 and the issue was much the same there. After spending several hours trying to compile, I gave up, cancelled the new server order and switched to Ubuntu 8.10, which has 0.46 available in its default repositories. What was even nicer was that PHP5.2 and all the other software I needed was also available and I didn't have to compile anything, resulting in a much cleaner server stack. Joy!

I am not looking forward to the possibility I may need the features of 0.47 before they are released. Perhaps I can postpone that part of my project until it is actually released and available in the Ubuntu repos :o)

Thanks again to Gez for your assistance.