ld.so.1: convert:fatal:liblcms2.so,2: open failed: No Such file or directory

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
plakshman
Posts: 11
Joined: 2015-07-10T12:32:08-07:00
Authentication code: 1151

ld.so.1: convert:fatal:liblcms2.so,2: open failed: No Such file or directory

Post by plakshman »

HI ,

On a Solaris Sparc 10 platform, i installed the package imagemagick-6.8.6.9-sol10-sparc-local

(Version: 6.8.6.9
Processor: SPARC
Operating System: Solaris 10
Download: imagemagick-6.8.6.9-sol10-sparc-local.gz)


i verified the commands convert,display now added in the Unix path and available for the user to execute but

per IM's manual when i test to verify if IM works :

convert logo: logo.gif

i get the error,
ld.so.1: convert:fatal:liblcms2.so,2: open failed: No Such file or directory

Could anyone help me out as this is the first time working on IM on Solaris env

-thanks
plakshman
Posts: 11
Joined: 2015-07-10T12:32:08-07:00
Authentication code: 1151

Re: ld.so.1: convert:fatal:liblcms2.so,2: open failed: No Such file or directory

Post by plakshman »

Found the required package downloaed from unixpackages for a fee and
installed lcm2.so with it's dependencies
[ gcc-3.4.6
jpeg-8d
tiff-4.0.3
zlib-1.2.8]

and moving ahead with fixing other package dependencies [libpng-1.2.49]

Thanks,
246246
Posts: 190
Joined: 2015-07-06T07:38:22-07:00
Authentication code: 1151

Re: ld.so.1: convert:fatal:liblcms2.so,2: open failed: No Such file or directory

Post by 246246 »

plakshman wrote: ld.so.1: convert:fatal:liblcms2.so,2: open failed: No Such file or directory
I no more have Solaris, but genererally speaking in Unix, you need to check the dependency with the following command (supposing convert is in your PATH):

Code: Select all

% ldd `which convert`
If you see something like

liblcms.so.2 => not found

in stdout, you will have to check if liblcm2.so.2 exists.
plakshman
Posts: 11
Joined: 2015-07-10T12:32:08-07:00
Authentication code: 1151

Re: ld.so.1: convert:fatal:liblcms2.so,2: open failed: No Such file or directory

Post by plakshman »

thanks 246246,

yes, solaris becoming to be pain.

convert is not in PATH (/usr/bin) but in /usr/local/bin

even when i issue that command from local/bin ,
> ldd 'which convert'
> ldd: which convert: cannot open file: No such file or directory

thanks
246246
Posts: 190
Joined: 2015-07-06T07:38:22-07:00
Authentication code: 1151

Re: ld.so.1: convert:fatal:liblcms2.so,2: open failed: No Such file or directory

Post by 246246 »

plakshman wrote:
convert is not in PATH (/usr/bin) but in /usr/local/bin

even when i issue that command from local/bin ,
> ldd 'which convert'
> ldd: which convert: cannot open file: No such file or directory

thanks
I think you have already solved your main problems, but using ldd is good practice to help solving such errors.
Use backquote (`) instead of single quote('), or explicitly

Code: Select all

ldd /usr/local/bin/convert
If there are still missing libraries, some features may not be available.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: ld.so.1: convert:fatal:liblcms2.so,2: open failed: No Such file or directory

Post by fmw42 »

try

/usr/local/bin/convert logo: logo.png

if that works, then add /usr/local/bin to your PATH environment variable
naveen800
Posts: 35
Joined: 2016-01-07T08:31:48-07:00
Authentication code: 1151

Re: ld.so.1: convert:fatal:liblcms2.so,2: open failed: No Such file or directory

Post by naveen800 »

I'm receiving too
Post Reply