Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ScKaSx

macrumors regular
Original poster
Feb 27, 2006
105
0
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

macrumors regular
Original poster
Feb 27, 2006
105
0
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
 

jtalerico

macrumors 6502
Nov 23, 2005
358
0
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
 

ScKaSx

macrumors regular
Original poster
Feb 27, 2006
105
0
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
 

jtalerico

macrumors 6502
Nov 23, 2005
358
0
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?
 

ScKaSx

macrumors regular
Original poster
Feb 27, 2006
105
0
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
 

ScKaSx

macrumors regular
Original poster
Feb 27, 2006
105
0
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
 

mward333

macrumors 6502a
Jan 24, 2004
574
33
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!
 

andes200

macrumors newbie
Apr 24, 2009
1
0
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.