ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Idris S Hamid <ishamid@attbi.com>
Cc: ntg-context@ntg.nl, tetex@informatik.uni-hannover.de
Subject: Re: texexec & teTeX
Date: Mon, 27 May 2002 12:42:13 -0600	[thread overview]
Message-ID: <200205271242.13772.ishamid@attbi.com> (raw)
In-Reply-To: <x5d6vhk353.fsf@tupik.goethe.zz>

I apologize for sending the earlier mail to tetex-pretest instead of tetex.

> > If I'm in root and do texexec, everything works fine.
> > If I'm in my user account and do texexec, everything works fine.
> >
> > If I su to my home directory from root (or su to root from my home
> > dir), then texexec gives the error
>
> What do you mean with "su to [your] home directory"?  su is used for
> changing users, not directories.

My mistake; still new to Unix. Yes, I meant  "su to a different user id"

> > If from here I su back to my home dir (or to root), the error
> > remains.
>
> What does echo $PATH tell?  What does env|grep "^PATH=" tell?

My default shell is bash.

Upon opening a console:

~> echo $PATH
/usr/TeX/bin/i386-linux:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:
/opt/gnome/bin:/opt/kde3/bin:/opt/kde2/bin:/usr/lib/java/bin:/opt/gnome/bin:
/usr/TeX/bin/i386-linux:/usr/TeX/bin/i386-linux:/usr/TeX/bin/i386-linux 

> env|grep "^PATH="
PATH=/usr/TeX/bin/i386-linux:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:
/opt/gnome/bin:/opt/kde3/bin:/opt/kde2/bin:/usr/lib/java/bin:/opt/gnome/bin:
/usr/TeX/bin/i386-linux:/usr/TeX/bin/i386-linux:/usr/TeX/bin/i386-linux

> texexec

 TeXExec 2.8 - ConTeXt / PRAGMA ADE 1997-2002

                --help   show this or more, e.g. '--help interface'
             --verbose   shows some additional info

        total run time : 0 seconds

Upon su:

 # echo $PATH
/usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin:/usr/TeX/bin/i386-linux

 # env|grep "^PATH="
PATH=/usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin:/usr/TeX/bin/i386-linux

 # texexec
`texexec.pl' not found.

Here are all of the PATH mods I made:

1.  /etc/profile.d/texsetup.sh

 case ":$PATH:" in *:/usr/TeX/bin/i386-linux:*) ;;
  *) PATH="/usr/TeX/bin/i386-linux:$PATH"

2. in my home user directory, in .bashrc and .profile:

PATH="$PATH:/usr/TeX/bin/i386-linux"
export PATH

3. in my root home directory, 

in .bashrc and .profile:

PATH="$PATH:/usr/TeX/bin/i386-linux"
export PATH

> This is executed in login shells, but nowhere else.  One possibility
> would be that you need to add
> export PATH
> although I really can't believe that PATH would not already be
> exported.

I tried this; does not change anything

> Another would be that you have some settings in
> ~/.bashrc
> that reset the PATH to a fixed value.

My only other uncommented lines in .bashrc are

if test -z "$DISPLAY" -a "$TERM" = "xterm" -a -x /usr/bin/who ; then
    WHOAMI="`/usr/bin/who am i`"
    _DISPLAY="`expr "$WHOAMI" : '.*(\([^\.][^\.]*\).*)'`:0.0"
    if [ "${_DISPLAY}" != ":0:0.0" -a "${_DISPLAY}" != " :0.0" \
         -a "${_DISPLAY}" != ":0.0" ]; then
        export DISPLAY="${_DISPLAY}";
    fi
    unset WHOAMI _DISPLAY
fi

test -s ~/.alias && . ~/.alias

> A third one would be that after doing the change above you have not
> logged out: the change will only take effect in sessions started
> after it has been done.

makes no difference

> A fourth one would be that the permissions of
> /etc/profile.d/texsetup.sh are set in a way as to make the file
> unreadable for some users.

I checked; User, Group, and Others all have Read permission

> A fifth one would be that your default shell is not bash or a Bourne
> shell.

Default is bash.

Thnx to all for trying! I'll keep working on it....

Best 
Idris

-- 
Dr. Idris S Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80526


      parent reply	other threads:[~2002-05-27 18:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-26 21:10 Idris S Hamid
2002-05-27  7:33 ` Siep
2002-05-27 13:00   ` Idris S Hamid
2002-05-27 11:43 ` Bill McClain
2002-05-27 13:17   ` Idris S Hamid
     [not found]     ` <20020527091854.4ba41f93.wmcclain@salamander.com>
2002-05-27 15:20       ` Idris S Hamid
     [not found]         ` <x5d6vhk353.fsf@tupik.goethe.zz>
2002-05-27 18:42           ` Idris S Hamid [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200205271242.13772.ishamid@attbi.com \
    --to=ishamid@attbi.com \
    --cc=ntg-context@ntg.nl \
    --cc=tetex@informatik.uni-hannover.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).