Installation on powerpc/Linux

Jörg Hagmann <[email protected]>
Newsgroups gmane.comp.tex.tetex.general
Message-ID <[email protected]>
Dear all,

I would like to install teTeX on a G4 Powermac running Linux 
(Mandrakelinux 10.1). I already tried the TexLive distribution, but 
there are no binaries for this platform and compiling failed. I then 
switched to teTex, hoping for better luck. But building from source 
again didn't work.
1. After ./configure, I noticed there was no /bin directory with a 
platform (I had of course installed the two packages "tetex-texmf" and 
"tetex-texmfsrc" as described in the installation instructions).

2. Running "make world" ended with the following error messages:

fontdef.o loadfont.o dvips.o tfmload.o download.o prescan.o scanpage.o 
skippage.o output.o scalewidth.o dosection.o dopage.o resident.o 
search.o unpack.o drawPS.o header.o repack.o virtualfont.o dpicheck.o 
finclude.o writet1.o pprescan.o papersiz.o color.o bbox.o hps.o 
t1part.o  ../kpathsea/libkpathsea.la -lm
gcc -o dvips dospecial.o dviinput.o emspecial.o fontdef.o loadfont.o 
dvips.o tfmload.o download.o prescan.o scanpage.o skippage.o output.o 
scalewidth.o dosection.o dopage.o resident.o search.o unpack.o drawPS.o 
header.o repack.o virtualfont.o dpicheck.o finclude.o writet1.o 
pprescan.o papersiz.o color.o bbox.o hps.o t1part.o  
../kpathsea/.libs/libkpathsea.a -lm
gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I./.. -DUNIX -DKPATHSEA 
-DNeedFunctionPrototypes -DSHIFTLOWCHARS  -g -O2  -c squeeze.c
gcc -o squeeze   squeeze.o
./squeeze <tex.lpro >t-tex.pro
mv t-tex.pro tex.pro
./squeeze <texps.lpro >t-texps.pro
mv t-texps.pro texps.pro
/bin/sh ./texc.script ./tex.lpro texc.lpro
./texc.script: line 7: ed: command not found
make[2]: *** [texc.lpro] Error 127
make[2]: Leaving directory `/usr/src/TeXtemp/tetex-src-3.0/texk/dvipsk'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/usr/src/TeXtemp/tetex-src-3.0/texk'
make: *** [all] Error 1

3. This is the makefile:

# Generated automatically from Makefile.in by configure.
# Makefile for teTeX distribution.

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 
USA.

srcdir = .

SHELL = /bin/sh

prefix = /usr/local/teTeX
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin/powerpc-unknown-linux-gnu
scriptdir = $(bindir)
texmf = ${prefix}/share/texmf
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644

NCURSESDIR=libs/ncurses
ZLIBDIR=libs/zlib
LIBPNGDIR=libs/libpng
LIBT1DIR=libs/t1lib
LIBTYPE1DIR=$(LIBT1DIR)/../type1
LIBXPDFDIR=libs/xpdf
GDDIR=libs/gd
FREETYPEDIR=libs/freetype

# Subdirectories that have makefiles
ESUBDIRS =  utils/texinfo utils/dialog utils/texi2html texk
LIBSDIRS = libs/gd libs/t1lib libs/type1 libs/xpdf libs/zlib 
libs/libpng libs/ncurses

# Subdirectories for which we want to run make (un)install; these are
# different for xdvik standalone distribution where we don't want to
# install kpathsea and friends by default.
INSTDIRS = $(ESUBDIRS)

default: all
install: all
	for dir in $(INSTDIRS); do \
	   echo making $@ in $$dir; \
	     (cd $$dir && PATH=$(scriptdir):$(bindir):$(PATH) \
                 $(MAKE) $@) || exit 1; \
	done
	if test -d $(texmf) && test -f $(srcdir)/release-tetex-src.txt; then \
	  $(INSTALL_DATA) $(srcdir)/release-tetex-src.txt $(texmf); \
	fi
#
# install-extra:
# temporary fix for missing links
	test -f texk/web2c/omegafonts/omfonts && \
	  cd texk/web2c/omegafonts; $(MAKE) install-links
	$(srcdir)/selfautofix "$(bindir)" "$(texmf)/web2c"
	- if test -f $(scriptdir)/mktexlsr; then \
	  TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
	    $(scriptdir)/mktexlsr; \
	else :; fi
	- if test -f $(scriptdir)/fmtutil-sys; then \
	  TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
	    $(scriptdir)/fmtutil-sys --all; \
	else :; fi
	- if test -f $(scriptdir)/texlinks; then \
	  TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
	    $(scriptdir)/texlinks; \
	else :; fi
	- if test -f $(scriptdir)/updmap-sys \
	  && TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
	       $(scriptdir)/kpsewhich --format='web2c files' updmap.cfg 
 >/dev/null; \
	then \
	  TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
	    $(scriptdir)/updmap-sys; \
	else :; fi

install-exec:
	for dir in $(INSTDIRS); do \
	   echo making $@ in $$dir; \
	   (cd $$dir && PATH=$(scriptdir):$(bindir):$(PATH) \
               $(MAKE) $@) || exit 1; \
	done
#
# install-exec-extra:
# temporary fix for missing links
	test -f texk/web2c/omegafonts/omfonts && \
	  cd texk/web2c/omegafonts; $(MAKE) install-links
	- if test -f $(scriptdir)/texlinks; then \
	  TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
	    $(scriptdir)/texlinks; \
	else :; fi

strip:

check:
	cd texk; TEXMF='{$(texmf),$(texmf)-dist}' TEXMFCNF=$(texmf)/web2c 
$(MAKE) $@

uninstall:
	for dir in $(INSTDIRS); do \
	  echo making $@ in $$dir; \
	  (cd $$dir && $(MAKE) $@) || exit 1; \
	done

Makefile: Makefile.in config.status
	$(SHELL) ./config.status

all: $(NCURSESDIR)/lib/libncurses.a $(ZLIBDIR)/libz.a 
$(LIBPNGDIR)/libpng.a $(LIBXPDFDIR)/xpdf/libxpdf.a 
$(LIBXPDFDIR)/goo/libGoo.a $(LIBXPDFDIR)/fofi/libfofi.a 
$(LIBT1DIR)/libt1.a $(LIBT1DIR)/../type1/libtype1.a $(GDDIR)/libgd.a
all clean mostlyclean:
	esubdirs="$(LIBSDIRS) $(ESUBDIRS)"; \
	  for dir in $$esubdirs; do \
	    echo making $@ in $$dir; \
	    (if test -f $$dir/Makefile; then cd $$dir && $(MAKE) $@; else 
true; fi) || exit 1; \
	  done

distclean: clean
	cleandirs="$(LIBSDIRS) $(ESUBDIRS)"; \
	  for dir in $$cleandirs; do \
	    echo making $@ in $$dir; \
	    (if test -f $$dir/Makefile; then cd $$dir && $(MAKE) $@; else 
true; fi) || exit 1; \
	  done
	rm -f Makefile *.status *.cache *.log dialogconfig.h TAGS
	rm -f libs/klibtool.config libs/config.log libs/config.status 
libs/config.cache
	rm -f utils/texinfo/info/funs.h utils/texinfo/info/doc.c 
utils/texinfo/info/key.c

tags TAGS:
	rm -f TAGS
	find . -name '*.[ch]' -print | xargs etags --append -o TAGS


realclean: distclean
world: all install
pdftex pdfetex pdfxtex:
	cd texk/web2c; $(MAKE) $@
	test -f texk/web2c/pdftex && ls -l texk/web2c/pdftex
	test -f texk/web2c/pdfetex && ls -l texk/web2c/pdfetex
	test -f texk/web2c/pdfxtex && ls -l texk/web2c/pdfxtex

$(NCURSESDIR)/lib/libncurses.a:
	cd $(NCURSESDIR); $(MAKE)
$(ZLIBDIR)/libz.a:
	cd $(ZLIBDIR); $(MAKE) libz.a
$(LIBPNGDIR)/libpng.a:
	cd $(LIBPNGDIR); $(MAKE) libpng.a
$(LIBT1DIR)/libt1.a:
	cd $(LIBT1DIR); $(MAKE) libt1.a
$(LIBTYPE1DIR)/libtype1.a:
	cd $(LIBTYPE1DIR); $(MAKE) libtype1.a
$(LIBXPDFDIR)/xpdf/libxpdf.a:
	cd $(LIBXPDFDIR)/xpdf; $(MAKE) libxpdf.a
$(LIBXPDFDIR)/goo/libGoo.a:
	cd $(LIBXPDFDIR)/goo; $(MAKE) libGoo.a
$(LIBXPDFDIR)/fofi/libfofi.a:
	cd $(LIBXPDFDIR)/fofi; $(MAKE) libfofi.a
$(GDDIR)/libgd.a:
	cd $(GDDIR); $(MAKE) libgd.a
$(FREETYPEDIR)/lib/.libs/libttf.a:
	cd $(FREETYPEDIR); $(MAKE)

# Prevent GNU make v3 from overflowing arg limit on SysV.
.NOEXPORT:

I am writing a textbook and decided to do that in Tex/Latex/Context. I 
would be thankful if somebody could help! Jorg.

PD Dr.med. Jörg Hagmann-Zanolari
Institute of Biochemistry and Genetics
DKBW, University of Basel
Mattenstrasse 28
CH-4058 Basel
Switzerland
Phone +41 (0)61 6953049
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.