Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: changing adopath and profile.do with mac OSX


From   Daniel Stegmueller <d.stegmueller@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: changing adopath and profile.do with mac OSX
Date   Wed, 23 Jul 2008 17:23:35 +0100

You could create it using
mkdir ~/Library/Application Support/Stata/ado/plus/s
in the terminal.

But usually Stata creates the paths by itself. You should have write permissions for the folder. You can check this by navigating to the folder, right click, select 'Get info' and look at the bottom of the appearing box under 'Permissions'. If your user name is not listed, something went wrong...

HTH,
Daniel




On 23 Jul 2008, at 15:25, Nirali Shah wrote:


Thanks Daniel for your advice. This method worked, up to a point. Now, my profile.do runs on startup of stata, which is a major victory!
But when I try to download a user created ado file, such as "lean1.scheme", I get the following error:

cannot write in directory ~/Library/Application Support/Stata/ado/ plus/s

In fact, this folder does not exist yet...but in Windows, the folder used to be created automatically. What must I do to tell the Mac to create this folder?

I appreciate it.
Nirali



Hallo Nirali -

I have my profile.do in the same directory as Stata.app. It reads:

sysdir set OLDPLACE "~/Library/Application Support/Stata/ado/"
sysdir set PLUS "~/Library/Application Support/Stata/ado/plus/"
sysdir set PERSONAL "~/Library/Application Support/Stata/ado/ personal/"

set memory 32m


When I type sysdir, I get:

. sysdir
STATA: /Applications/DanielApps/Stata/
UPDATES: /Applications/DanielApps/Stata/ado/updates/
BASE: /Applications/DanielApps/Stata/ado/base/
SITE: /Applications/DanielApps/Stata/ado/site/
PLUS: ~/Library/Application Support/Stata/ado/plus/
PERSONAL: ~/Library/Application Support/Stata/ado/personal/
OLDPLACE: ~/Library/Application Support/Stata/ado/

Hope this helps...

Daniel

Am 22.07.2008 um 21:22 schrieb Nirali Shah:


Hi,
I am using Stata 9 with my new Mac.  I want to permanently change
where new .ado files are downloaded and stored, and to have a
profile.do start each time I start Stata.

Currently, when I type -sysdir-, I see:
STATA:  /Applications/Stata/
UPDATES:  /Applications/Stata/ado/updates/
 BASE:  /Applications/Stata/ado/base/
 SITE:  /Applications/Stata/ado/site/
 PLUS:  ~/ado/plus/
PERSONAL:  ~/ado/personal/
OLDPLACE:  ~/ado/

I can change the paths for PLUS and PERSONAL using:
sysdir set PLUS "/Applications/Stata/ado/plus/" and
sysdir set PERSONAL "/Applications/Stata/ado/personal/", but when I
restart Stata, these directories revert to that above.  How do I
make my directory change permanent?

In a related question, I thought I could create a do file which
would run automatically when I start Stata.  I saved it in "/Library/
Application Support/Stata", but this does not seem to work either.

Any assistance for a new Mac and statalist user is appreciated.
Nirali
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/





*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index