Operating System - HP-UX
1748257 Members
3891 Online
108760 Solutions
New Discussion юеВ

Re: Installing ghostscript 8.62 with all its dependencies.

 
SOLVED
Go to solution
Barakati
Frequent Advisor

Installing ghostscript 8.62 with all its dependencies.

Hi,

I try to install ghostscript on HP-UX 11.31.
from http://hpux.connect.org.uk/hppd/hpux/PostScript/ghostscript-8.62.0/

I started with its first depency package expat.
I get the following error.
I was able to run ./configure without any error. but when i run make i get following error.
#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

libexpat.so shows:
#file libexpat.so
libexpat.so: ELF-32 executable object file - IA64

Kindly help me for this issue.

57 REPLIES 57
Steven Schweda
Honored Contributor

Re: Installing ghostscript 8.62 with all its dependencies.

> (Bundled) cc: [...]

If you're doing anything which requires a
C compiler, and if you don't have (or wish to
buy) the HP compiler product, then your first
step should probably be installing GCC. On
IA64, the bundled C compiler is insufficient
for many purposes. (On PA-RISC, it's
insufficient for _most_ purposes.)
Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi,

I am installing ghostscript just to convert postscript to epson printer format.

however, i installed gcc.

prod# /usr/local/bin/gcc -v
Using built-in specs.
Target: ia64-hp-hpux11.31
Configured with: ../gcc/configure
Thread model: posix
gcc version 4.2.3

but i did not put the gcc in PATH.
hence cc was used during ./configure.

but when i put gcc in PATH.
I get following error during ./configure

prod# ./configure
checking build system type... ia64-hp-hpux11.31
checking host system type... ia64-hp-hpux11.31
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler
cannot create executables
See `config.log' for more details.

config.log:
...
.....

configure:2495: checking for C compiler default output file name
configure:2498: gcc conftest.c >&5
/usr/lib/hpux32/dld.so: Unable to find library '/usr/local/lib/hpux32/libintl.so
'.
gcc: Internal error: Killed (program as)
Please submit a full bug report.
See <> for instructions.
configure:2501: $? = 1
configure: failed program was:
| /* confdefs.h. */

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT "expat-bugs@li
#define PACKAGE_NAME "expat"
#define PACKAGE_STRING "expat 2.0.1"
#define PACKAGE_TARNAME "expat"
#define PACKAGE_VERSION "2.0.1"

configure: exit 77

Kindly suggest me a solution.
Dennis Handly
Acclaimed Contributor

Re: Installing ghostscript 8.62 with all its dependencies.

>(Bundled) cc: warning 922: "-g" is unsupported in the bundled compiler
>libexpat.so: ELF-32 executable object file - IA64

The bundled C compiler doesn't support -b. You created an executable rather than a shlib. You could of course just use ld -b to link.
Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi,

I was able to run ./configure successfully with gcc. what i did was mv all lib needed to hpux32 folder /usr/local/hpux32.
But i found there a file hpux32 object file.
so i renamed this file and created a folder hpux32 and put all the libraries here.

Then i run make.
#make
/bin/sh ./libtool --silent --mode=link gcc -I./lib -I. -g -O2 -Wall -Wmi
ssing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -o xml
wf/xmlwf xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/readfilemap.o libe
xpat.la
ld: Unknown input file type: "./.libs/libexpat.so"
Fatal error.
collect2: ld returned 1 exit status
*** Error exit code 1

kindly help me.
Dennis Handly
Acclaimed Contributor

Re: Installing ghostscript 8.62 with all its dependencies.

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

Remove this file, was it bad from the first time?
Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi Handy,

I am a oracle dba and new to this kind of installation.
Could you kindly show me exactly how can i do what you said in steps.
Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi,

My question was regarding reling with ld -b.
However i test removing ./.libs/libexpat.so.

This time:
dev2# make
/bin/sh ./libtool --silent --mode=link gcc -I./lib -I. -g -O2 -Wall -Wmi
ssing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -o xml
wf/xmlwf xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/readfilemap.o libe
xpat.la
gcc: ./.libs/libexpat.so: No such file or directory
*** Error exit code 1


Then I saw there are other versions of this file in the same directory i tried them as well but same.

dev2# ls
libexpat.a libexpat.lai libexpat.so.6.2
libexpat.la libexpat.so.6 libexpat.so.org
dev2# cp libexpat.so.6 libexpat.so


dev2# make
/bin/sh ./libtool --silent --mode=link gcc -I./lib -I. -g -O2 -Wall -Wmi
ssing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -o xml
wf/xmlwf xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/readfilemap.o libe
xpat.la
ld: Unknown input file type: "./.libs/libexpat.so"
Fatal error.
collect2: ld returned 1 exit status
*** Error exit code 1

Do you suggest me to re-extract it form the source? Kindly suggest me.
Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi,

Thanks you all.

I re-extracted expat and then ./configure and make went fine.

Now i will try to do the same for all dependencies for ghostscript and let you all know.

Thanks for your efforts.
Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi,

I successfully install all dependencies for ghostscript 8.62.

-expat-2.0.1.tar1
-fontconfig-2.6.0-hppa-11.31.depot
-freetype-2.3.7-ia64-11.31.depot
-gcc-4.2.3-ia64-11.31.depot
-jpeg-6b-ia64-11.31.depot
-libiconv-1.12-ia64-11.31.depot
-libpng-1.2.34-ia64-11.31.depot
-zlib-1.2.3-ia64-11.31.depot

Now I extracted the ghostscript8.62
now from ghostscript folder.

dev2# ./configure
sh: ./configure: Execute permission denied.

dev2# chmod 766 configure
dev2# ./configure
checking for gcc... gcc
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... yes
checking whether gcc accepts -g... yes
.........
...........
............

checking for local jasper configure script... no
checking for local jasper autogen.sh script... configure: error:
Unable to find jasper/src/libjasper/include/jas_config.h,
or generate generate such a file for this system. You will
have to build one by hand, or configure, build and install
the jasper library separately.

You can also pass --without-jasper to configure to disable
JPEG 2000 PDF image support entirely.
#

When i try to run like below.

dev2# make install
Make: Don't know how to make install. Stop.
dev2# make
Make: No arguments or description file. Stop.

Thanks in advance.