How do I set environment variables?
How do I set environment variables?
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.
edit the /etc/profile so that the line that currently reads
includes the path to your Perl binaries directory, ie
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
Code: Select all
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:/root/my-applications/bin"
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"
Cheers
- papaschtroumpf
- Posts: 250
- Joined: Fri 17 Jun 2005, 04:23