Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Compiling Command Line Apps... ex: teTex

Compiling Command Line Apps... ex: teTex
Thread Tools
Junior Member
Join Date: Oct 2000
Status: Offline
Reply With Quote
Oct 8, 2000, 01:55 PM
 
I'm trying to get pdfTex (or teTex) built under OS X PB1..

The pdfTex src includes a "configure" shell script which generates the following output:
-------------------------------------------
creating cache ./config.cache
checking whether make sets ${MAKE}... yes
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc ) works... yes
checking whether the C compiler (cc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking host system type... configure: error: can not guess host type; you must specify one
-------------------------------------------

I'm sure someone has run into this problem (in bold) already.. Any suggestions on which files I need to edit to specify the host type?

Thanks;
Jeff
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Oct 9, 2000, 09:34 AM
 
The problem comes from the fact that OSX doesn't set a $HOST environment variable (I don't know why, but it doesn't). What you have to do, therefore, is modify your configure call a bit, to:

./configure --host=powerpc-apple-rhapsody10.0

That seems to work for Mozilla and everything related to it, at any rate (well, Fizzilla still won't build as Carbon/Mach, but the configuration works anyway, and the libs compile fine).
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
knobby  (op)
Junior Member
Join Date: Oct 2000
Status: Offline
Reply With Quote
Oct 9, 2000, 12:10 PM
 
Thanks..

I ran the configure script using the suggested call, and had no serious problems (I was missing a library, but the config script gave me the ftp address fo rthe files I needed)..

Then I ran the resulting make file, only to hit another error.. The make file calls "/usr/bin/ld -lcrt0.o" and gets an error message stating that crt0.o can't be found.. I guess, I'll have to poke around and do a little reading..

Thanks again..
     
Mac Enthusiast
Join Date: Oct 2000
Status: Offline
Reply With Quote
Oct 9, 2000, 12:11 PM
 
Obviously, you could solve the problem, but unless you really want to compile it there already is a fully compiled TeX. I can't remember where but it's described in the manuals of TexShop, which can be found easily.
     
knobby  (op)
Junior Member
Join Date: Oct 2000
Status: Offline
Reply With Quote
Oct 9, 2000, 04:00 PM
 
I hadn't heard of TeXShop before.. I just took a look at the TeXShop page, and I'll give it a try. Thanks.

Honestly, I was just trying to learn a little more about BSD and what it takes to build an app from the available source code.. TeX just happened to be something I could see an immediate use for..
     
Mac Enthusiast
Join Date: Oct 2000
Status: Offline
Reply With Quote
Oct 9, 2000, 05:18 PM
 
Yeah, I did that too, but it was pForth I tried to compile (and did, in the end), with some help from its author and the usual trial-and-error procedure. Good experience.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:41 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2