LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-26-2008, 07:50 PM   #16
Laodiceans
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 188

Rep: Reputation: 18

Anyone with a solution for install texlive in slackware 12.1
I used the script above from brixtoncalling and didn't work for me.

I really need some help. I need texlive on slackware.
 
Old 09-27-2008, 06:29 AM   #17
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 737

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by Laodiceans View Post
Anyone with a solution for install texlive in slackware 12.1
I used the script above from brixtoncalling and didn't work for me.

I really need some help. I need texlive on slackware.
See my post number 9 here. The script builds texlive2008.
 
Old 09-27-2008, 03:55 PM   #18
Laodiceans
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 188

Rep: Reputation: 18
Quote:
Originally Posted by tramni1980 View Post
See my post number 9 here. The script builds texlive2008.
Sorry its your script that i used and didnt work.
Your script is in slackbuilds? I didnt find it there.
 
Old 09-27-2008, 06:51 PM   #19
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 129

Rep: Reputation: 16
Excuse the OFF-topic, I am curious.

Whats the problem with tex / latex? I wrote my thesis and I din't find any major problems that texlive would solve (one year only in TeX, don't shoot me). I think that xetex is more usefull and not big as texlive. (still trying to work on it)
 
Old 09-27-2008, 07:02 PM   #20
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,758

Rep: Reputation: Disabled
ludist, start a new thread with more details. This thread is about making Slackware packages for the TexLive 2008 distribution.

Laodiceans, why don't you use the install script in the texlive distribution then? That works fine too
 
Old 09-28-2008, 12:29 PM   #21
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 737

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by Laodiceans View Post
Sorry its your script that i used and didnt work.
Your script is in slackbuilds? I didnt find it there.
Please post what mistakes you get? Don't forget to set the environmental variables so that they suit your system. I have set them for my system. You will have to mount the .iso file somewhere on your system, as shown in the earlier posts. Here it is mounted on /mnt/cdrw. You could use the following, slightly modified version of the script (please make sure you understand what each command does):
Code:
#!/bin/sh

## Written by marto

set -e

PRGNAM=texlive
VERSION=2008.08.22
PKG_VERSION=$VERSION
ARCH=${ARCH:-i386}
BUILD=${BUILD:-1}
TAG=${TAG:-_mai}
CWD=$(pwd)
PKG="/tmp/texlive"
OUTPUT=${OUTPUT:-/tmp}

rm -rf $PKG
mkdir -p $PKG $OUTPUT
export TEXLIVE_INSTALL_PREFIX=/usr/share
export TEXLIVE_INSTALL_TEXDIR=/usr/share/texmf
export TEXLIVE_INSTALL_TEXMFLOCAL=/usr/share/texmf-local
export TEXLIVE_INSTALL_TEXMFSYSVAR=/usr/share/texmf-var
#the next line suggests that the iso image is already mounted on /mnt/cdrw
/mnt/cdrw/install-tl || exit 1

cd /usr/share || exit 1
echo "Adjusting directory structure:"

mv 2008 texmf || exit 1
mv texmf/bin/i386-linux/* texmf/bin || exit 1
rmdir texmf/bin/i386-linux || exit 1
mv texmf/texmf/* texmf || exit 1
rmdir texmf/texmf || exit 1
mv texmf/texmf-dist . || exit 1
mv texmf/texmf-doc . || exit 1

PATH="$PATH:/usr/share/texmf/bin"
if [ ! -r /usr/share/texmf/bin/latex ]; then
texconfig-sys init
fi
texconfig-sys confall
texconfig-sys dvips paper letter
texconfig-sys xdvi paper us
texconfig-sys mode ljfour
texconfig-sys dvips paper a4
texconfig-sys xdvi paper a4
texconfig-sys dvips printcmd -
texconfig-sys dvips add bjc600
texconfig-sys dvips add stcolor
#texconfig-sys dvips add deskjet
texconfig-sys dvips add ljet4
texconfig-sys dvips -P bjc600 mode canonbjc
texconfig-sys dvips -P stcolor mode epstylus
texconfig-sys dvips -P deskjet mode deskjet
texconfig-sys dvips -P ljet4 mode ljfour
texconfig-sys font ro
texconfig-sys rehash

# Discard local configurations:
if [ -e /root/.texmf-config ]; then
  mv /root/.texmf-config /root/.texmf-config-$(mcookie)
  echo "/root/.texmf-config moved out of the way...  you may wish"
  echo "to purge any /root/.texmf-config-* directories if the"
  echo "cruft heap gets too large."
fi

cd $PKG
mkdir -p usr/share
echo "Moving files from system directories into package texlive structure:"
mv /usr/share/texmf usr/share
mv /usr/share/texmf-var usr/share
mv /usr/share/texmf-dist usr/share
mv /usr/share/texmf-local usr/share
mv /usr/share/texmf-doc usr/share
mv /usr/share/texmf-config usr/share

echo "Adjusting permissions:"
chown -R root:root .
find . -type f -perm 666 -exec chmod 644 {} \;
chmod 0755 usr/share/texmf-var
find usr/share/texmf-var -type f -exec chmod 0644 {} \;
find usr/share/texmf-var -type d -exec chmod 0755 {} \;

mkdir -p etc/profile.d
cd etc/profile.d
cat > texlive.sh << EOF
PATH="$PATH:/usr/share/texmf/bin"
MANPATH="$MANPATH:/usr/share/texmf/doc/man"
INFOPATH="$INFOPATH:/usr/share/texmf/doc/info"
EOF
cat > texlive.csh << EOF
setenv PATH $PATH:/usr/share/texmf/bin
setenv MANPATH $MANPATH:/usr/share/texmf/doc/man
setenv INFOPATH $INFOPATH:/usr/share/texmf/doc/info
EOF
chmod 0755 texlive.*sh

echo "Stripping everything:"
( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)

# Compress man pages:
( cd $PKG/usr/share/texmf/doc/man
  find . -type f -exec gzip -9 {} \;
  for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)

# Compress info pages:
( cd $PKG/usr/share/texmf/doc/info
  rm -f dir
  gzip -9 *
)


mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cd $PKG/usr/doc
ln -sf /usr/share/texmf/doc $PRGNAM-$VERSION
cp $CWD/$PRGNAM.SlackBuild $PRGNAM-$VERSION
chmod 0644 $PRGNAM-$VERSION/$PRGNAM.SlackBuild

# Install script:
mkdir -p $PKG/install
cd $PKG/install
cat > slack-desc << EOF
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in.  You must
# make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':'.

         |-----handy-ruler------------------------------------------------------|
texlive: texlive (the TeX Live distribution)
texlive:
texlive: TeX Live is an easy way to get up and running with TeX. It provides a
texlive: comprehensive TeX system which includes all the major TeX-related
texlive: programs, macro packages, and fonts that are free software, including
texlive: support for many languages around the world. This package uses the
texlive: "TeX Live full scheme".
texlive:
texlive: Learn more about TeX Live at:
texlive: http://www.tug.org/texlive/
texlive:
EOF


cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKG_VERSION-$ARCH-$BUILD$TAG.tgz
The package will be placed in /tmp. I have not submitted the script to slackbuilds.org because I still do not think it is of the right quality for there. The purpose of this thread is to improve the script. Any constructive suggestions are welcome.
 
Old 10-06-2008, 06:04 AM   #22
brixtoncalling
Member
 
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403

Rep: Reputation: 67
Did you make the adjustments that I mentioned in #10?
 
Old 10-07-2008, 07:18 AM   #23
Laodiceans
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 188

Rep: Reputation: 18
Smile

I changed some the directories path and i could build the package.
This is my build script. The changes are in bold:

texlive.SlackBuild:

Code:
#!/bin/sh

## Written by marto

set -e

PRGNAM=texlive
VERSION=2008.08.22
PKG_VERSION=$VERSION
ARCH=${ARCH:-i386}
BUILD=${BUILD:-1}
TAG=${TAG:-_mai}
CWD=$(pwd)
PKG="/tmp/texlive"
OUTPUT=${OUTPUT:-/tmp}

rm -rf $PKG
mkdir -p $PKG $OUTPUT
export TEXLIVE_INSTALL_PREFIX=/usr/share
export TEXLIVE_INSTALL_TEXDIR=/usr/share/texmf
export TEXLIVE_INSTALL_TEXMFLOCAL=/usr/share/texmf-local
export TEXLIVE_INSTALL_TEXMFSYSVAR=/usr/share/texmf-var
#the next line suggests that the iso image is already mounted on /mnt/cdrw
/mnt/dvd/install-tl || exit 1

cd /usr/share || exit 1
echo "Adjusting directory structure:"

mv 2008/* texmf || exit 1
mv texmf/bin/i386-linux/* texmf/bin || exit 1
rmdir texmf/bin/i386-linux || exit 1
mv texmf/texmf/* texmf || exit 1
rmdir texmf/texmf || exit 1
mv texmf/texmf-dist . || exit 1
mv texmf/texmf-doc .  || exit 1

PATH="$PATH:/usr/share/texmf/bin"
if [ ! -r /usr/share/texmf/bin/latex ]; then
texconfig-sys init
fi
texconfig-sys confall
texconfig-sys dvips paper letter
texconfig-sys xdvi paper us
texconfig-sys mode ljfour
texconfig-sys dvips paper a4
texconfig-sys xdvi paper a4
texconfig-sys dvips printcmd -
texconfig-sys dvips add bjc600
texconfig-sys dvips add stcolor
#texconfig-sys dvips add deskjet
texconfig-sys dvips add ljet4
texconfig-sys dvips -P bjc600 mode canonbjc
texconfig-sys dvips -P stcolor mode epstylus
texconfig-sys dvips -P deskjet mode deskjet
texconfig-sys dvips -P ljet4 mode ljfour
texconfig-sys font ro
texconfig-sys rehash

# Discard local configurations:
if [ -e /root/.texmf-config ]; then
  mv /root/.texmf-config /root/.texmf-config-$(mcookie)
  echo "/root/.texmf-config moved out of the way...  you may wish"
  echo "to purge any /root/.texmf-config-* directories if the"
  echo "cruft heap gets too large."
fi

cd $PKG
mkdir -p usr/share
echo "Moving files from system directories into package texlive structure:"
mv /usr/share/texmf usr/share
mv /usr/share/texmf-var usr/share
mv /usr/share/texmf-dist usr/share
mv /usr/share/texmf-local usr/share
mv /usr/share/texmf-doc usr/share
mv /usr/share/texmf-config usr/share

echo "Adjusting permissions:"
chown -R root:root .
find . -type f -perm 666 -exec chmod 644 {} \;
chmod 0755 usr/share/texmf-var
find usr/share/texmf-var -type f -exec chmod 0644 {} \;
find usr/share/texmf-var -type d -exec chmod 0755 {} \;

mkdir -p etc/profile.d
cd etc/profile.d
cat > texlive.sh << EOF
PATH="$PATH:/usr/share/texmf/bin"
MANPATH="$MANPATH:/usr/share/texmf/doc/man"
INFOPATH="$INFOPATH:/usr/share/texmf/doc/info"
EOF
cat > texlive.csh << EOF
setenv PATH $PATH:/usr/share/texmf/bin
setenv MANPATH $MANPATH:/usr/share/texmf/doc/man
setenv INFOPATH $INFOPATH:/usr/share/texmf/doc/info
EOF
chmod 0755 texlive.*sh

echo "Stripping everything:"
( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip 
--strip-unneeded 2> /dev/null
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip 
--strip-unneeded 2> /dev/null
)

# Compress man pages:
( cd $PKG/usr/share/texmf/doc/man
  find . -type f -exec gzip -9 {} \;
  for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)

# Compress info pages:
( cd $PKG/usr/share/texmf/doc/info
  rm -f dir
  gzip -9 *
)


mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cd $PKG/usr/doc
ln -sf /usr/share/texmf/doc $PRGNAM-$VERSION
cp $CWD/$PRGNAM.SlackBuild $PRGNAM-$VERSION
chmod 0644 $PRGNAM-$VERSION/$PRGNAM.SlackBuild

# Install script:
mkdir -p $PKG/install
cd $PKG/install
cat > slack-desc << EOF
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in.  You must
# make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':'.

         |-----handy-ruler------------------------------------------------------|
texlive: texlive (the TeX Live distribution)
texlive:
texlive: TeX Live is an easy way to get up and running with TeX. It provides a
texlive: comprehensive TeX system which includes all the major TeX-related
texlive: programs, macro packages, and fonts that are free software, including
texlive: support for many languages around the world. This package uses the
texlive: "TeX Live full scheme".
texlive:
texlive: Learn more about TeX Live at:
texlive: http://www.tug.org/texlive/
texlive:
EOF


cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKG_VERSION-$ARCH-$BUILD$TAG.tgz
After building it, i installed it in two different machines and i have texlive in both now.
Thanks!
 
Old 10-07-2008, 08:01 AM   #24
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
Whats the size of texlive? Package + source.
Tetex is 102mb + 147mb (the entire t/ series)
 
Old 10-07-2008, 08:52 AM   #25
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 737

Original Poster
Rep: Reputation: 37
Laodiceans,
of all the lines that are in bold in your post 23, you have only changed the line:
Code:
mv 2008 texmf || exit 1
to:
Code:
mv 2008/* texmf || exit 1
This will leave an empty 2008 directory in your package. What error did you get with the original version?

Sahko,
the size of the texlive2008 package depends on what you have chosen to install. I have the option to make a choice between a full install and trimmed installs. The full-built package is 1040996 K. I do not know how big the stripped versions end up. Probably someone else who has chosen other than the full install could help.
 
Old 10-08-2008, 04:17 PM   #26
Laodiceans
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 188

Rep: Reputation: 18
I dont remember exactly the error. Sorry!

But i installed the package in a computer after a slackware fresh install, and i didnt see any empty directories in that machine.

Last edited by Laodiceans; 10-08-2008 at 04:25 PM.
 
Old 01-19-2009, 12:44 PM   #27
trashbird1240
Member
 
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463

Rep: Reputation: 31
You should really submit this to Slackbuilds.org. There is plenty of demand for texlive on Slackware (me, for instance).

Having it on Slackbuilds.org legitimizes it to an extent, and has more people to check --- doing the very thing that you asked for in this forum.
 
Old 01-20-2009, 05:58 AM   #28
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 737

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by trashbird1240 View Post
You should really submit this to Slackbuilds.org. There is plenty of demand for texlive on Slackware (me, for instance).

Having it on Slackbuilds.org legitimizes it to an extent, and has more people to check --- doing the very thing that you asked for in this forum.
Thank you for your suggestion. The script is currently awaiting approval at slackbuilds.org
 
Old 01-20-2009, 09:58 AM   #29
trashbird1240
Member
 
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463

Rep: Reputation: 31
Quote:
Originally Posted by tramni1980 View Post
Thank you for your suggestion. The script is currently awaiting approval at slackbuilds.org
Mucho bueno!

Joel
 
Old 01-21-2009, 05:21 AM   #30
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
Quote:
Originally Posted by tramni1980 View Post
Thank you for your suggestion. The script is currently awaiting approval at slackbuilds.org
I have a doubt since you have posted your SlackBuild into slackbuilds.org and want it a wider use:

How do you handle TeXLive self-contained package manager( http://www.tug.org/texlive/tlmgr.html )? Since using it to update your TeXLive may add or remove files, so when you removepkg may cause a oop. How do you handle it?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Live CD contain TeX and/or LateX trainee Linux - Newbie 2 06-20-2006 05:24 AM
Ever used TeX, post your work. -- Tex Art Gallery barton Linux - Software 2 02-28-2006 03:29 AM
TeX can't find tex.fmt jrdioko Linux - Software 0 11-14-2005 06:34 PM
Using LyX with TeX Live tslothrop Linux - Software 0 11-11-2004 03:31 PM
Slackware and Lilypond (...and Tex) tubatodd Slackware 6 08-12-2004 07:55 PM


All times are GMT -5. The time now is 05:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration