« Sometimes yahoo is better | View contents of Zip/Jar files using firefox »

Installing latex on hostmonster

In continuation with my previous post (Some times yahoo is better), I followed the steps on how to install latex/tetex on my web host from here (You can also get the Installation steps from QuickInstall file in source code or access the same file from tug.org).

But the problem is that on web hosts like hostmonster you won’t have root access so you will need to modify some of the things and do a local install in your home directory.

For that you can specify –prefix accordingly while doing ./configure. So you need to do:

./configure --prefix=/home/username/local/teTeX
replace username with your account name

This step ended without any errors But while I was doing make world, the process exited with following error:

/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXt.a when searching for -lXt
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so when searching for -lX11

I found this thread, where they were discussing similar error and from what I got it was due to machine platform. So I checked my host system information with

uname -a

from there I got x86_64 x86_64 x86_64 GNU/Linux which meant its a 64 bit architecture.

So after some tweaking to what I found here(CBLFS: TeTeX) to make it work for local install, you can do following to compile the package:

CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 \
./configure --prefix=/home/username/local/teTeX/ \
–enable-shared \
–without-texinfo \
–with-x=no \
–with-system-ncurses \
–with-system-zlib &&
[ -f texk/libtool ] && sed -i “/sys_lib_search_path_spec=/s:/lib:&64:g” texk/libtool;

And then you can do

make world
make all install

You can then add generated executable to your system path by:

PATH=/home/username/local/teTeX/bin/x86_64-unknown-linux-gnu:$PATH;
export PATH

You can also configure your installation using:

texconfig

And its DONE :) Find all steps followed by me here
So if you want to install on 32 bit config the method at Microcontroller programming Blog should work fine.
Also read: The Tetex HowTo

You can download required packages using wget on shell account at hostmonster from ctan.org

Related Post: Latex Beamer

Comments

9 Responses to “Installing latex on hostmonster”

  1. Wordpress plugins you should install : Burad’s Blog on May 22nd, 2008 6:35 pm

    […] also useful. It generates PNG images from inline $LaTeX$ code in your posts and comments. I have installed latex on my hosting service( hostmonster) and still working on making simliar plugins(LatexRender) to […]

  2. Latex on wordpress blog : Burad’s Blog on May 25th, 2008 9:16 am

    […] Some time back I came to know that wordpress blogs hosted at wordpress.com supports latex. But no such default functionality for self hosted wordpress blogs. But there are plugins (latexrender, wp-latex) which can facilitate similar things. But for these to work you will need to install latex on your hosting account. (I have intalled latex on my hostmonster account some time back.). […]

  3. Host on June 5th, 2008 3:41 pm

    I searched for \’Host Monster\’ in google and found this your post (\’lling latex on hostmonster : Burad’s Blog\’) in search results. Not very relevant result, but still interesting to read.

  4. Yahoo search is improving : Burad’s Blog on June 20th, 2008 6:37 pm

    […] yahoo is better is better than google in providing search results when I was searching for Installing latex on hostmonster. And now with its open search platform SearchMonkey its trying to close in to Google. SearchMonkey […]

  5. Briki on July 19th, 2008 5:26 pm

    You will have better luck without the trailing /
    after teTeX:

    ./configure –prefix=/home/username/local/teTeX/ \

    see:

    http://www.mediawiki.org/wiki/Mediawiki_and_LaTeX_on_a_host_with_shell_access

  6. burad on July 21st, 2008 7:58 am

    hmmm.. but it worked ;)
    for me trailing / didn’t made any difference

  7. ollie on October 21st, 2008 7:34 pm

    Hi
    Thanks for the info.
    I’m not a computer person, and don’t understand where you enter the commands to do the installation.
    Could you please let me know?

    I’m with Hostmonster, have SSH access and use http://FTP.

  8. burad on October 28th, 2008 4:39 am

    If you have ssh access, then you can ssh to hostmonster server (whose address you can see on left of your hostmonster control panel)using putty or any ssh client. Then you can issue above commands there.

  9. Twisting Mind » First of all, LaTeX on January 2nd, 2009 4:14 pm

    […] 64-bit linux:Installing LaTeX on Hostmonster […]

Leave a Reply