LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-21-2009, 04:35 AM   #16
portia
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 112

Original Poster
Rep: Reputation: 20

Thanks, it worked. I thought I'd already set it up in ~/.bash_profile.

I installed texlive and was trying to install auctex for emacs:
That's what I get
Quote:
...
checking for latex... NONE
configure: error: LaTeX not found, aborting!
You must install LaTeX for preview to work.
configure: error: ./configure failed for preview
I thought installing texlive would be enough, wouldn't it?
 
Old 12-21-2009, 09:07 AM   #17
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
You need to re-login to set up the env. More accurate, make sure "/usr/share/texmf/bin" is in your PATH(see /etc/profile.d/texlive.sh).
 
Old 12-23-2009, 07:07 AM   #18
portia
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 112

Original Poster
Rep: Reputation: 20
Thanks for your response, but I still can't get it installed.
That's what's in my /etc/profile.d/texlive.sh

Quote:
#!/bin/sh
# Add PATH and MANPATH for TeXlive:
PATH="$PATH:/usr/share/texmf/bin"
MANPATH="$MANPATH:/usr/share/texmf/doc/man"

How can I know it gets executed? IT seems that it doesn't.
Quote:
echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin
 
Old 12-23-2009, 08:01 AM   #19
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
Does your /etc/profile.d/texlive.{c,}sh have executive permission? I think they have. But just in case, "chmod 0755 /etc/profile.d/texlive.{c,}sh" as root. AFAIK, a relogin should be enough.... ;(
 
Old 12-23-2009, 08:53 AM   #20
portia
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 112

Original Poster
Rep: Reputation: 20
Thanks for your help.
What turned out was that I ran the scripts not being in a complete root environment. Hence, it couldn't find the latex directory. Doing 'su -' solved the problem.
 
Old 12-24-2009, 01:12 AM   #21
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
That's strange... Normal users should have the rights to use latex, right?
 
Old 12-24-2009, 09:31 AM   #22
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
He was already logged in before tex was installed, so the profile scripts had not been run (since they weren't there when he logged in) and thus PATH did not include tex. Switching to root using "su" doesn't re-init the environment, so tex *still* wasn't in PATH.
 
Old 12-25-2009, 03:00 AM   #23
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
Yes, but I suggested a *re-login* And, although it's possible that the original poster do not logout for days, the possibility is small...

Anyway, texlive from texlive.SlackBuild works fine in my box
 
Old 12-25-2009, 04:00 AM   #24
portia
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 112

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by grissiom View Post
Yes, but I suggested a *re-login* And, although it's possible that the original poster do not logout for days, the possibility is small...

Anyway, texlive from texlive.SlackBuild works fine in my box

I don't know why it was the case as I always switch off my laptop overnight (which obviously entails the idea of relogging).
 
Old 12-25-2009, 05:00 AM   #25
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
Quote:
Originally Posted by portia View Post
I don't know why it was the case as I always switch off my laptop overnight (which obviously entails the idea of relogging).
Hmm, sounds strange... What DE do you use? What terminal do you use?(Konsole, xterm, or plain terminal etc.)
 
Old 12-25-2009, 05:11 AM   #26
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
disregard the post (wrong thread)

Last edited by sycamorex; 12-25-2009 at 05:16 AM.
 
Old 12-25-2009, 05:28 AM   #27
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
I don't use and have xfce in my box. AFSIK, KDE will source the /etc/profile when login. So it will and do be fine here. And if you did not modify the patched(yes, by PatV) /usr/share/applications/kde4/konsole.desktop, Konsole will be a login-shell every time you invoke it. So it would be Ok if you use Konsole. For other things, I don't know. Sorry.
 
Old 12-28-2009, 07:41 AM   #28
portia
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 112

Original Poster
Rep: Reputation: 20
No worries. Thanks for your help.
 
  


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
TeXLive Build Script for Slackware rworkman Slackware 14 11-15-2009 04:47 AM
Help: Chinese support in TeXlive chp Linux - Software 0 09-26-2008 10:27 AM
SlackBuild.org nvidia kernel build script bug Woodsman Slackware 3 04-06-2008 07:48 PM
trouble with alien's slackbuild for freenx: cannot stat freenx/build/nomachine.id_dsa BCarey Slackware 2 03-12-2008 09:00 PM
TexLive ahallam Red Hat 1 11-08-2006 11:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:10 AM.

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
Open Source Consulting | Domain Registration