LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-13-2006, 01:48 PM   #1
BlueSpirit
Member
 
Registered: Jun 2006
Distribution: Slackware
Posts: 144

Rep: Reputation: 15
setenv command?


Hello all,

I would like to know something :

I just installed teTeX 3.0 and they say to do a command, and this command is setenv

Do you have the setenv command?
Is it normal that I dont have it...
B/c I have the MAN pages of setenv, but when I type setenv, it says :

setenv : command not found


Thanx

Blue
 
Old 08-13-2006, 01:58 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
According to http://www.computerhope.com/unix/usetenv.htm, setenv is used in the C shell. If you're using the Bash shell, setting an environment variable is done with export. Can you post the info from the TeX docs and someone here should be able to tell you what needs to be done.
 
Old 08-13-2006, 02:17 PM   #3
BlueSpirit
Member
 
Registered: Jun 2006
Distribution: Slackware
Posts: 144

Original Poster
Rep: Reputation: 15
Quote:
============================================================================
7) final configuration steps
============================================================================

Overview:
- set up PATH
- check environment
- configure teTeX using texconfig
- generate fonts with a batch job
- set up area for automatic font generation

Set up PATH:
===========
Set up your PATH to include the directory containing the just installed
binaries (e.g. /usr/local/teTeX/bin/i686-pc-linux-gnu); similarly, MANPATH
and INFOPATH to include the relevant newly installed subdirectories,
i.e. $prefix/man resp. $prefix/info. To avoid conflicts with a
possible different TeX installation, make sure to put the new directories
first. E.g. for setting PATH, use something like the following, but
replace i686-pc-linux-gnu by your actual platform directory:
PATH=/usr/local/teTeX/bin/i686-pc-linux-gnu:$PATH; export PATH
or
setenv PATH /usr/local/teTeX/bin/i686-pc-linux-gnu:$PATH

As an alternative to adjust PATH, you could as well create symbolic
links in a standard location such as /usr/local/bin:

Example using GNU-ls (which supports the "force" option):
ln -sf /usr/local/teTeX/bin/i686-pc-linux-gnu/* /usr/local/bin

Example using standard ln:
(cd /usr/local/teTeX/bin/i686-pc-linux-gnu; echo *) \
| (cd /usr/local/bin; xargs rm -f)
ln -s /usr/local/teTeX/bin/i686-pc-linux-gnu/* /usr/local/bin

This is the segment of the doc of TeTeX that I dont understand...

Well, theres a problem : when I do the PATH=, it works in the terminal ONLY IF I DONT CLOSE IT!!!, but if I open back rxvt, the PATH= is not in set...
And the MANPATH= is the same thing...
I would like rxvt to ALWAYS know where is the MAN pages of TeX...

Thanx guys...

Blue
 
Old 08-13-2006, 02:38 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I assume you're using Bash as your shell... If so, do you want the change made just for yourself? Add the following to the file .bash_profile in your home directory. You'll have to do the same for MANPATH and INFOPATH:
Code:
export PATH=/usr/local/teTeX/bin/i686-pc-linux-gnu:$PATH
If this is for all users, check that there is a section in /etc/profile that says:
Code:
for profile_script in /etc/profile.d/*.sh ; do
  if [ -x $profile_script ]; then
    . $profile_script
  fi
done
If there is, you can create a file called /etc/profile.d/tex.sh and add the same lines to it instead (from memory, the file needs to be executable). If the profile.d stuff is not there, add the lines to /etc/profile. Either way, the next time you login those variables should already be set for you.
 
Old 08-13-2006, 03:34 PM   #5
BlueSpirit
Member
 
Registered: Jun 2006
Distribution: Slackware
Posts: 144

Original Poster
Rep: Reputation: 15
Whoa Gilead... ThanX!
Its working...

But just another question :

I did the "ln -sf /usr/local/teTeX/bin/i686-pc-linux-gnu/* /usr/local/bin" command...
But now, I would like to REMOVE the links in /usr/local/bin/...

How can I do this?

ThanX for Ya

Blue
 
Old 08-13-2006, 04:16 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Running the following will list all of the links in /usr/local/bin. If you don't get any false positives (ie, files you don't want to delete) then you can change the ls -l to rm -f:
Code:
find /usr/local/bin -type l -exec ls -l {} \;
You can run it straight away with rm, I just prefer the more conservative approach...
 
Old 08-13-2006, 05:17 PM   #7
BlueSpirit
Member
 
Registered: Jun 2006
Distribution: Slackware
Posts: 144

Original Poster
Rep: Reputation: 15
Real ThanX Gilead, its OK...

All Problems > Resolved ...

;^)
 
  


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
Setenv command is not known Suse 10.0 InesLeike Linux - Software 2 03-04-2006 06:33 AM
trying to preform setenv, no command ? zeltak Linux - Software 3 02-16-2006 01:08 PM
help with command setenv J0sep Red Hat 3 06-22-2004 06:52 PM
Setenv IBP Linux - Software 3 12-20-2002 09:05 AM
setenv ???? toxic53 Linux - Networking 1 09-26-2001 11:30 AM

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

All times are GMT -5. The time now is 10:31 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