Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to compile Inkscape(0.48.2) from source and im getting this error
Code:
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... no
configure: error: --enable-lcms was specified, but appropriate LittleCms development packages could not be found
I already installed lcms(1.19), but I don't know how to get a dev package. In addition no root access otherwise I would have tried synaptic.
Or you could try installing lcms from source if you can't get any privileged access to the package manager.
Download lcms' source and build with ./configure --prefix=$HOME/.local/inkscape-build && make && make install. Afterwards do the same for inkscape. It should find lcms in that prefix and configure accordingly. Not the easiest way to do it but it should work.
my.real.name@c045:~$ sudo apt-get install liblcms1-dev
my.real.name is not in the sudoers file. This incident will be reported.
so I'm already trying to do what Refractor suggested, even though it's a roundabout way.
Since ./configure couldn't find neither intltool nor libgc I had to build them from src, so right now my ./configure line looks like this.
-> export LD_LIBRARY_PATH=/afs/some.university/user/m/my.real.name(//HOME)/install/lib && ./configure --prefix=/afs/some.university/user/m/my.real.name(//HOME)/install
...
checking gc.h usability... no
checking gc.h presence... no
checking for gc.h... no
checking gc/gc.h usability... no
checking gc/gc.h presence... no
checking for gc/gc.h... no
configure: error: libgc (the Boehm Conservative Collector) 6.4+, is needed to compile inkscape -- http://www.hpl.hp.com/personal/Hans_Boehm/gc
I also tried
Code:
-> export LD_LIBRARY_PATH=/afs/some.university/user/m/my.real.name(//HOME)/install/lib && ./configure --prefix=/afs/some.university/user/m/my.real.name(//HOME)/install CPPFLAGS=-I/afs/some.university/user/m/my.real.name(//HOME)/install/include
...
checking for gc.h... yes
checking for GC_init in -lgc... no
checking for GC_malloc in -lgc... no
checking for GC_realloc in -lgc... no
checking for GC_free in -lgc... no
configure: error: libgc (the Boehm Conservative Collector) 6.4+, is needed to compile inkscape -- http://www.hpl.hp.com/personal/Hans_Boehm/gc
so it seems I can't use LD_LIBRARY_PATH, or do I have to set a switch for ./configure?
-> ./configure --prefix=/afs/some.university/user/m/my.real.name(//HOME)/install CC="gcc -I/afs/some.university/user/m/my.real.name(//HOME)/install/include -L/afs/some.university/user/m/my.real.name(//HOME)/install/lib"
same with
-> ./configure CC="gcc -I/afs/some.university/user/m/my.real.name(//HOME)/install/include -L/afs/some.university/user/m/my.real.name(//HOME)/install/lib"
...
checking gc.h usability... no
checking gc.h presence... no
checking for gc.h... no
checking gc/gc.h usability... no
checking gc/gc.h presence... no
checking for gc/gc.h... no
configure: error: libgc (the Boehm Conservative Collector) 6.4+, is needed to compile inkscape -- http://www.hpl.hp.com/personal/Hans_Boehm/gc
so with both methods ./configure won't search .../my.real.name/install/include and .../my.real.name/install/lib
any other ways I can work around this, or is it just not possible?
Quote:
Originally Posted by knudfl
And : Better use the full path instead of $HOME :
$HOME may be ignored by configure without notice.
Forgot to mention, I already solved the 'gc' Problem yesterday, so this was a step back. With some help from this post. http://www.linuxquestions.org/questi...roblem-704802/
But I could solve the 'lcms' issue with these flags
[EDIT] used LCMS2 because now tried it with inkscape 0.48.3.1, I was hopping to get another error, (very silly)
Code:
LCMS2_LIBS=/afs/some.university/user/m/my.real.name/install/lib/pkgconfig/ LCMS2_CFLAGS=/afs/some.university/user/m/my.real.name/install/lib/pkgconfig/
full line
./configure --prefix=/afs/some.university/user/m/my.real.name/install/ CPPFLAGS="-I/afs/some.university/user/m/my.real.name/install/include" LDFLAGS="-L/afs/some.university/user/m/my.real.name/install/lib" LCMS2_LIBS=/afs/some.university/user/m/my.real.name/install/lib/pkgconfig/ LCMS2_CFLAGS=/afs/some.university/user/m/my.real.name/install/lib/pkgconfig/
And got my next error
[EDIT2]
Quote:
Originally Posted by Refractor
Is LCMS mandatory?
Yeah could be since I don't know right now if I really need it. but nonetheless I tried it with your line and got the error stated below.
Code:
configure: error: Package requirements (gdkmm-2.4 glibmm-2.4 giomm-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.12 gthread-2.0 >= 2.0 libpng >= 1.2 gsl) were not met:
No package 'gdkmm-2.4' found
No package 'glibmm-2.4' found
No package 'giomm-2.4' found
No package 'gtkmm-2.4' found
No package 'gtk+-2.0' found
No package 'libxslt' found
No package 'cairo' found
No package 'sigc++-2.0' found
No package 'gthread-2.0' found
No package 'gsl' found
but I thought that it is almost impossible to run an ubuntu system without these things, so I dug a bit deeper. btw I'm a real noob to the unix structure if you couldn't tell already . So my next step would be to check the whole system for those packages, since 'gimp' is already installed.
on the other hand I don't find anything... (╯°□°)╯︵ ┻━┻
I think then I have a to rebuild almost everything, the first step would be 'pkg-config'...
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Quote:
I thought that it is almost impossible to run an ubuntu system without these things
No package 'gtk+-2.0' found : Means no "package config file" = gtk+-2.0.pc
Usually /usr/lib/pkgconfig/gtk+-2.0.pc : When the files.pc are missing,
it also means that no development packages are installed :
No headers, no .so links to libraries.
But : gtk2 is always installed on any Linux OS. So is cairo and glib.
Suggest for the all the missing dependencies :
Download the binary packages for your OS. Unpack to "/home/<name>/lib",
"/home/<name>/include" , and edit files.pc to actual location.
( /afs/some.university/user/m/my.real.name/install/lib ).
No package 'gtk+-2.0' found : Means no "package config file" = gtk+-2.0.pc
.
k, thanks wasn't aware of that.
Quote:
Originally Posted by knudfl
Download the binary packages for your OS. Unpack to "/home/<name>/lib",
.
This sounds like a awesome solution! Didn't even remotely consider that way. This will take me some days, since its already Monday and I won't have much spare time during the week. So please don't be upset, if I won't reply till Friday.
My Ubuntu version is 11.04 32bit.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.