User Library Path

Library

  1. Qemu User Library Path
  2. Linux User Library Path
  3. Eclipse User Library Path
  4. Python User Library Path

Hello, I need to change the WORK library folder location based on user. I'm wondering if anyone can help:) We installed SAS on a server with roughly 3-5 people accessing the software. My boss wants her Work location to be in C: drive but the rest of the users in H: drive. I opened the SASV9.C. Options to Show User Library Click on your Users folder, open it in Column view, and select View Show View Options then check the box for Show Library Folder If Library isn’t an option, check that you’re in Column View Select your User folder, and press Command+ J.

To Include Folder or Drive to Library using Library Properties. 1 In File Explorer (Win+E), right click or press and hold on a library (ex: Videos) you want to include a folder or drive to, and click/tap on Properties. (see screenshot below) 2 Click/tap on the Add button. (see screenshot below) 3 Browse to and select a folder or drive that you. The library search path is initialized at startup from the environment variable RLIBS (which should be a semicolon-separated list of directories at which R library trees are rooted) followed by those in environment variable RLIBSUSER. Only directories which exist at the time will be included.

  • Tips
  • Programs
  • On-Line Docs
  • Books

QUESTION: How do I download and install the Coyote Library? For that matter, how do I install anythird-party IDL library?

Path

ANSWER: You won't work with IDL for too long before you realize that much of the power of IDL comes from using IDL code foundin third-party libraries on the Internet. The IDL AstronomyLibrary, maintained by Wayne Landsman, and the JohnsHopkins Applied Physics Lab Library, maintained by Ray Sterner, are two of the most famous and widely used. IDL has an extremely robust traditionof excellent IDL programmers sharing their best work with the IDL community. Totake advantage of this software, you have to know how to install the library ofcode and place it on your IDL path (i.e., the !PATH system variable) so you can use it.

The Coyote Library is anotherextremely popular library of IDL code. Indeed, it has become almost too popularand you will find parts or all of it incorporated into other libraries that you findon the Internet. (The NASA Astronomy Library, for example, now uses the Coyote Libraryfor all of its graphic operations.) This is extremely gratifying to the library's author, but causes many gray hairs, too, because the Coyote Library distributed with these otherlibraries is often out of date. This makes it difficult for many users to install the Coyote Library properly and make use of all of its functionality.

The installtion and set-up directions here can be used to installthe Coyote Library, the Catalyst Library, or indeed any third-party IDL library you care to use in your IDL installation.

Managing Your IDL Path

A great many IDL programmers are still unsure how to set up and use their IDL path. The IDL path is a list of directories that are searchedwhen IDL needs to find the source code for a user-written IDL 'command'or program.The typical scenario is that a young graduate student comes into a lab and theirIDL installation is 'configured' for him or her by a senior graduate student,whose own IDL installation was 'configured' for them another senior graduate student, etc.In this scenario it will turn out that everyone in the lab is using an IDL start-upscript that was written in 1986 by the founder of the lab, everyone writes IDL code as if it were a direct translation of a FORTRAN program,and not a single person in the lab knows how or why their IDLpath has gotten so convoluted and confusing. The fact that IDLeven 'works' seems like magic to them!

When wading into Coyote Library installationproblems, it is not the least bit unusual (especially on UNIX systems), to find 4-5 old and out-of-date copies of the Coyote Library in a user's IDL path. The useralmost never knows how they got there.

Let me be absolutely clear about this. You want ONE version of theCoyote Library in your IDL path!

(A new program, named cgFindCoyoteFiles has been added to the Library to help you findand eliminate old and out-dated versions of Coyote Library files. Runningthe program will print of list of directories on your IDL path that theprogram strongly suspects contain Coyote Library files. If you finddirectories that do contain old and out-dated Coyote programs, you shoulddelete those directories before proceeding.)

The general procedure is to first download the entire Coyote Library (or Catalyst Library) as a zip file. Then, unzip the file and extract the programs to a directory that is already on your IDLpath, or to a directory you intend to put on your IDL path (see detailed instructions below).You can also download the Coyote and Catalyst Libraries from aSubversion code repository. You must have aSubversion client installed to use the repository, however. (Many UNIX systems have this installed by default and I highly recommend Windows users downloadthe TortoiseSVN application to use for this purpose.) The Subversionrepository is highly recommended as this is the main repository for all the workI do on these Libraries. You can use the repository to update to the very lastest versionof the Libraries, or to a particular tagged release. The zip files always contain the verylatest version of the Library.

Note that I try extremely hard to keep the Coyote Library free of outside influence. That is to say,even though I personally use many routines from both the IDL AstronomyLibrary and the JohnsHopkins Applied Physics Lab Library, I do not use these routines in Coyote Library programs.Thus, there are no library dependencies in the Coyote Library, except from the normal IDL user library and from the Coyote Library itself. (I can think of a single exception to thisrule, cgTerminatorMap, but it is clearly identified as such.) I try hard to keep the Coyote Library away from cutting edge IDL improvments, but life does goes on. If you are using an older (e.g., IDL 6.3) versionof IDL you may find some routines in the Library no longer working for you. If you do,contact me about the problem. It'spossible I can retreive an older version of the program that works for you.

Installation Procedures

  1. Download the Coyote Libraryzip file. You can put the zip file wherever you like on your hard drive. (Notethat, if you prefer, you can download the Coyote Library from an open-sourceGoogle Code Subversion repositoryinto a directory on your machine using either a Subversion client orSubversion commands directly.)
  2. Extract the zipped files to a local directory. Note that the files will installthemselves into a directory named 'coyote'. It is best not to extract these files toyour Desktop. This will cause problems later on. For example, on my C: drive on my Windows machine, I havea top-level directory named idl. This is the location I would use as the 'extraction' directory and whereI would place the 'coyote' directory. I am going to use the following directory in my examplesbelow.

    You should substitute into the commands the actual location where you installed the files.

    Installation Alternatives

    It would be perfectly fine if you wanted to install the Coyote files in a directory otherthat the coyote directory described above.You could, for example, install the file into a coyote directory located in the lib directory in the main IDL distribution(probably something like C:Program FilesITTIDL8.3lib), if you hadpermission to do so.Or, you can name the directory something entirely different. It is not important what you name it, but how itis found on your IDL path.
  3. Given that you have extracted the zip file into the directory above, how do you get the fileson your IDL path? There are many possibilities. Let me tell you one I would not recommend.

    If you add this directory as a project to your IDL Workbench, I strongly recommend that you do notlet IDL manage the path to the files for you. I do recommend you add the files as a project in your Workbench, since this will give you great access to the source code documentation, just do not ever let IDL manage the paths for you. If you add them to your Workbench as a project be sure go to the Project -> Properties -> IDL Project Properties tab and deselect the button that says “Update IDL path when project isopened or closed.”

    To add the files to your IDL path in your IDL Workbench, go to the Window -> Preferences -> IDL -> Paths tab. Click the Insert... buttonand search for the coyote directory. Next, selectthe coyote directory and use the Move Up button to move the coyote directory in front of (toward thetop of the window)of other directories on your path. You should now be good to go. (Note that if you are installing both the Coyote and Catalyst Libraries, the Coyote Library should be positioned before the Catalyst Library in your path list, as programs in the Coyote Library must be found before they are used by programs in the Catalyst Library.) If you still find occasional name conflicts, contact me and I'll see what I can do about it. Some name conflicts are probably inevitable. Play around withthe order of your files in this path list until you are happy.

    Adding the Coyote Library to your IDL Path.
  4. If you are not using the IDL Workbench to run IDL, you might be able to do something similar to theIDL Workbench instructions if you are using an IDLDE. There the IDL path preferences are probably in File -> Preferences -> Path. The Insert... button is still there, but you need to use the arrow buttons to theright of the path list to move and order the directories on your IDL path.
  5. If you are using the IDL command line version, or all else fails, you can include the following IDL command in your IDL start-up file, oryou can simply type the command at the IDL command line before you run any Coyote program:

    Note the plus sign (+) at the front of the coyote directory name. This tells IDL to search all of thesub-directories of these directories and add them to the path, too. Note also thatdirectories are separated by a semi-colon on Windows machines.You can have a command like this for as many third-party libraries asyou want to install on your machine. Just pay attention to the order inwhich you define them. The command above adds the library files to thefront of the IDL path. So, if you were using this command toadd multiple libraries, the commands would be listed in the reverse order in which they are going to be found. For example, to add both theCatalyst and Coyote Libraries, you would add them like this, since the coyote directory must be found first on the IDL path, before the catalyst directory.:

    Another way to write this command is like this, in which thelibraries are added in the order in which they will be searched:

    The Coyote Library command, cgAddToPath, can also beused to add the current directory to the front of the IDL path.

  1. Download the Coyote Libraryzip file. You can put the zip file wherever you like on your hard drive.
  2. Extract the zipped files to a local directory. It is best not to extract the files toyour Desktop. This will give you problems later on.On my local hard drive on my UNIX machine, I havea top-level directory named ~/fanning/idl. This is the location I would use as the 'extraction' directory and whereI would place the 'coyote' directory. I am going to use the following directory in my examplesbelow.

    You should substitute into the commands below the actual location where you installed the files.

    Installation Alternatives

    It would be perfectly fine if you wanted to install the Coyote files in a directory otherthat the coyote directory described above.You could, for example, install the files into a coyote directory located in the lib directory in the main IDL distribution(probably something like /usr/local/ITT/idl70/lib), if you hadpermission to do so.Or, you can name the directory something entirely different. It is not important what you name it, but how itis found on your IDL path.
  3. Given that you have extracted the zip file into the directory above, how do you get the fileson your IDL path? There are many possibilities. Let me tell you one I would not recommend.

    If you add this directory as a project to your IDL Workbench, I strongly recommend that you do notlet IDL manage the path to the files for you. I do recommend you add the files as a project in your workbench, since this will give you great access to the source code documentation, just do not ever let IDL manage the paths for you. If you add them to your Workbench as a project be sure go to the Project -> Properties -> IDL Project Properties tab and turn off the button that says “Update IDL path when project isopened or closed.”

    If you make the files a project in your IDL Workbench then add the directory to the IDL path bygoing to the Window -> Preferences -> IDL -> Paths tab. Click the Insert... buttonand search for the coyote directory. Next, selectthe coyote directory and use the Move Up button to move the coyote directory in front of (toward thetop of the window)of other directories on your path. (Note that if you are installing both the Coyote and Catalyst Libraries, the Coyote Library should be positioned before the Catalyst Library in your path list, as programs in the Coyote Library must be found before they are used by programs in the Catalyst Library.) You should now be good to go. If you still find occasional name conflicts, contact me and I'll see what I can do about it. Some name conflicts are probably inevitable. Play around withthe order of your files in this path list until you are happy.

  4. If you are not using the IDL Workbench to run IDL, it is more likely that you are defining yourIDL path be defining environment variables in a .cshrc, .bashrc, or .profile file. Forexample, in a .bashrc file, you could add the coyote directory to your current IDL path ($IDL_PATH) by adding a command like this:

    Note the plus sign (+) in front of the coyote directory name. This is an indication thatIDL should expand this path to include all of the sub-directories under this directory and add theseto the IDL path, too.

    I typically define my IDL path in an IDL start-up file. The start-up file is also defined by an environmentvariable ($IDL_STARTUP). For example, in my .profile file I have this line:

    Then, in my IDL start-up file, which is simply a text file that gets executed upon starting up IDL,as if I were typing the commands at the IDL command line, I have the following lines of code which definemy IDL path in the order in which the directories appear here:

    Note the plus sign (+) at the front of the coyote and catalyst directory names. This tells IDL to search all of thesub-directories of these directories and add them to the path, too. Note also thatdirectories are separated by colons in a UNIX environment.

  5. If all else fails, you can simply type the following IDL command at the IDL command line before you run any Coyote program:

    Note the plus sign (+) at the front of the coyote directory name. This tells IDL to search all of thesub-directories of these directories and add them to the path, too.The Coyote Library command, AddToPath, can also beused to add the current directory to the front of the IDL path.

User library path definition

Not all naming conflict problems are easily resolved. If you think you are still havingproblems after following this advice, here is how to determine what the problem is. Firstof all, determine which file actually got compiled. For example, if you are running intoa problem with a program like PSCONFIG, it is likely that you may have another program withthis name on your path, and you are compiling this first, rather than the one you want inthe coyote directory. To see which one you compiled, type this:

User

Now search the output list for “PSCONFIG” and you will find where IDL located the file.

Another way to do this, assuming you know the name of the file you are looking for, is touse the File_Which command in IDL:

Qemu User Library Path

Typically, file naming conflicts are resolved by either moving directories around on the IDL path,or by deleting old files from other directories that are no longer needed. (The latter is highly recommended for the Coyotedirectory. And you can chase down and eliminate old and out-datedCoyote libraries with the cgFindCoyoteFiles program.)

Another way to check for multiple coyote directories on yourIDL path is to type the Coyote Library command PrintPath. This will list all the directories on your IDL path in the order in whichthey are searched, one directory on each output line. You can searchthe output for 'coyote,' for example, to find and eliminate multiplecoyote directories on your path. (You can specify the name of a file as an argument to PrintPath to write the output to a file for easier searching if you have many directories on your IDL path.)

Linux User Library Path

Version of IDL used to prepare this article: IDL 7.1.

Eclipse User Library Path

Library

Python User Library Path

Copyright © 1996–2018 Fanning Software Consulting, Inc.

Comments are closed.