TeX Live and MacTeXInstallation in 'home' Directory on Ubuntu

Information and discussion about TeX Live distribution for all platforms (Windows, Linux, Mac OS X) and the related MacTeX: installing, updating, configuring
Post Reply
greenie
Posts: 7
Joined: Sun Jul 17, 2011 9:48 pm

Installation in 'home' Directory on Ubuntu

Post by greenie »

Hi,

After having texlive installed through ubuntu package manager and breaking my head over stupid things that just needed a package update, I decided to manually install texlive.

I installed texlive under /home/texlive/ but now I'm wondering if this might cause problems as it's not in a usr folder (/home/name/...)

Will this cause a problem ?
Can I just move the folder and change the path,manpath,... accordingly ?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Installation in 'home' Directory on Ubuntu

Post by localghost »

greenie wrote:[…] Will this cause a problem ? […]
I guess you will find that out at the latest when trying to use it.
greenie wrote:[…] Can I just move the folder and change the path,manpath,... accordingly ?
Just try. An installation in the standard path would have been smarter.
greenie
Posts: 7
Joined: Sun Jul 17, 2011 9:48 pm

Re: Installation in 'home' Directory on Ubuntu

Post by greenie »

Ye I know that would've been smarter :)
But when installing ubuntu I read it was smarter to partition your usr and usr/local in seperate partitions, and i seemingly ran out of space with my stock texlive :D

For now I can't seem to run latex, will try a reboot (just logged out after editing path to .profile)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Installation in 'home' Directory on Ubuntu

Post by localghost »

greenie wrote:[…] But when installing ubuntu I read it was smarter to partition your usr and usr/local in seperate partitions, and i seemingly ran out of space with my stock texlive […]
Off course you can choose another partition for the mount point »/local«. But you should do this before installing something like TeX Live.
greenie
Posts: 7
Joined: Sun Jul 17, 2011 9:48 pm

Re: Installation in 'home' Directory on Ubuntu

Post by greenie »

k so i can seemingly run latex but it gives report.cls missing
I thought this was installed in the stock package ?

edit: I'll reinstall the texlive-full package from ubuntu (2009)
and give this another try when i'm not actually writing someting in latex :D

Thank you for your time :)
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Installation in 'home' Directory on Ubuntu

Post by frabjous »

Most likely, by moving things, the information in your texmf.cnf is no longer right, so it's looking for things in the wrong places. Read the comments at

/[wherever]/texlive/2010/texmf/web2c/texmf.cnf

or wherever you moved it, and then make the changes to:

/[wherever]/texlive/2010/texmf.cnf

If you have a good connection, though, you could reinstall. The Ubuntu packages are very out of date, however, so I'd reinstall from CTAN if I were you. If you're not in a hurry you might wait for TL 2011, however.
greenie
Posts: 7
Joined: Sun Jul 17, 2011 9:48 pm

Re: Installation in 'home' Directory on Ubuntu

Post by greenie »

thanks, i'll wait for 2011 to reinstall
just writing an internship report in latex to prepare for writing my thesis in it :)

I'll delay the install till after this report and before the new academic year :D


just to be prepared, which file do i need to edit for the path, etc ?
/etc/environment
or
/home/.../.profile
?

as I find both in guides and seem to be at loss to what to do with the other paths (other than the 'path' itself)
greenie
Posts: 7
Joined: Sun Jul 17, 2011 9:48 pm

Re: Installation in 'home' Directory on Ubuntu

Post by greenie »

So i'm in the middle of installing texlive 2011 on home/usrname/texlive/2011/ now

What directory does ubuntu install texlive 2009 in and how do i completely remove it ?
(just rm -rf /usr/... ?)
I already let synaptic uninstall texlive-full, but it seems my space hasn't increased.

I'm also still wondering what to do about the path and other path's, as stated in my previous post. As I'm reading two different options (see previous post)
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Installation in 'home' Directory on Ubuntu

Post by meho_r »

1. IMHO, installing TL in /home dir (provided /home is on a separate partition) might be a smarter move than installing in /usr or /usr/local (hint, reinstallation of OS doesn't affect TL installation). Another advantage is that you can have more editions of TL installed at the same time. E.g., I have TL2009 and TL2010 in my /home dir, and path set in ~/.profile to ~/TeXLive dir: simply renaming TL2009 or TL2010 to "TeXLive" automatically uses that edition for compiling.

2. You don't have to remove TL2009 in order to use TL2010 or TL2011 (especially not with rm -rf command!). Just leave it there and set everything to use TL2010/TL2011. If space isn't an issue, leaving TL2009 installed will solve potential LaTeX editors installation issue (most editors will try to install TL from repos since TL is one of dependencies). However, location of TL2009 can be checked in Synaptic: right click on one of TL packages (e.g., "texlive") > Properties > Installed Files. Also check /var/cache/apt/archives for downloaded .deb packages; those do not get removed automatically.

3. Adding TL path to your ~/.profile file should be enough for all editors etc. to pick up correct binaries. Here's an example of the path added at the end of ~/.profile:

Code: Select all

PATH=/home/mehor/TeXLive/bin/x86_64-linux:/home/mehor/bin:/usr/local/bin:/usr/bin:/bin:/usr/games
Note that you'd probably have to log off before changes take effect.
Post Reply