[Date Index]
[Thread Index]
[Author Index]
Re: Re: finding package in ExtraPackages`Enhancements`
*To*: mathgroup at smc.vnet.net
*Subject*: [mg54127] Re: [mg54096] Re: [mg54065] finding package in ExtraPackages`Enhancements`
*From*: Murray Eisenberg <murray at math.umass.edu>
*Date*: Fri, 11 Feb 2005 03:33:42 -0500 (EST)
*Organization*: Mathematics & Statistics, Univ. of Mass./Amherst
*References*: <200502100747.CAA16644@smc.vnet.net>
*Reply-to*: murray at math.umass.edu
*Sender*: owner-wri-mathgroup at wolfram.com
I'm still at a loss here... What the installation directions for Ersek's
RootSearch.m actually say is to create, if it's not already present, an
Enhancements subdirectory of
ToFileName[{$TopDirectory, "AddOns", "ExtraPackages"}]
and to put RootSearch.m there.
But I want to separate all such add-ons from the Mathematica
$TopDirectory tree, so they can readily be preserved during updates from
one version of Mathematica to another.
So I created a new tree under my $UserBaseDirectory, with top levels:
FileNames[$UserBaseDirectory <> "\\*"]
{D:\Math\AddOns\AddOns, D:\Math\AddOns\Applications,
D:\Math\AddOns\Autoload, \
D:\Math\AddOns\Documentation, D:\Math\AddOns\FrontEnd,
D:\Math\AddOns\Kernel, \
D:\Math\AddOns\Licensing, D:\Math\AddOns\SystemFiles, D:\Math\AddOns\User}
But Mathematica does not seem to search within D:\Math\AddOns\AddOns, so
it never finds
D:\Math\AddOns\AddOns\ExtraPackages\Enhancements
in which I placed RootSearch.m.
Previously, I had tried, instead, to put that ExtraPackages tree at the
top level of $UserBaseDirectory, so that:
FileNames[$UserBaseDirectory <> "\\*"]
{D:\Math\AddOns\Applications, D:\Math\AddOns\Autoload, \
D:\Math\AddOns\Documentation, D:\Math\AddOns\ExtraPackages, \
D:\Math\AddOns\FrontEnd, D:\Math\AddOns\Kernel, D:\Math\AddOns\Licensing, \
D:\Math\AddOns\SystemFiles, D:\Math\AddOns\User}
Notice that the ExtraPackages directory was in that search path, but
still Mathematica does not find RootSearch in response to command:
<< Enhancements`RootSearch`
The trouble seems to be a lack of parallel in the way Mathematica treats
ToFileName[{$TopDirectory, "AddOns", "ExtraPackages"}]
and
ToFileName[{$UserBaseDirectory, "AddOns", "ExtraPackages"}]
in that the former IS on the search path but the latter is not.
David Annetts wrote:
> Hi Murray,
>
>
>>Various packages suggest they should be installed in
>>subdirectories of ExtraPackages. For example, Ersek's
>>RootSearch.m, is to be installed in subdirectory Enhancements
>>of ExtraPackages.
>>I keep all such 3rd party add-ons in a directory tree
>>separate from the Mathematica install directory tree.
>>Namely, in a directory to which $UserBaseDirectory points.
>>Thus, RootSearch.m is in directory:
>>
>> ToFileName[{$UserBaseDirectory, "ExtraPackages", "Enhancements"}]
>>
>>Yet still a command such as
>>
>> <<Enhancements`RootSearch`
>>
>>or
>>
>> Needs["Enhancements`RootSearch`"]
>>
>>fails to find its target.
>>
>>How can I make this work?
>
>
> As far as I can tell, you have an incorrect path.
>
> My $UserBaseDirectory is
> In[6]:=
> FileNames[$UserBaseDirectory<>"\\*"]
>
> Out[6]=
> {C:\Documents and Settings\dwa\Application \
> Data\Mathematica\Applications,C:\Documents and Settings\dwa\Application \
> Data\Mathematica\Autoload,C:\Documents and Settings\dwa\Application \
> Data\Mathematica\FrontEnd,C:\Documents and Settings\dwa\Application \
> Data\Mathematica\Kernel,C:\Documents and Settings\dwa\Application \
> Data\Mathematica\Licensing,C:\Documents and Settings\dwa\Application \
> Data\Mathematica\SystemFiles}
>
> Of these, only $UserBaseDirectory<>"\\Applications" is has any packages.
>
> You need to put RootSearch in either
> $UserBaseDirectory<>"\\AddOns\\Enhancements" or
> $UserBaseDirectory<>"\\Applications\\Enhancements".
>
> The introduction to the package says as much.
>
> Regards,
>
> Dave
>
>
>
--
Murray Eisenberg murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
Prev by Date:
**Re: A nasty 2x2 system of equations?**
Next by Date:
**Re: A nasty 2x2 system of equations?**
Previous by thread:
**Re: finding package in ExtraPackages`Enhancements`**
Next by thread:
**Re: Re: Re: finding package in ExtraPackages`Enhancements`**
| |