Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Sep 10, 2007, 03:44 PM   #1
ScKaSx
macrumors regular
 
Join Date: Feb 2006
Latex on Terminal Mac OS 10.4.9

Hi All,

I used to have a PowerPC running 10.3.9 which I had running Latex from the terminal quite successfully. I had commands latex, pdf2latex, etc.

I recently upgraded to a MacBook Pro now running 10.4.9 sporting the Intel Chip. I am trying to gettiing OOoLatex and latex to work from the command line. However, $PATH cannot locate latex or pdf2latex commands. I have Fink and have tried installing the two packages: tetex and tetex-texmf, all to no avail. I was wondering if anyone has had this problem or knows how to solve it. Thanks much.

Cheers,
ScKaSx
ScKaSx is offline   0 Reply With Quote
Old Sep 10, 2007, 03:49 PM   #2
ScKaSx
Thread Starter
macrumors regular
 
Join Date: Feb 2006
Additional

Note this problem originated when I was trying to get OOoLatex to work from the command line following the steps on this site:
http://ooolatex.sourceforge.net/
Any insight would be appreciated!

Cheers,
ScKaSx
ScKaSx is offline   0 Reply With Quote
Old Sep 10, 2007, 03:56 PM   #3
Cromulent
macrumors 603
 
Cromulent's Avatar
 
Join Date: Oct 2006
Location: The Land of Hope and Glory
Seems pretty simple. Download the binary and run ./install.sh from the terminal.
__________________
Neural Advance - Mac OS X, UNIX and Windows Development
Last.fm Profile | Extreme Metal Reviews
MP 4x 2.66Ghz Xeons / 6GB RAM / 640GB + 500GB + 750GB + 1TB HDDs / ATI Radeon 4870 / iPad 3
Cromulent is offline   0 Reply With Quote
Old Sep 10, 2007, 07:57 PM   #4
jtalerico
macrumors 6502
 
Join Date: Nov 2005
Quote:
Originally Posted by Cromulent View Post
Seems pretty simple. Download the binary and run ./install.sh from the terminal.
Helpful.. Really.. lol


Anyway... in the terminal

> echo $PATH

> locate pdflatex

Find where pdflatex is located.. and add it to your $PATH. in your .bashrc or whatever shell you are using.

Since I am still on a PPC mine is located..
/usr/local/teTeX/bin/powerpc-apple-darwin-current

but there is a i386 version one directory down...
drwxr-xr-x 259 root wheel 8806 May 20 17:45 i386-apple-darwin8.6.1
__________________
iPhone4
17" MacBook Pro i7 500GB SSD
MacPro 2011
jtalerico is offline   0 Reply With Quote
Old Sep 10, 2007, 08:51 PM   #5
ScKaSx
Thread Starter
macrumors regular
 
Join Date: Feb 2006
thanks for the earlier posts

however... I don't even have pdflatex and latex to locate in my directory anywhere. And yes I suppose I could download the binary and install it but I would much prefer to go through fink. I guess my question is what should I ask fink to install for latex functionality (fink install ?). Thanks again,

Cheers,
ScKaSx
ScKaSx is offline   0 Reply With Quote
Old Sep 11, 2007, 06:38 AM   #6
jtalerico
macrumors 6502
 
Join Date: Nov 2005
So you are telling me the command "latex" is located no where?

Did you try updating the locate db? If you have installed latex i am sure it is installed somewhere.

Anyway, I installed latex from binary... What is wrong without using Fink?
__________________
iPhone4
17" MacBook Pro i7 500GB SSD
MacPro 2011
jtalerico is offline   0 Reply With Quote
Old Sep 11, 2007, 12:38 PM   #7
ChrisA
macrumors G4
 
Join Date: Jan 2006
Location: Redondo Beach, California
So you want to know where Fink put the executable so you can add it to PATH? Try Spotlight. It'll find it for you.
ChrisA is offline   0 Reply With Quote
Old Sep 11, 2007, 12:42 PM   #8
AlmostThere
macrumors 6502a
 
Join Date: Feb 2005
Location: The royal throne of kings, the sceptred isle, the other Eden, the fortress built
I used i-installer on my PowerBook, which has worked perfectly
http://ii2.sourceforge.net/

Apparently it is now bundled in MacTex (including intel binaries)
http://www.tug.org/mactex/
__________________
Join the army of the dead: http://www.urbandead.com
AlmostThere is offline   0 Reply With Quote
Old Sep 11, 2007, 01:03 PM   #9
ScKaSx
Thread Starter
macrumors regular
 
Join Date: Feb 2006
Hi Guys,

thanks for all the help. I'm still working on the solution.

I think I wasn't clear enough, but I thought by using "fink install tetex" it would install all the necessary latex files for me. However there have been two problems:

1) Fink fails to compile the gd package bundled in tetex with the following error:
"Failed: phase compiling: gd2-2.0.33-3 failed"
Since it stops there it fails to compile the following:
gd2-shlibs
libkpathsea4
libkpathsea4-shlibs
t1lib5
t1lib5-shlibs
t1lib5-x11-shlibs
tetex-base
texi2html
texinfo
*I've tried installing these files individually through fink and they give the same error message that it fails to compile. Anyone had this problem before?

2) If the latex and other associated latex commands are in one of those packages then I don't even have latex installed. Or I need to "fink install ?" something else to get it. The most obvious command that came to me was "fink install latex" but naturally that didn't work.

Anyways, thanks again for all your help, I'll keep plugging away at it or just try the MacTex install. I guess I feel like I did this before with fink so I should be able to do it again.

Cheers,
ScKaSx

Last edited by ScKaSx; Sep 11, 2007 at 01:09 PM.
ScKaSx is offline   0 Reply With Quote
Old Sep 11, 2007, 02:15 PM   #10
AlmostThere
macrumors 6502a
 
Join Date: Feb 2005
Location: The royal throne of kings, the sceptred isle, the other Eden, the fortress built
Doesn't fink use apt-get install tetex for pre-compiled binaries?

May need a preceding 'sudo'
__________________
Join the army of the dead: http://www.urbandead.com
AlmostThere is offline   0 Reply With Quote
Old Sep 11, 2007, 02:55 PM   #11
ScKaSx
Thread Starter
macrumors regular
 
Join Date: Feb 2006
okay so I tried "sudo apt-get install tetex"

and I get the following error:
"Sorry, tetex is already the newest version.
You might want to run `apt-get -f install' to correct these:
Sorry, but the following packages have unmet dependencies:
tetex-base: Depends: t1lib5-shlibs but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution)."

Any clue what this means?

Cheers,
ScKaSx
ScKaSx is offline   0 Reply With Quote
Old Sep 11, 2007, 04:24 PM   #12
AlmostThere
macrumors 6502a
 
Join Date: Feb 2005
Location: The royal throne of kings, the sceptred isle, the other Eden, the fortress built
Have you got X11.app installed (and importantly, installed before you installed fink)?

It should be in /Applications/Utilities
__________________
Join the army of the dead: http://www.urbandead.com
AlmostThere is offline   0 Reply With Quote
Old Sep 11, 2007, 05:36 PM   #13
ScKaSx
Thread Starter
macrumors regular
 
Join Date: Feb 2006
Yes I do, and it was installed before Fink

Cheers,
ScKaSx
ScKaSx is offline   0 Reply With Quote
Old Sep 11, 2007, 08:42 PM   #14
mward333
macrumors 6502a
 
mward333's Avatar
 
Join Date: Jan 2004
Just to offer my two cents here: I must put in a vote for trying MacTeX:

http://www.tug.org/mactex/

I've used fink and also the TeXLive distribution itself (before MacTeX) for many years, but I finally gave up on both of those....

The MacTeX installation of LaTeX has everything that a Mac user could want in a TeX/LaTeX distribution. I just had to recommend this to you. I type absolutely everything in LaTeX, and MacTeX is the installation that I rely upon. Easy, fast, worry-free..... Life is too short to do anything different. Give it a try!

Good luck to you. Again, sorry for just inserting my two cents here!
__________________
work: 8-core 3 GHz Mac Pro, three 30-inch Apple displays, 16 GB RAM, 4 TB disks, 2 Superdrives
mward333 is offline   0 Reply With Quote
Old Sep 11, 2007, 08:45 PM   #15
Eidorian
macrumors Penryn
 
Eidorian's Avatar
 
Join Date: Mar 2005
Location: Cuidad de México
Send a message via AIM to Eidorian
And if you're going to go the MacTeX route I suggest this mirror.

It's fast.
__________________
Core i5 750 / 16 GB RAM / 500 GB SSD / GTX 970 / Windows 8.1
13" Retina MacBook Pro
Eidorian is offline   0 Reply With Quote
Old Apr 24, 2009, 04:47 PM   #16
andes200
macrumors newbie
 
Join Date: Apr 2009
Latex on Terminal Mac OS 10.4.9

make sure to restart your shell, so that path is updated to wherever your latex binaries are.
andes200 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Is there a good latex for iPad? hajime iPad Apps 0 Nov 15, 2013 08:14 AM
LaTeX editor for Mac / any decent ones? Starfox Mac Applications and Mac App Store 8 Nov 9, 2013 10:46 AM
Latex wysiwyg? zombrero Mac Applications and Mac App Store 1 Feb 3, 2013 12:52 AM
problem with LaTex pj123 OS X 10.8 Mountain Lion 5 Jan 25, 2013 03:57 PM
New to LaTeX - Like it so far. BentwoodBlue Mac Applications and Mac App Store 2 Sep 30, 2012 06:14 PM

Forum Jump

All times are GMT -5. The time now is 11:18 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC