Operating System - HP-UX
1753865 Members
7574 Online
108809 Solutions
New Discussion юеВ

Re: Ghostscript (ps2pdf): /usr/lib/dld.sl: Can't find path for shared library: libfontconfig.sl

 
SOLVED
Go to solution
Oscar Garcia
Regular Advisor

Ghostscript (ps2pdf): /usr/lib/dld.sl: Can't find path for shared library: libfontconfig.sl

Hi Guys,

I am trying to make ps2pdf to work in HP_UX 11i v1. I have downloaded ghostscript from http://hpux.its.tudelft.nl/hppd/hpux/PostScript/ghostscript-8.62.0/ and installed it without errors.

Now when I try to convert a file to pdf I get:
root @hpbureau > ps2pdf tad.ps tad.pdf
/usr/lib/dld.sl: Can't find path for shared library: libfontconfig.sl
/usr/lib/dld.sl: No such file or directory
Abort(coredump)

I have been unable to find libfontconfig.sl so where I get it from? or how I sort this out?

Thanks for any help,
7 REPLIES 7
Steven E. Protter
Exalted Contributor
Solution

Re: Ghostscript (ps2pdf): /usr/lib/dld.sl: Can't find path for shared library: libfontconfig.sl

Shalom,

You failed to follow the dependency requirements on that link.

The install will work but the application will not.

Follow them strictly and your software will work.

That library is provided by one of the run time requirements.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Oscar Garcia
Regular Advisor

Re: Ghostscript (ps2pdf): /usr/lib/dld.sl: Can't find path for shared library: libfontconfig.sl

Thanks Steven, after installing expat, fontconfig, freetype, gettext, jpeg, libiconv, libpng, and zlib libraries, it works as a dream!
Barakati
Frequent Advisor

Re: Ghostscript (ps2pdf): /usr/lib/dld.sl: Can't find path for shared library: libfontconfig.sl

Hi Guys,

I too get the same error, could you please
mention the step by step process to install all these dependencies.

when i try to install expat it gives me error as follows.

#./configure.

checking build system type... ia64-hp-hpux11.31
checking host system type... ia64-hp-hpux11.31
checking for gcc... no
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... file_magic (s[0-9][0-9][0-9]
F-[0-9][0-9]) shared object file - IA64
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
....
........
configure: creating ./config.status
config.status: creating Makefile
config.status: creating expat_config.h
config.status: expat_config.h is unchanged

But when

#make
/bin/sh ./libtool --silent --mode=link cc -I./lib -I. -g -DHAVE_EXPAT_C
ONFIG_H -o xmlwf/xmlwf xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/rea
dfilemap.o libexpat.la
(Bundled) cc: warning 922: "-g" is unsupported in the bundled compiler, ignored.
ld: Unknown input file type: "./.libs/libexpat.so"
Fatal error.
*** Error exit code 1

Could you kindly send me the step by step procedure to install all these dependencies.
Dennis Handly
Acclaimed Contributor

Re: Ghostscript (ps2pdf): /usr/lib/dld.sl: Can't find path for shared library: libfontconfig.sl

>ld: Unknown input file type: "./.libs/libexpat.so"

What does "file ./.libs/libexpat.so" show?
Barakati
Frequent Advisor

Re: Ghostscript (ps2pdf): /usr/lib/dld.sl: Can't find path for shared library: libfontconfig.sl

Hi,

Thanks for your reply.
I could not 'more' this file.

Here is the output.
-rwxrwxrwx 1 root sys 569348 Jan 12 15:34 libexpat.so.6.2
lrwxrwxrwx 1 root sys 15 Jan 12 15:34 libexpat.so.6 -> libex
pat.so.6.2
lrwxrwxrwx 1 root sys 15 Jan 12 15:34 libexpat.so -> libexpa
t.so.6.2
-rw-rw-rw- 1 root sys 684912 Jan 12 15:34 libexpat.a
-rw-rw-rw- 1 root sys 797 Jan 12 15:34 libexpat.lai
lrwxrwxrwx 1 root sys 14 Jan 12 15:34 libexpat.la -> ../libe
xpat.la


dev2# more libexpat.so.6.2
libexpat.so.6.2 is not a text file
dev2# echo libexpat.so.6.2

Looking forward for your response.
Dennis Handly
Acclaimed Contributor

Re: Ghostscript (ps2pdf): /usr/lib/dld.sl: Can't find path for shared library: libfontconfig.sl

>dba_hp: I could not 'more' this file.

I asked you to use file(1) not more(1).
TTr
Honored Contributor

Re: Ghostscript (ps2pdf): /usr/lib/dld.sl: Can't find path for shared library: libfontconfig.sl

> dba_hp: I too get the same error...

You should open your own thread and post your question regarding building ghostscript and its dependencies. This way you can assign points to the people that help you. This thread is closed by Oscar, the original poster.