List Archives > 
Maple User Group List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[MUG] Problem with LIBNAME
| [MUG] Problem with LIBNAME |
|
Author: Willard, Daniel Dr DUSA-OR
Posted: 09/10/2000 19:48:14 GDT
|
>> From: "Willard, Daniel Dr DUSA-OR"
When I use "libname" to augment a stored file of library names, as in:
>libname:= "C:\\mylib2", libname;
indeed mylib2 has been added to the list; but it does not survive turning
the program off and restarting. I am using a PC with Windows NT and Maple V
release 5.1. What am I doing wrong, or failing to do? I am very naive about
these administrative parts of Maple. Please make the instruction simple.
Daniel Willard
Special Assistant for Air and Missile Defense
Office, Deputy Under Secretary of the Army (Operations Research)
102 Army Pentagon ATTN: SAUS-OR Washington, DC 20310-0102
Phone: 703-697-6742 (DSN 227) Fax: 703-693-3897 (DSN 223)
E-mail:
|
| [MUG] Re: Problem with LIBNAME |
|
Author: Maple Group
Posted: 13/10/2000 16:19:26 GDT
|
>> From: Maple Group
| >> From: "Willard, Daniel Dr DUSA-OR"
|
| When I use "libname" to augment a stored file of library names, as in:
|
| >libname:= "C:\\mylib2", libname;
|
| indeed mylib2 has been added to the list; but it does not survive turning
| the program off and restarting. I am using a PC with Windows NT and Maple V
| release 5.1.
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
From: Stanley J Houghton
Date: Tue, 10 Oct 2000 14:36:14 +0100
To:
Subject: Problem with LIBNAME
What you need is an initialisation file. It contains commands
executed at startup and your command augmenting the library search
could be one of them.
I only have release 6.1 but I don't think it has changed enormously.
The help pages say the following:
---------------------------------------------------------------
Any number of statements may be placed in the initialization files and
their effect is just like statements entered in a normal Maple
session. Once all the statements in the initialization files are
executed, the prompt appears and the Maple session begins. It is
recommended that all statements in the initialization files terminate
with a full colon (:) rather than a semicolon, to prevent any display.
* Under UNIX, if there is a system-wide Maple initialization file with
the name init under the src subdirectory of the Maple library, then
this file is read and the Maple statements in it executed before the
session starts (unless -s is specified). If there is a Maple
initialization file named .mapleinit in the user's home directory
under UNIX, this file is read next.
* Under Windows based systems, the Maple initialization file is called
maple.ini. It is searched for in the Maple 6/bin directory, and in the
user's current directory. If one is not found in the current working
directory, then the Maple 6/users directory is searched and, in
multi-user environments, the user's personal profile directory.
* Under Power Macintosh systems, the Maple initialization file is
called MapleInit. It is read from the System Preferences folder and
from the user:init folder. In multi-user environments, the file is
also read from the user's personal profile folder (user:username).
Additional initialization files can be specified explicitly using the
-i option as described earlier.
----------------------------------------------------------
See help under command line options or startup.
Hope it helps
Stan
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Tue, 10 Oct 2000 16:14:21 +0100
From: "Dr Francis J. Wright"
To:
Subject: Problem with LIBNAME
Put the above statement in your Maple initialization file.
Irritatingly, the name and location of this file seems to vary with
platform and release, but I think calling it maple.ini and putting it in
the root of the Maple installation tree will work for your combination.
To be precise, I have this file
E:\Program Files\Maple V Release 5.1\maple.ini
If that doesn't work then there are supposed to be various other places
that Maple looks, which probably include the current directory. At one
time, I think I had it in the bin.wnt directory. If you are
sufficiently persistent then you should be able to find a directory
where both you and Maple can find it! This is documented in the online
help. Executing ?initialization should take you to the right page.
(However, it is a moot point what current directory actually means in
the context of MS Windows!)
Francis
--
Dr Francis J. Wright | mailto:
School of Mathematical Sciences | tel: (020) 7882 5453 (direct)
Queen Mary, University of London | fax: (020) 8981 9587 (dept.)
Mile End Road, London E1 4NS, UK | http://centaur.maths.qmw.ac.uk/
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Tue, 10 Oct 2000 17:17:25 +0100 (BST)
From: "Dr N.B. Backhouse"
To:
Subject: Problem with LIBNAME
Daniel,
My simplistic solution is to have a worksheet for each library. The
first line adds the library name to the list. A second line might load a
package.
No doubt there are better ways.
Nigel Backhouse
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Tue, 10 Oct 2000 09:47:13 -0700 (PDT)
From: Robert Israel
To:
Subject: Problem with LIBNAME
You need to put the line
libname:= "C:\\mylib2", libname:
into a file named maple.ini. Note: maple.ini is NOT the same as
maplev5.ini, which is a Windows initialization file. The file maple.ini
contains only Maple commands, and if you haven't created one yet you
probably won't have one. Produce it with any text editor (e.g. Notepad or
Wordpad), being sure to save it as text rather than any fancy format such
as rtf, and put it either in the folder that is current when you start
Maple, or in Maple's bin.wnt folder.
Robert Israel
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia
Vancouver, BC, Canada V6T 1Z2
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Tue, 10 Oct 2000 13:35:12 -0700
From: "Joe Riel (home)"
To:
Subject: Problem with LIBNAME
While there are a few ways to do this, the best, in my opinion, is to
modify your initialization file. For NT/Windows it is an ascii file
"maple.ini". It goes in the lib subdirectory. Probably you don't have
one. Create an ascii file with the single line:
libname := "c:/mylib2",libname:
Note that it is permissible to use forward slashes in the pathname,
Maple will translate them accordingly.
Joe Riel
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Tue, 10 Oct 2000 18:49:09 -0500
From: Rafal Ablamowicz
Subject: Problem with LIBNAME
To:
Use Notepad to create a file with just one line:
libname:= "C:\\mylib2", libname;
and save it under the name maple.ini in the \LIB directory under Maple. It will
be executed any time you start Maple. If you don't want to see the above
statement shown when you start Maple, change ; to : at the end of the above
line. maple.ini will be your initialization file. You can put more lines of
code there, of course, if you need them.
Rafal Ablamowicz
Department of Mathematics
Tennessee Tech
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Wed, 11 Oct 2000 02:30:45 +0200
From: Helmut Kahovec
To:
Subject: Problem with LIBNAME
Hello Daniel,
Well, you may put the command
> libname:="C:\\mylib2",libname:
into your maple.ini file. Then every time you start Maple the file
maple.ini will be executed. Be sure to put maple.ini into the directory
where wmaple.exe is. For more see ?initialization .
With kind regards,
Helmut
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Wed, 11 Oct 2000 08:57:13 +0200
To:
From: Jean Garrigues
Subject: Problem with LIBNAME
create a file named "maple.ini" containing the instruction
libname:= "C:\\mylib2", libname;
and save this file in the "lib" directory inside the maple installation
directory. Instructions inside this file will be performed at launch time of
maple.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Jean GARRIGUES, ESM2, IMT, Technopole de Chateau-Gombert
13451 Marseille Cedex 13 FRANCE
Tel: +33 (0)491 054 672 Fax: +33 (0)491 054 598
http://esm2.imt-mrs.fr/gar/index.html
ICQ : 8401384
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
From: "Colin Birch"
To:
Date: Wed, 11 Oct 2000 11:32:04 +0000
Subject: Problem with LIBNAME
Dear Daniel
In Maple V 5.1 you need to go to the subdirectory
c:/Program Files/Maple V Release 5.1/Lib, or the equivalent
subdirectory of your Maple program installation. It should contain
files like maple.hdb, maple.lib, and maple.ind, which you must leave
undisturbed. Create a new plain text file there called maple.ini. You
can use the MS Windows accessory Notepad to do this. It should
contain the following lines.
libname := `c:/Program Files/Maple V Release 5.1/Lib`,
`c:/.../mylib2`:
savelibname := `c:/.../mylib2`:
'...' should be whatever is the correct path on your computer. You
can also add any other commands that you want Maple to execute at the
start of every run. The libname command is what you asked for, but
the savelibname command makes sure that your new procedures are saved
in your library rather than Maple's.
In Maple 6 you do much the same, creating a new file maple.ini in the
...\Users subdirectory. Adding lines to maple6.ini (which is in the
same subdirectory) does not work.
Good Luck,
--------------------------------------------------------------------------
Colin Birch
Plant Ecology and Community Dynamics Programme,
MLURI, Craigiebuckler, Aberdeen, AB15 8QH, UK
E-mail:
Tel/Fax: +44 1224 318611/311556
--------------------------------------------------------------------------
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
From: "Symancyk, Daniel"
To:
Subject: Problem with LIBNAME
Date: Wed, 11 Oct 2000 10:19:22 -0400
The command that you want can be added to the maple initialization file so
that it will be run automatically when you start Maple.
If the file maple.ini exists in c:\program files\maple v release 51.\lib
then add the line
libname:=libname,`C:\\mylib2`:
to it.
If the file maple.ini does not exist, create a text file, put
libname:=libname,`C:\\mylib2`: in it, save it as maple.ini, and put the file
in c:\program files\maple v release 51.\lib.
Dan Symancyk
Department of Mathematics
Anne Arundel Community College
Arnold, MD 21012
410-541-2587
|
Previous by date: [MUG] Re: Missing plot graphics, Mike Stecher
Next by date: [MUG] Re: Zombies on Linux., Gottfried Barthel
Previous thread: [MUG] solve, Ruth Plathe
Next thread: [MUG] Zombies on Linux., Jason C Leach
|