Page 1 of 1

How do I set environment variables?

Posted: Tue 05 Jul 2005, 06:53
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.

Posted: Tue 05 Jul 2005, 07:24
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

Posted: Tue 05 Jul 2005, 15:49
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