Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
TeX Live Manual Install [v1.0]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Fri Jul 13, 2012 3:08 pm    Post subject: TeX Live Manual Install [v1.0] Reply with quote

The state of texlive in the portage tree is pretty piss poor. I've decided to use a manual installation of TeX Live in /use/local which is nice because it is also compatible with MacTeX.

To start out you will want to unemerge everything relatex to latex/texlive. Once that is complete create the follow ebuild in a local overlay an install it.

virtual/texlive-1.0.ebuild:
Code:
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="TeXLive virtual package for local installations."
HOMEPAGE="http://www.tug.org/texlive/"
KEYWORDS="~x86 ~amd64"
SLOT=0
PROVIDE="virtual/tex-base virtual/latex-base"


This will prevent other packages like kile from pulling in Gentoo's texlive packages.

Next, you will want to download http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz. Extract it and then run the install script install-tl as root.

Once the install is complete, create the following symlink:
Code:
ln -s /usr/local/texlive/2012/bin/x86_64-linux /usr/texbin

and add this new symlink to your path:
Code:
echo 'PATH="/usr/texbin"' > /etc/env.d/99texlive

This will make it easy to update paths for in your TeX based tools.
_________________
Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Fri Jul 13, 2012 3:36 pm    Post subject: Reply with quote

rmh3093,

please elaborate why you think that the state of texlive in portage is poor.
Why don't you improve the ebuild?
Back to top
View user's profile Send private message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Fri Jul 13, 2012 4:06 pm    Post subject: Reply with quote

Well the main reason I started going in this route was that I could not find a way to get Biber. However, I also don't like the monolithic meta packages. Is not clear how someone would update a specific module to a devel version with the current setup. I can't even tell what versions of modules the meta packages pull in. The whole setup is very, un-Gentoo.
_________________
Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Fri Jul 13, 2012 6:42 pm    Post subject: Reply with quote

Your last post contains several distinct points.
* You miss a module that seems to be part of TexLive.
This could be fixed by just including it.

* There is no way to choose a newer than current version of a module
* It's not transparent which version of a specific module is included in an ebuild
I believe the only way to change that is to cut the now existing ebuilds into even smaller pieces.
Those resulting ebuilds can then exist in a normal (stable and ~ version) and a cutting-edge version, which is (hard) masked.
The downside of this is of course quite a lot of ebuilds, which are even hard to maintain. Maybe this was the reason to not fragment further. The dev-texlive cathegory currently counts 84 packages.

You may want to talk to the maintainer of the LaTeX ebuild about your wishes.
Back to top
View user's profile Send private message
<3
Veteran
Veteran


Joined: 21 Oct 2004
Posts: 1081

PostPosted: Fri Jul 13, 2012 7:18 pm    Post subject: Reply with quote

I imagine that now with the just released 2012 version of Texlive will we see updated ebuilds soon. I do agree with the OP though I'd like to see individual ebuilds for each package instead of monolithic packages, but I do understand that Gentoo has limited resources.
Back to top
View user's profile Send private message
cruzki123
Apprentice
Apprentice


Joined: 16 May 2008
Posts: 262

PostPosted: Fri Jul 13, 2012 8:32 pm    Post subject: Reply with quote

<3 wrote:
I imagine that now with the just released 2012 version of Texlive will we see updated ebuilds soon. I do agree with the OP though I'd like to see individual ebuilds for each package instead of monolithic packages, but I do understand that Gentoo has limited resources.


just for the record, did you all known app-portage/g-ctan?¿?¿? I suppose that instaling texlive-core y texlive-basic and using g-ctan for the rest of packages you can have a similar setup as described.
Back to top
View user's profile Send private message
<3
Veteran
Veteran


Joined: 21 Oct 2004
Posts: 1081

PostPosted: Sat Jul 14, 2012 7:49 pm    Post subject: Reply with quote

Is there any documentation on g-ctan because I can't get it to work.
Back to top
View user's profile Send private message
cruzki123
Apprentice
Apprentice


Joined: 16 May 2008
Posts: 262

PostPosted: Sat Jul 14, 2012 10:25 pm    Post subject: Reply with quote

<3 wrote:
Is there any documentation on g-ctan because I can't get it to work.


My internet conection is rather bad now that I'm in the beach so I cannot search for it but I remember a page in gentoo-wiki or something similar :P

Anyway, it works for me doing the following:

Code:

configure g-ctan

cruzki@thor ~ # vi /etc/g-ctan/g-ctan.conf

download package database

cruzki@thor ~ # g-ctan -g
* Downloading package database ...
* Creating local file name database ... (this can take a while)

list all packeges

cruzki@thor ~ # g-ctan -l

install a package
cruzki@thor ~ # g-ctan -e xcite

* Creating ebuild for g-ctan/xcite ...

sed: no se puede leer : No existe el fichero o el directorio
>>> Creating Manifest for /usr/local/portage/overlay/g-ctan/xcite

* Installing g-ctan/xcite-23783 ...

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] g-ctan/xcite-23783::local-overlay  USE="-doc -source" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]


I hope it will help
Back to top
View user's profile Send private message
proteusx
Guru
Guru


Joined: 21 Jan 2008
Posts: 338

PostPosted: Wed Jul 25, 2012 2:39 am    Post subject: Reply with quote

I too was unhappy with texlive in portage mainly because I work a lot with
XeTeX which is a very active project with new features added regularly.
I finally gave up on texlive from portage when this bug 401763 happened.

I unmerged all texlive related ebuilds except dev-libs/kpathsea and installed
TeXlive from dvd into /usr/local/.
To prevent portage from pulling gentoo texlive packages, I created
/etc/portage/profile/package.provided with contents as shown below:
Code:

app-text/dvipdfmx-20110311
app-text/dvipng-1.14
app-text/jadetex-3.13-r3
app-text/texlive-2011
app-text/texlive-core-2011-r5
app-text/xdvipdfmx-0.7.8_p20110705
dev-tex/chktex-1.6.6
dev-tex/detex-2.8-r1
dev-tex/latex2html-2008-r1
dev-tex/xcolor-2.11
dev-texlive/texlive-basic-2011-r1
dev-texlive/texlive-documentation-base-2011
dev-texlive/texlive-fontsextra-2011
dev-texlive/texlive-fontsrecommended-2011
dev-texlive/texlive-fontutils-2011 
dev-texlive/texlive-genericextra-2011
dev-texlive/texlive-genericrecommended-2011
dev-texlive/texlive-latex-2011
dev-texlive/texlive-latexextra-2011-r2
dev-texlive/texlive-latexrecommended-2011
dev-texlive/texlive-metapost-2011
dev-texlive/texlive-pictures-2011
dev-texlive/texlive-science-2011
dev-texlive/texlive-texinfo-2011
dev-texlive/texlive-xetex-2011

Whenever such a dependency rears its ugly head it gets added to the above list.
Please note that list may include redundant entries.

Finally I set the texlive paths in file /etc/env.d/91texlive as shown below
Code:

PATH='/usr/local/texlive/2011/bin/i386-linux'
ROOTPATH='/usr/local/texlive/2011/bin/i386-linux'
MANPATH='/usr/local/texlive/2011/texmf/doc/man'
INFOPATH='/usr/local/texlive/2011/texmf/doc/info'


In this way portage and packages that depend on texlive components are happy
and I can now use tlmgr to be up to date with the TeXlive packages I need.

I did this last January and so far I had not had any problems with any dependencies,
portage or TeXlive.
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2489
Location: イタリアのロディで

PostPosted: Sun Jul 29, 2012 12:23 pm    Post subject: Re: TeX Live Manual Install [v1.0] Reply with quote

I won't use kile if install-tl installs TeXworks editor!
Is'n it enouth to follow streaming tips?

EDIT: I cant find TeXworks!
Do I have to emerge it?
Does it finds programs it needs?
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
proteusx
Guru
Guru


Joined: 21 Jan 2008
Posts: 338

PostPosted: Fri Aug 10, 2012 5:33 am    Post subject: Re: TeX Live Manual Install [v1.0] Reply with quote

bandreabis wrote:
I cant find TeXworks!
Do I have to emerge it?
Does it finds programs it needs?


The method I described above installs texworks in /usr/local/bin
However it requires some older libraries not available in gentoo:
Code:
libhunspell-1.2.so.0
libopenjpeg.so.2
libpoppler.so.7
libpoppler-qt4.so.3

You can find out what is missing with:
Code:
ldd /usr/local/bin/texworks

Although I do not use texworks I was curious to see if it works, so
I downloaded ready precompiled binaries for the missing libraries from the internet,
I copied them to /usr/local/lib/ and texworks worked normally.
Back to top
View user's profile Send private message
alexcortes
Apprentice
Apprentice


Joined: 18 Dec 2011
Posts: 205
Location: Rio de Janeiro, Brazil

PostPosted: Mon Aug 13, 2012 5:19 am    Post subject: Reply with quote

I prefer Gummi over anything for LaTeX editing.

Just my 2¢. :wink:
Back to top
View user's profile Send private message
proteusx
Guru
Guru


Joined: 21 Jan 2008
Posts: 338

PostPosted: Wed Aug 15, 2012 1:54 am    Post subject: Reply with quote

alexcortes wrote:
I prefer Gummi over anything for LaTeX editing.

Thanks for the tip.

I tried gummi to see if it works with my /usr/local TexLive installation.
It is definitely better looking than texworks.
However it lacks an encoding change option (texworks has it, and also it can detect the file encoding automaticaly)
but it can be changed before hand by setting:
Code:
export LANG="en_US.UTF-8"
before firing gummi.

I would not use either texworks or gummi because I already use vim + latex-suite and okular for monitoring output.
Back to top
View user's profile Send private message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Wed Sep 05, 2012 12:32 pm    Post subject: Reply with quote

alexcortes wrote:
I prefer Gummi over anything for LaTeX editing.

Just my 2¢. :wink:


Ohh I will have to try this out. I normally use Kile.
_________________
Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1752
Location: PB, Germany

PostPosted: Tue Aug 26, 2014 9:15 am    Post subject: Reply with quote

Usually I don't prefer installing stuff outside of portage, leaving stuff in /usr/local and more work to maintain dependencies.

For Texlive when it comes to some special packages from CTAN there are often no ebuilds or rather old ebuilds. Taking whole CTAN into portage is also not the solution.
Isn't there a mixed way to get the basic Texlive via ebuilds, while using tlmgr to install additional stuff?
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Tue Aug 26, 2014 9:29 am    Post subject: Reply with quote

rmh3093 wrote:
Well the main reason I started going in this route was that I could not find a way to get Biber.

For biber there is finally an ebuild in the tree (which is highly preferrable to the everything-bundled solution of texlive).
It is a pity that it (and many of its dependencies) are not declared ~x86; you should be an early tester and file corresponding bugs: I am rather sure that it will work without any problems, but I never used biber, so I do not dare to file these bugs.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum