Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Package installation

    Dear All,
    I have this error message when attempting to install a package:

    package name: st0085_2.pkg
    from: http://www.stata-journal.com/software/sj14-2/

    checking st0085_2 consistency and verifying not already installed...
    cannot write in directory c:\ado\plus\_
    .

    Any help is welcome.

    Thanks,
    Dapel

  • #2
    Sounds like you don't have write privileges to C:\ado\plus , which is the default location where ssc install writes to. You can set a different directory by running
    Code:
    sysdir set plus "//folder//you/can/write/to"
    before running ssc install. If you have write credentials to stata's installation location, you can save a script called 'profile.do' with the above sysdir set command so that ssc install writes to your new location by default.

    Comment


    • #3
      Thanks Apoorva. I got stuck here:
      Code:
      sysdir
         STATA:  C:\Program Files (x86)\Stata13\
          BASE:  C:\Program Files (x86)\Stata13\ado\base\
          SITE:  C:\Program Files (x86)\Stata13\ado\site\
          PLUS:  c:\ado\plus\
      PERSONAL:  c:\ado\personal\
      OLDPLACE:  c:\ado\
      Code:
      
      

      Any more help?

      Dapel

      Comment


      • #4
        Old thread but in case it helps someone else (or future me): The method above work but "plus" must be upper case.
        This works when you are forced to work on a remote server with tight security and therefore cannot write to C:\ (as I am).

        Code:
        //view your system directories
        sysdir 
        
        //change PLUS to your folder
        sysdir set PLUS "U:/My Documents/ado"
        
        //install
        ssc install whatever
        
        //CHANGE PLUS BACK
        sysdir set PLUS "c:\ado\plus"
        
        //don't forget to add the target folder to ado path 
        adopath +"U:/My Documents/ado"

        Comment

        Working...
        X