How do I set environment variables?

Using applications, configuring, problems
Post Reply
Message
Author
mateen
Posts: 2
Joined: Tue 05 Jul 2005, 06:29

How do I set environment variables?

#1 Post by mateen »

i am booting puppy from the live cd , and have created a ext2 partion on my hard drive . i downloaded and installed perl. the problem is that i carnt seem to add the /usr/local/ActivePerl-5.6/bin to the $PATH variable. The setenv does not work, and i cant find the .profile in my home directory. I try setvar command but that doesnt even work. hope understand what i am trying to say. how can i do this. thanks.

Guest

#2 Post by Guest »

edit the /etc/profile so that the line that currently reads

Code: Select all

PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:/root/my-applications/bin"
includes the path to your Perl binaries directory, ie

Code: Select all

PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:/root/my-applications/bin: /usr/local/ActivePerl-5.6/bin"
This should be the first line in the file. You will need to start a new terminal session for the changes to take effect

Cheers

User avatar
papaschtroumpf
Posts: 250
Joined: Fri 17 Jun 2005, 04:23

#3 Post by papaschtroumpf »

there is a perl pupget. don;t know how it compares with the version of active-perl you've installed.
There may be a lot of trimming possible from a "standard" perl install to save on disk/memory space
Mandriva LE 2005 user and puppy newbie

Post Reply