Difference between revisions of "Ubuntu"

From ConTeXt wiki
m (Feisty (7.04))
(edgy backports!)
Line 18: Line 18:
 
== Edgy (6.10) ==
 
== Edgy (6.10) ==
  
The packages in the Debian repository mentioned in [[Debian installation]] instructions are not usable in edgy because many dependencies are too old.  One solution is to install  [http://www.tug.org/texlive/ texlive 2007] independent of the Debian/Ubuntu packaging system.  I don't like installing non-packaged applications, if it can at all be avoided. But I don't see an easy way, short of doing a backport (and that's not so easy).
+
Use the backports given in the Feisty (7.04) section.
  
 
----
 
----

Revision as of 05:18, 22 May 2007

Each successive version of Ubuntu becomes easier to update, which is why the following sections, arranged in reverse chronological order, get successively longer.

Late-breaking bad news for Ubuntu users (March 2007)

The latest Debian packages starting with ConTeXt 2007.03.19 require the texlive 2007 packages. Unfortunately, those packages need libpoppler0c2 and libc6 (>=2.5-5)_. You could grab and install libpoppler0c2 from breezy (or Debian unstable). But the libc6 version is much harder to solve, because if you take the texlive source packages and recompile them, you'll need the libpoppler0 development libraries. But the libpoppler1 development libraries are what comes on any recent Ubuntu system (and you cannot have two different versions of the development library). For Feisty, you can try the backports listed below. For earlier versions of Ubuntu, the best bet may be to install texlive directly.

Feisty (7.04)

Unfortunately, you cannot use the repository given in Debian installation because the Debian packages were compiled with a (very very slightly) newer libc6 than the one that ships with Ubuntu 7.04. Here instead are very untested packages backported for Ubuntu 6.10 (edgy) and they should work on later versions too:

  deb     http://web.mit.edu/download/sanjoy/texlive-backports/ edgy/
  deb-src http://web.mit.edu/download/sanjoy/texlive-backports/ edgy/

I use these packages on my feisty laptop with no problems so far (an hour of test), but let me (Sanjoy) know if you find anything broken.

With the above repository lines, you should be able to install the texlive packages. See the Debian installation instructions for the details.

Edgy (6.10)

Use the backports given in the Feisty (7.04) section.


I was able to install the libpoppler0c2 library, a recent texlive, and context 2007.04.17 on my laptop running Edgy simply by using the debian unstable repository. It seems to work fine. Backup your disk before mixing in packages from unstable.

--Lee-phillips 05:57, 15 May 2007 (CEST)

I don't think this method will work much longer, if it even still works. The latest texlive packages in unstable require (for i386) a libc6 version >= 2.5-5, which is too recent even for feisty (by a tiny bit). Probably you can keep upgrading to newer context packages because they do not depend on libc6. But the pdftex and metapost binaries will not get updated (apt-get will hold back the packages that need a newer libc6). Backports from gutsy (7.10) are one option.

--Sanjoy Mahajan 22:45, 19 May 2007 (-0400)

Dapper (6.06)

Ubuntu 6.06 contains teTeX 3.0 (including ConTeXt 2005.01.31), so you can just install tetex-extra and use ConTeXt. However, once you got your feet wet, you will probably want to install a more recent pdfTeX than the 1.21a installed with Ubuntu (since ConTeXt can give you more features with newer pdfTeX's), so again, please follow the instructions for TeTeX_3.0 installation.

The instructions for Fedora Core 5 are valid for Ubuntu 6.06, with a few caveats:

  • Ubuntu's default installation lacks a few tools that you'll need to build a new version of pdfTeX and to run new versions of ConTeXt. So before upgrading, do:
 sudo apt-get install build-essential bison flex ruby 
  • The configuration files that users should edit are under /etc/texmf/texmf.d. Do not edit the .cnf files in /usr/share/texmf/web2c directly; instead, edit the configlet files in the .d directory and run update-texmf or update-updmap.

After doing all of the above, the new versions seem to be working:

% texexec --version

 TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

               texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
               texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006
                   tex : pdfTeX, 3.141592-1.40.0-beta-20060213 (Web2C 7.5.5)
               context : ver: 2006.04.23 23:55
               cont-en : ver: 2006.04.23 23:55  fmt: 2006.4.24  mes: english

Breezy (5.10)

Breezy's support ends in April 2007, so you are advised to upgrade (one Ubuntu release at a time) to a more recent release in order to run a secure system; Dapper (6.06) will be supported until 2009, so that could be a good choice. The following instructions are for those who cannot (or do not wish to) upgrade.

Ubuntu 5.10 does not include a TeX installation by default. The distribution that you get when you install TeX is teTeX-2.0.2, which is too old and will not work with recent ConTeXt versions. So you should not install it, but follow the instructions for TeTeX_3.0_installation. However, you first must install supplementary packages not included in Ubuntu by default (and I hope I'm not forgetting anything; a number of dependencies will automatically be installed as well):

 # sudo apt-get install build-essential bison flex libncurses5-dev ruby

Install these packages before trying to compile teTeX 3.0 or running newer ConTeXt release (which use ruby rather than perl), or you will get errors during the compilation or have problems running the results.