CCL Home Page
Up Directory CCL old-next-try
Made directory /usr/local/tempjkl

Went to a premier  Free Solaris Software site:

http://www.sunfreeware.com/
  choose SPARC/Solaris 7   (or whatever you have)
or go directly to:
  http://www.sunfreeware.com/sol7right.html

and download

ghostscript-5.50
ghostview-1.5
libpng-1.0.2
jpeg-6b
netpbm-1mar1994
zlib-1.1.3

I actually used ftp to the site nce.sun.ca:

% ftp nce.sun.ca


binary

cd /pub/freeware/sparc/7
get libpng-1.0.2-sol7-sparc-local.gz
get ghostscript-5.50-sol7-sparc-local.gz
get ghostview-1.5-sol7-sparc-local.gz
get jpeg-6b-sol7-sparc-local.gz
get libpng-1.0.2-sol7-sparc-local.gz
get netpbm-1mar1994-sol7-sparc-local.gz
get zlib-1.1.3-sol7-sparc-local.gz

cd /pub/freeware/SOURCES/
get ghostscript-fonts-other-5.50.tar.gz
get ghostscript-5.50.tar.gz
get ghostscript-fonts-std-5.50.tar.gz
get ghostview-1.5.tar.gz
get jpeg-6b.tar.gz
get libpng-1.0.2.tar.gz
get netpbm-1mar1994.p1.tar.gz
get zlib-1.1.3.tar.gz

quit


Then in /usr/local/tempjkl
unstalled ghostscript (I knowm version 6.0 is out, but I did not find it
compiled
  gunzip ghostscript-5.50-sol7-sparc-local.gz
  pkgadd -d ghostscript-5.50-sol7-sparc-local

# installed ghostview
gunzip ghostview-1.5-sol7-sparc-local.gz
pkgadd -d ghostview-1.5-sol7-sparc-local

# unpacked fonts
cd /usr/local/share/ghostscript/fonts
gtar zxvf /usr/local/tempjkl/ghostscript-fonts-other-5.50.tar.gz

# unpacked fonts  (do not ask me... I only follow them).
cd /usr/local/share/ghostscript
gtar zxvf /usr/local/tempjkl/ghostscript-fonts-std-5.50.tar.gz

# back to the temp
cd /usr/local/tempjkl

# installed jpeg package
gunzip jpeg-6b-sol7-sparc-local.gz
pkgadd -d jpeg-6b-sol7-sparc-local


# installed libpnh
gunzip libpng-1.0.2-sol7-sparc-local.gz
pkgadd -d libpng-1.0.2-sol7-sparc-local

gunzip zlib-1.1.3-sol7-sparc-local.gz
pkgadd -d zlib-1.1.3-sol7-sparc-local

# installing netpbm library/tools.NOTE. I took the netpbm from the source
# specified above. I ran into several different netpbm-1mar1994.p1 collections
# which had minor differences.

unpacked 
   gtar zxvf netpbm-1mar1994.p1.tar.gz

used hint found at http://mail-archive.com/latex2html%40tug.org/msg00073.html
================= start ==========
     Re: [l2h] netpbm for Solaris (5.7)

          From: Thomas Anders 
          Subject: Re: [l2h] netpbm for Solaris (5.7) 
          Date: Thu, 15 Apr 1999 02:29:34 -0700 


     On Apr 14, 16:02, Graham Gough wrote:
     > I'm a happy l2h user on my Linux box, but am trying to install it for
     > others on a Solaris machine. I'm having some problems building
     > netpbm using xmkmf. Make Makefiles fails [...]

     There's more than one way to do it ;) - IIRC, all you have to do is:
     - unpack netpbm-1mar1994.p1.tar.gz (note the "p1"!)
     - "cp Makefile.std Makefile" in every directory (use Makefile.gcc in
        libtiff/)
     - edit these Makefiles to adjust install destinations (INSTALLBINARIES,
       INSTALLMANUALS{1,3,5})
     - edit pbmplus.h: #define RGB_DB  "/usr/openwin/lib/rgb.txt"
                       #define SYSV
                       #define PGM_BIGGRAYS
                       ... and whatever else you need ...
     - some minor bugfixes:
       - in pgm/Makefile: "pgmkernel" should belong to MATHBINARIES instead of
         PORTBINARIES
       - in pnm/Makefile: "pnmsmooth" should belong to PORTBINARIES instead of
         SCRIPTS
     - make binaries && make install.bin install.man

      This is all from the top of my head. Use at own risk.
     


     HTH,
     Thomas

     --
     Thomas Anders 
     Hahn-Meitner-Institut Berlin, Germany
======================  end ===========

cd /usr/local/tempjkl/netpbm-1mar94.p1
in each directory (., libtiff,  pbm, 

   cp Makefile.std Makefile    

edited Makefile to make sure that:
-------------------------------
CC =            gcc -ansi -pedantic -fpcc-struct-return
INSTALLBINARIES =       /usr/local/netpbm
INSTALLMANUALS1 =       /usr/local/man/man1
INSTALLMANUALS3 =       /usr/local/man/man3
INSTALLMANUALS5 =       /usr/local/man/man5
--------------------------------


cd libtiff
cp Makefile.gcc Makefile    
and did not edit anything in the Makefile

cd ../pbm
cp Makefile.std Makefile
edited and made changes as in the top directory:
   /usr/local/tempjkl/netpbm-1mar94.p1

cd ../pgm
cp Makefile.std Makefile
edited Makefile as above + moved pgmkernel from PORTBINARIES  to MATHBINARIES


cd ../pnm
cp Makefile.std Makefile
edited Makefile as above and also moved pnmsmooth from SCRIPTS to PORTBINARIES


cd ../ppm
cp Makefile.std Makefile
edited Makefile as above


cd /usr/local/tempjkl/netpbm-1mar94.p1
make binaries
make install.bin
make install.man


There are still few missing pieces:

a) pnmtopng:

cd /usr/local/tempjkl
wget ftp://ftp.cise.ufl.edu/pub/depot/solaris/Graphics/pnmtopng-2.34.tar.gz
gtar zxvf pnmtopng-2.34.tar.gz
cd pnmtopng-2.34

edited Makefile
-----------------------------
# CC=cc
CC=gcc

# LIBPNG=../libpng
LIBPNG=/usr/local/lib
# ZLIB=../zlib
ZLIB=/usr/local/lib
# NETPBM=../netpbm
NETPBM=/usr/local/tempjkl/netpbm-1mar94.p1

# INSTDIR=/Users/Willem/Unix
INSTDIR=/usr/local/netpbm
----------------------------------------


then
make all
cp -p pnmtopng pngtopnm /usr/local/netpbm
cp -p pngtopnm.1 pnmtopng.1 /usr/local/man/man1

b)  giftool
cd /usr/local/tempjkl
http://www.the-labs.com/GIFTool/giftool.tar.Z
wget http://www.the-labs.com/GIFTool/giftool.tar.Z
mkdir giftool
cd giftool
gtar Zxvf ../giftool.tar.Z
emacs Makefile
added :
CC=gcc

make
cp giftool /usr/local/bin


c) giftrans

cd /usr/local/tempjkl
mkdir giftrans
cd giftrans
wget http://ftp.sunet.se/ftp/pub/www/utilities/www-tools_uni-karlsruhe/giftrans/giftrans.1
wget http://ftp.sunet.se/ftp/pub/www/utilities/www-tools_uni-karlsruhe/giftrans/giftrans.c
gcc -o giftrans giftrans.c
cp giftrans /usr/local/bin
cp giftrans.1 /usr/local/man/man1


I went to:

   http://saftsack.fs.uni-bayreuth.de/~latex2ht/

First, clicked on "Documentation"
Here are some pointers to LaTeX2HTML documentation: 

   http://www-texdev.mpce.mq.edu.au/l2h/docs/manual/ 
   The official manual provided by the primary LATEX2HTML author, Ross Moore 

   http://www.erdw.ethz.ch/~bonk/l2h/l2h-note.html 
   Installation hints for the OS/2 platform, courtesty of Uli Wortmann 

Clicked on: http://www-texdev.mpce.mq.edu.au/l2h/docs/manual/
and then on "A Postscript version available" (which is:
http://www-texdev.mpce.mq.edu.au/l2h/docs/manual.ps.gz)
and downloaded it. Keep it, and print it later. The installation
instructions in the PostScript manual do not refer to the version
which you have, so you do not have to read it right away.

Then I revisited the page:
http://saftsack.fs.uni-bayreuth.de/~latex2ht/
and clicked on "Download", which got me to:
http://saftsack.fs.uni-bayreuth.de/~latex2ht/current/
And chosen the latest file dated: 
   latex2html-99.2beta6.tar.gz   14-Apr-2000 07:15   1.0M  
i.e., the URL ls
http://saftsack.fs.uni-bayreuth.de/~latex2ht/current/latex2html-99.2beta6.tar.gz

I am providing these two files here

manual.ps.gz
latex2html-99.2beta6.tar.gz

but check the original sites above, since they may have some later version.

I copied the manual.ps.gz and latex2html-99.2beta6.tar.gz 
/usr/local/tempjkl directory


I then unpacked the tar archive:
gtar zxvf latex2html-99.2beta6.tar.gz


I carefully read the INSTALL file:
/usr/local/tempjkl/latex2html-99.2beta6/INSTALL

then, I did 
 ./configure --help
and checked if I can find all programs xxxxx pointed out by --with-xxxxx=PATH
I decided to skip giftool -- its use is too restrictive.

In my case, my PATH was:
/sbin:/usr/sbin:/usr/bin:/usr/ccs/bin:/etc:/usr/local/bin:/usr/ucb:\
/usr/local/bin:/usr/local/teTeX/bin:/bin:/usr/openwin/bin:/usr/local/netpbm


which gs
   /usr/local/bin/gs
which dvips
   /usr/local/teTeX/bin/dvips
which latex
   /usr/local/teTeX/bin/latex
which pnmcrop
/usr/local/netpbm/pnmcrop
which tex
   /usr/local/teTeX/bin/tex
which initex
/usr/local/teTeX/bin/initex
which kpsewhich
/usr/local/teTeX/bin/kpsewhich
which mktexlsr
/usr/local/teTeX/bin/mktexlsr
which pnmflip
/usr/local/netpbm/pnmflip
which ppmquant
/usr/local/netpbm/ppmquant
which  pnmfile
/usr/local/netpbm/pnmfile
which pnmcat
/usr/local/netpbm/pnmcat
which pbmmake
/usr/local/netpbm/pbmmake
which ppmtogif
/usr/local/netpbm/ppmtogif
which pnmtopng
/usr/local/netpbm/pnmtopng
which giftrans
/usr/local/bin/giftrans

cd /usr/local/tempjkl/latex2html-99.2beta6
./configure --prefix=/usr/local/latex2html 

./configure --with-giftrans=/usr/local/bin/giftrans \
            --prefix=/usr/local/latex2html

It will place latex2html in /usr/local/latex2html 

make

make check

cd /usr/local/tempjkl/latex2html-99.2beta6

Edited file l2hconf.pm and changed LOCAL_ICONS from 0 to 1, i.e., to
$LOCAL_ICONS = 1;
p
cd /usr/local/tempjkl/latex2html-99.2beta6

make install


testing...
cd /usr/local/tempjkl/latex2html-99.2beta6/example

PATH=${PATH}:/usr/local/latex2html/bin 
export PATH
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/local/lib
# added by jkl
  $p = $ENV{'LD_LIBRARY_PATH'} . ':/usr/local/lib';
  $ENV{'LD_LIBRARY_PATH'} = $p;

setenv PATH /usr/local/bin:/usr/bin::/usr/local/teTeX/bin:/home/jkl/bin:/usr/local/latex2html/bin:/usr/local/netpbm
 latex2html -image_type gif -transparent basis




[][][][][]
Installing latex2html on Sparc/Solaris

I needed to install the GNUmake for solaris/sparc since my was dated.
http://metalab.unc.edu/pub/packages/solaris/sparc/GNUmake.3.78.1.SPARC.32bit.Solaris.7.pkg.tgz


cd /usr/local/uploads
wget http://metalab.unc.edu/pub/packages/solaris/sparc/GNUmake.3.78.1.SPARC.32bit.Solaris.7.pkg.tgz

gtar zxvf GNUmake.3.78.1.SPARC.32bit.Solaris.7.pkg.tgz      
  # note I did not do any cd here
pkgadd -d`pwd` GNUmake    




before I could install netpbm, I had to install:
JPEG/JFIF library from the Independent JPEG Group (IJG) (http://www.ijg.org).
The software is available from: ftp://ftp.uu.net/graphics/jpeg
I downloaded file: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
cd /usr/local/netpbm-8.4
wget ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
Then you need the zlib compression libaray: available from
To build or use pnmtopng and pngtopnm, you need the zlib compression
library and the png library (libpng).  You can get zlib from
ftp://quest.jpl.nasa.gov/pub/zlib or
ftp://metalab.unc.edu/pub/Linux/libs.  You can get libpng from
ftp://ftp.au.netbsd.org/pub/NetBSD/packages/distfiles.


1) put the jpegsrc.v6b.tar.gz in /usr/local/netpbm-8.4
   gtar zxvf jpegsrc.v6b.tar.gz
   cd /usr/local/netpbm-8.4/jpeg-6b
   followed instructions from install.doc
        ./configure --prefix /usr/local \
                    --enable-shared \
                    --enable-static \
                    CC='gcc' 
        make
        make test
If that doesn't complain, do
        make install


2) placed zlib-1.1.3.tar.gz in  /usr/local/netpbm-8.4
   (home page for zlib is at: http://www.cdrom.com/pub/infozip/zlib/)
   cd /usr/local/netpbm-8.4
   wget  ftp://ftp.uu.net/graphics/png/src/zlib-1.1.3.tar.gz
   gtar zxvf zlib-1.1.3.tar.gz
   cd /usr/local/netpbm-8.4/zlib-1.1.3
   ./configure
   make 
   make test
   make install

   which installs static zlib in /usr/local/lib

   ./configure --shared
   make 
   make test
   make install

   which creates the shared library version

3)You can get png library libpng from 
  ftp://ftp.au.netbsd.org/pub/NetBSD/packages/distfiles.
  I got it from http://www.cdrom.com/pub/png/libpng.html

  cd /usr/local/netpbm-8.4
  wget ftp://ftp.cdrom.com/pub/png/src/libpng-1.0.6.tar.gz
  gtar zxvf libpng-1.0.6.tar.gz
  cd libpng-1.0.6  
  cp scripts/makefile.std makefile    (note, I did not copy makefile.solaris)
        Looked at it and I liked the defaults (gcc and /usr/local).
  make
  make test
  make install
  



First, you need a netpbm image conversion library installed (it is
usually not installed by default on Solaris). You need version at least
netpbm-1mar1994.p1.tar.gz  (i.e, with the patch 1). I have seen it at:
http://kaupp.chemie.uni-oldenburg.de/~ftp/unix/graphics/libs/netpbm-1mar94.p1.tar.gz
http://riksun.riken.go.jp/archives/X11/contrib/graphics/netpbm-8.2.tgz
http://riksun.riken.go.jp/archives/X11/contrib/graphics/netpbm-1mar1994.tar.gz
ftp://ftp.x.org/R5contrib/netpbm-1mar1994.tar.gz

However, the netpbm-1mar1994.p1.tar.gz is unsupported since 1995.
I found that the project was recently revived and the new updated netpbm
is available at

 ftp://ftp.metalab.unc.edu/pub/Linux/apps/graphics/convert/netpbm-8.4.tgz

I installed this version as follows.
mkdir /usr/local/netpbm-8.4
cd /usr/local/netpbm-8.4
wget ftp://ftp.metalab.unc.edu/pub/Linux/apps/graphics/convert/netpbm-8.4.tgz

gtar zxvf netpbm-8.4.tgz

/usr/local/netpbm-8.4/netpbm-8.4
mv Makefile Makfile.orig 
cp Makefile.config Makefile
edited Makefile and added close to top:

SRCDIR=/usr.local/netpbm-8.4/netpbm-8.4

Changed:
# JPEGLIB_DIR = /usr/lib/jpeg
JPEGLIB_DIR = /usr/local/lib
# JPEGHDR_DIR = /usr/include/jpeg
JPEGHDR_DIR = /usr/local/include
PNGLIB_DIR = /usr/local/lib
PNGHDR_DIR = /usr/local/include

Left INSTALL_PREFIX = /usr/local/netpbm unchanged since it would clutter
/usr/local/bin (many small utilities).

[heechee]# PATH=/usr/local/bin:$PATH
[heechee]# export PATH
---------------------
mkdir /usr/local/netpbm

cp SMakefile Makefile
emacs Makefile

LDFLAGS   -> LDFLAGS =
# INSTALLBINARIES = Laertes:CCode/netpbm-exec
INSTALLBINARIES = /usr/local/netpbm
# INSTALLMANUALS1 =     sys:netpbm-man/man1
INSTALLMANUALS1 =       /usr/local/man/man1
# INSTALLMANUALS3 =     sys:netpbm-man/man3
INSTALLMANUALS3 =       /usr/local/man/man3
#INSTALLMANUALS5 =      sys:netpbm-man/man5
INSTALLMANUALS5 =       /usr/local/man/man5
# MAKE =                smake
MAKE =          gmake



=====================================
wget ftp://ftp.x.org/R5contrib/netpbm-1mar1994.tar.gz



gtar zxvf netpbm-1mar1994.tar.gz
cd /usr/local/netpbm-8.4/netpbm
cp Pbmplus.tmpl Pbmplus.tmpl.default
emacs Pbmplus.tmpl


#ifndef InstallLibraries
#define InstallLibraries YES
#endif
#ifndef InstallIncludes
#define InstallIncludes  YES
#endif
        The usual X11 sequence of xmkmf, make Makefiles, make depend, then
          make should work. If you have the TIFF libraries, the second step
          should be "make SUBDIRS='./pbm ./pgm ./ppm ./pnm' Makefiles".
        When you're happy that things compiled ok, make install and
pbmplus.h 

#define SYSV
making Makefiles in ./libtiff...
        mv Makefile Makefile.bak
making Makefiles in ./pbm...
/bin/sh: ./pbm: does not exist
make: [Makefiles] Error 1 (ignored)


        Edit the top-level Makefile, find each line with the string
          "CONFIGURE", and follow the directions for setting configuration
          options.
        Likewise edit pbmplus.h.
        If you are using gnu make, you have to edit *all* the Makefiles
          and remove all the imake stuff at the ends, otherwise gnu make
          will overwrite the Makefiles.
        Make.
        When you're happy that things compiled ok, make install.

============================

Another hint:http://www.math.is.tohoku.ac.jp/~ishige/memo/install/index-j.html


       BL\E* (B 
       B>/$/$H$b!$ (BLaTeX2HTMLF    
       netpbm-1mar1994.p1.tar.gz 
       B%$%s%9%H!<%k (B 

       # gtar zxvf netpbm-1mar1994.p1.tar.gz
       # cd netpbm-1mar94.p1
       Pbmplus.tmpl        BINDIR = /usr/local/bin/pbmplus
        MANDIR = /usr/local/man
       # xmkmf
       libtiff pbm pgm pnm ppm subdirectory B$K$*$$$F (B
        # xmkmf
        Makefile B$NJT=8 (B
         PBMDIR = ../pbm
         PGMDIR = ../pgm
         PPMDIR = ../ppm
         PNMDIR = ../pnm
         TIFFDIR = ../libtiff
       # make 
       # make install
       # make install.man
              ))) 0$+$9$N$KI,MW$J%i%$%V%i%j! ))

Then







Modified: Mon Apr 17 12:54:55 2000 GMT
Page accessed 15422 times since Wed Apr 19 18:12:31 2000 GMT