LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   can't build texlive slackbuild (https://www.linuxquestions.org/questions/slackware-14/cant-build-texlive-slackbuild-776370/)

portia 12-21-2009 04:35 AM

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?

grissiom 12-21-2009 09:07 AM

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).

portia 12-23-2009 07:07 AM

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

grissiom 12-23-2009 08:01 AM

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.... ;(

portia 12-23-2009 08:53 AM

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.

grissiom 12-24-2009 01:12 AM

That's strange... Normal users should have the rights to use latex, right? ;)

rworkman 12-24-2009 09:31 AM

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.

grissiom 12-25-2009 03:00 AM

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 ;)

portia 12-25-2009 04:00 AM

Quote:

Originally Posted by grissiom (Post 3804173)
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).

grissiom 12-25-2009 05:00 AM

Quote:

Originally Posted by portia (Post 3804195)
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.)

sycamorex 12-25-2009 05:11 AM

disregard the post (wrong thread)

grissiom 12-25-2009 05:28 AM

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.

portia 12-28-2009 07:41 AM

No worries. Thanks for your help.


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