Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help setting gzip on Solaris 7

97 views
Skip to first unread message

Salsawak

unread,
May 1, 1999, 3:00:00 AM5/1/99
to
Hi!
I'm trying to get gzip-1.2.4 setup on a P133 running Solaris 7. I downloaded
the gzip-1_2_4.tar and the GNUzip_1_2_4_SPARC_32bit_Solaris_7_pkg.tar. I did
un-tar the gzip-1_2_4.tar so far. It created a directory call gzip-1.2.4.

Now when I execute the configure command I don't see any errors, that I can
tell, but when I tried the make this is what I get:

#make
cc -c -DHAVE_UNISTD_H=1 -DVOID_CLOSEDIR=1 _DRETSIGTYPE=int gzip.c
/usr/ucb/cc: language optional software package not installed
*** Error code 1
make: Fatal error: Command failed for target 'gzip.o'

Can any one help??? Do I need to install the GNUzip first? How?

I'm new to Solaris so I need all the help that I can get.


Thanks for the help.

Ray

Jason Coletta

unread,
May 1, 1999, 3:00:00 AM5/1/99
to
Hi,
I have the same setup
go to sunfreeware.com
they have a compiled and unzipped gzip package,
just download and install
-jason
col...@ece.utexas.edu
Salsawak wrote in message <19990501140621...@ng-ci1.aol.com>...

Salsawak

unread,
May 1, 1999, 3:00:00 AM5/1/99
to
Thanks for the info. but I just tried that and install went through really
smooth. The problem is when I tried to uncompress other utilities downloaded
from sunfreeware, all with the extension .gz, I get an error. Something about
can read beyond the first line because an illegal character '('. Is this
happens to you too????

Ray

Steve Christensen

unread,
May 1, 1999, 3:00:00 AM5/1/99
to

It is highly probable that when if you downloaded files from sunfreeware.com
after you installed the gzip/gunzip program, the .gz files were gunzipped as
they were downloaded but the .gz was not removed. This is a helper
configuration problem with your browser. In any case, try doing the

file

command on the .gz files and see if they are gunzipped already but without
the .gz taken off. If they are not compressed then remove the .gz
extension with something like

mv file.gz file

and then do the pkgadd -d file as indicated in the Downloading/Installation
and FAQ links on sunfreeware.com.

If the above does not solve your problem, email me.

Steve Christensen
sunfreeware.com


Ted Sikora

unread,
May 1, 1999, 3:00:00 AM5/1/99
to
Salsawak wrote:
>
> Hi!
> I'm trying to get gzip-1.2.4 setup on a P133 running Solaris 7. I downloaded
> the gzip-1_2_4.tar and the GNUzip_1_2_4_SPARC_32bit_Solaris_7_pkg.tar. I did
> un-tar the gzip-1_2_4.tar so far. It created a directory call gzip-1.2.4.
>
> Now when I execute the configure command I don't see any errors, that I can
> tell, but when I tried the make this is what I get:
>
> #make
> cc -c -DHAVE_UNISTD_H=1 -DVOID_CLOSEDIR=1 _DRETSIGTYPE=int gzip.c
> /usr/ucb/cc: language optional software package not installed
> *** Error code 1
> make: Fatal error: Command failed for target 'gzip.o'
>
> Can any one help??? Do I need to install the GNUzip first? How?
>

Like Steve Christensen said use pkgadd -d as per his instuctions. The
reason for the errors when trying to build from source is there is no
compiler installed by default. I recommend you install the bulk of his
ports from SunFreeware.com especially gcc-2.8.1, libstdc++, and
Gnumake-3.77. You will then be able to build most ports expecially those
geared towards the Linux community with the addition of automake,
autoconf, libtool, and gettext. These are a requirement for most
standard sources today.

--
Ted Sikora
tsi...@tiac.net
http://tsikora.tiac.net

Martin Shepherd

unread,
May 1, 1999, 3:00:00 AM5/1/99
to

It sounds as though you downloaded a version of gzip for the wrong
architecture. If I am correct, it isn't gzip that is complaining about
the file that it is operating on, but rather Solaris that is
complaining that the gzip executable doesn't have a valid header.

The sunfreeware site has binaries for both sparc and intel
architectures. Check that you got the right version by typing:

% cd /wherever/you/put/gzip
% file gzip

Depending on which version you downloaded, this should respond with
one of the following two lines:

gzip: ELF 32-bit MSB executable SPARC Version 1, dynamically linked,...
gzip: ELF 32-bit LSB executable 80386 Version 1, dynamically linked,...

In your original post you said that you were using a P133, so you
should see the second of the above lines if you downloaded the correct
version of gzip for your machine.

Martin Shepherd (m...@astro.caltech.edu)

Jason Coletta

unread,
May 1, 1999, 3:00:00 AM5/1/99
to
Hi,
Once I downloaded a package for the wrong
architecture, and I got an error message that
didn't allow the pkgadd to complete, but
it was from a different site.
-Jason
col...@ece.utexas.edu

Ted Sikora

unread,
May 2, 1999, 3:00:00 AM5/2/99
to
Salsawak wrote:
>
> Thanks for the info. but I just tried that and install went through really
> smooth. The problem is when I tried to uncompress other utilities downloaded
> from sunfreeware, all with the extension .gz, I get an error. Something about
> can read beyond the first line because an illegal character '('. Is this
> happens to you too????
>
> Ray

Make sure you add /usr/local/bin to path and /usr/local/lib with
LD_LIBRARY_PATH for the SunFreeware ports.

You can add the following to the end
of /etc/profile:

PATH=/usr/local/bin:$PATH
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

Martin Shepherd

unread,
May 3, 1999, 3:00:00 AM5/3/99
to

A week ago I accidently put an x86 Solaris 7 CDROM in a Sun in order
to install the YP packages. Unfortunately pkgadd completed without any
complaints, so it wasn't until I tried to run the installed programs
that anything went wrong. At that point I saw precisely the error
message that the original poster of this thread reported, which is why
I suggested that he check whether he downloaded for the correct
architecture.

Martin Shepherd (m...@astro.caltech.edu)

0 new messages