LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-15-2012, 09:46 PM   #1
wus34
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Rep: Reputation: Disabled
Need help installing inkscape from source


Hey,everyone.

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.

any hint how I should proceed?
 
Old 06-16-2012, 02:21 AM   #2
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
On debian, the package is called liblcms1-dev
I'm not sure how you will install that without root access though?
 
Old 06-16-2012, 02:31 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
May be try : sudo synaptic
I.e. sudo requires no root password, but your user password only.


'liblcms1-dev' : sudo apt-get install liblcms1-dev
 
Old 06-16-2012, 03:13 AM   #4
Refractor
Member
 
Registered: Oct 2008
Location: Rousse, Bulgaria
Distribution: Debian
Posts: 91

Rep: Reputation: 25
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.
 
Old 06-16-2012, 08:13 AM   #5
wus34
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you all for the quick response

Quote:
Originally Posted by knudfl View Post
'liblcms1-dev' : sudo apt-get install liblcms1-dev
can't use this solution
Code:
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.

Code:
./configure --prefix=$HOME/install CPPFLAGS="-I$HOME/install/include" LDFLAGS="-L$HOME/install/lib"
Additionally I also build the lcms 1.19 and the files are located in $HOME/install/include/
Code:
  2048 2012-06-16 15:04 .
  2048 2012-06-16 03:27 ..
  2048 2012-06-16 03:33 freetype2
  3890 2012-06-16 03:33 ft2build.h
  2048 2012-06-16 03:27 gc
    76 2012-06-16 03:27 gc.h
 40068 2012-06-16 04:26 icc34.h
 93522 2012-06-16 03:45 lcms2.h
 24728 2012-06-16 03:45 lcms2_plugin.h
 78034 2012-06-16 04:26 lcms.h
and $HOME/install/lib/
Code:
    2048 2012-06-16 04:55 .
    2048 2012-06-16 03:27 ..
  113398 2012-06-16 03:27 libcord.a
    1006 2012-06-16 03:27 libcord.la
    2048 2012-06-16 04:55 libffi-3.0.11
  125966 2012-06-16 04:55 libffi.a
     960 2012-06-16 04:55 libffi.la
      15 2012-06-16 04:55 libffi.so -> libffi.so.6.0.0
      15 2012-06-16 04:55 libffi.so.6 -> libffi.so.6.0.0
  101760 2012-06-16 04:55 libffi.so.6.0.0
 3211186 2012-06-16 03:33 libfreetype.a
    1006 2012-06-16 03:33 libfreetype.la
      20 2012-06-16 03:33 libfreetype.so -> libfreetype.so.6.8.0
      20 2012-06-16 03:33 libfreetype.so.6 -> libfreetype.so.6.8.0
 2291975 2012-06-16 03:33 libfreetype.so.6.8.0
  666416 2012-06-16 03:27 libgc.a
     924 2012-06-16 03:27 libgc.la
 1160648 2012-06-16 03:45 liblcms2.a
     978 2012-06-16 03:45 liblcms2.la
      17 2012-06-16 03:45 liblcms2.so -> liblcms2.so.2.0.3
      17 2012-06-16 03:45 liblcms2.so.2 -> liblcms2.so.2.0.3
  872983 2012-06-16 03:45 liblcms2.so.2.0.3
  801842 2012-06-16 04:26 liblcms.a
     851 2012-06-16 04:26 liblcms.la
      17 2012-06-16 04:26 liblcms.so -> liblcms.so.1.0.19
      17 2012-06-16 04:26 liblcms.so.1 -> liblcms.so.1.0.19
  609796 2012-06-16 04:26 liblcms.so.1.0.19
    2048 2012-06-16 04:55 pkgconfig
but still can't get past the lcms Error.
Code:
checking for LCMS... no
configure: error: --enable-lcms was specified, but appropriate LittleCms development packages could not be found
If I'm doing something stupidly wrong please tell me because I can't get the hang of it.
 
Old 06-16-2012, 08:29 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Configuring inkscape with libs and headers in /home/<name>/install/ .
( Setting the CFLAGS will not work with all applications.)

You can try a couple other solutions, like ..
1) export LD_LIBRARY_PATH=/home/<name>/install/lib && ./configure --prefix=/<full-path>

2) ./configure CC="gcc -I/home/<name>/install/include -L/home/<name>/install/lib"

And : Better use the full path instead of $HOME :
$HOME may be ignored by configure without notice.

.
 
Old 06-16-2012, 09:48 AM   #7
wus34
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
1) export LD_LIBRARY_PATH=/home/<name>/install/lib && ./configure --prefix=/<full-path>
this is the result :/,
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
...
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?

Quote:
Originally Posted by knudfl View Post
2) ./configure CC="gcc -I/home/<name>/install/include -L/home/<name>/install/lib"
my result
Code:
-> ./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 View Post
And : Better use the full path instead of $HOME :
$HOME may be ignored by configure without notice.
Thanks for the hint.

.
 
Old 06-16-2012, 03:52 PM   #8
Refractor
Member
 
Registered: Oct 2008
Location: Rousse, Bulgaria
Distribution: Debian
Posts: 91

Rep: Reputation: 25
Is LCMS mandatory? If not could you try building inkscape with ./configure --prefix=/my/prefix --disable-lcms and see where that gets you
 
Old 06-16-2012, 04:09 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
#7 , #8
Quote:
Is LCMS mandatory ?
? Seems that 'lcms' is found OK, now it's about libgc ?

'gc' http://www.hpl.hp.com/personal/Hans_...urce/gc.tar.gz
 
Old 06-16-2012, 05:12 PM   #10
wus34
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
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 View Post
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'...

[EDIT] found nothing. yeah :/

Last edited by wus34; 06-16-2012 at 05:27 PM.
 
Old 06-17-2012, 02:51 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 ).

Which Ubuntu version are you using ?
Inkscape build prerequisites http://packages.ubuntu.com/source/oneiric/inkscape
( Some of those lib* have other dependencies.)

.

Last edited by knudfl; 06-17-2012 at 03:13 AM.
 
Old 06-17-2012, 04:19 PM   #12
wus34
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
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 View Post
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.

.
 
Old 06-17-2012, 09:49 PM   #13
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you know you can save your self a LOT of trouble if the dev packages ARE installed but you only exported the /home folder

if ONLY the /home/<you>/?/?... is exported then package config will NOT find the ones in /usr/lib64/packageconf/

set the std $PATH and the NEW ones in your ~/.bashrc
example
Quote:
PATH=$PATH:/DATA/SUSE12/seamonkey:/DATA/SUSE12/firefox:/DATA/SUSE12/bin:/DATA/SUSE12/lib64:/DATA/SUSE12/include:/DATA/cspice/exe:/DATA/cspice/data:/DATA/cspice/include:/DATA/cspice/lib:/DATA/SUSE12/cuda/bin

PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/DATA/SUSE12/lib64/pkgconfig

LD_LIBRARY_PATH=/usr/lib64:/usr/lib:/DATA/SUSE12/lib64:/DATA/cspice/lib:/DATA/SUSE12/cuda/lib64:/DATA/SUSE12/cuda/lib

export PATH PKG_CONFIG_PATH LD_LIBRARY_PATH
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help installing inkscape RNanney56 Linux - Software 3 12-16-2011 08:26 AM
LXer: Software Wars are updated now with source for Inkscape (on github) LXer Syndicated Linux News 0 07-22-2011 01:20 AM
Some issues about building Inkscape from source Choucete Slackware 8 06-16-2008 06:14 AM
LXer: Inkscape - Open Source Vector Graphics Editor LXer Syndicated Linux News 0 07-02-2006 09:03 PM
installing Inkscape ZaphyR Linux - Software 22 02-15-2005 09:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration