I know where this directory is. The book says I need to add it to the PATH variable in my shell. How do I do that?
I'm learning Perl from a book. It says I need to add a directory to the PATH variable in my shell. How?
the reason you are not getting a good answer is because it's different depending on what kind of computer operating system you are running!
Windows goes by the file extension (.pl is for perl)
Unix goes by the 'shebang' line at the beginning of the program
But perl is often run from the command line or in a bat file, or a shell script, so you have to have an updated path. And you set it differently for each OS!
SO WHAT ARE YOU RUNNING? Windows version? Unix Shell? Mac? Other???
OK so you are running windows, if you installed perl correctly it should have added the perl directory to the path! It's done by the activestate perl installer.
http://aspn.activestate.com/ASPN/docs/Ac...
Reply:Hold on now, on Windows you should NOT have to modify your path for perl to work. What exactly did the book tell you to do? What version of perl are you using?
Reply:That depends on what shell you use.
In bash, for example:
export PATH=$PATH:/path/to/new/directory/
In Windows Explorer (the default shell for Windows since Windows 95) right click on My Computer, select properties, pick Advanced, pick Environment Variables, then find it in the dialog.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment