Re: [racket-users] raco pkg for a one-directory, moveable installation

2022-08-09 Thread [email protected]
Thanks, that fixed it - I had set up  a script to do this a while ago but 
lost it, 
and forgot that this was in there. 

On Monday, August 8, 2022 at 10:24:11 PM UTC-4 Philip McGrath wrote:

> Hi,
>
> On Mon, Aug 8, 2022, at 5:46 PM, [email protected] wrote:
> > Hello all
> > 
> > I'm trying to generate an installation that is self-contained, that I 
> can move to another machine just by tar-untar or zip-unzip.
> > 
> > The target machine may never be connected to the internet, so if I want 
> to install packages I must follow this procedure. 
> > 
>
> I would suggest running:
>
> ./bin/raco pkg config -i --set default-scope installation
>
> Setting the default scope to `installation` will cause commands like `raco 
> pkg install` to install packages in the "pkgs" directory of your 
> self-contained installation, rather than putting packages in a 
> user-specific place by default.
>
> (The more general `--scope` option is tricky to use correctly: I would 
> think of it as a hook for higher-level tools.)
>
> -Philip
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/11ccb897-b418-46e0-bfb4-eaa5c6caf793n%40googlegroups.com.


Re: [racket-users] raco pkg for a one-directory, moveable installation

2022-08-08 Thread Philip McGrath
Hi,

On Mon, Aug 8, 2022, at 5:46 PM, [email protected] wrote:
> Hello all
> 
> I'm trying to generate an installation that is self-contained, that I can 
> move to another machine just by tar-untar or zip-unzip.
> 
> The target machine may never be connected to the internet, so if I want to 
> install packages I must follow this procedure. 
> 

I would suggest running:

./bin/raco pkg config -i  --set default-scope installation

Setting the default scope to `installation` will cause commands like `raco pkg 
install` to install packages in the "pkgs" directory of your self-contained 
installation, rather than putting packages in a user-specific place by default.

(The more general `--scope` option is tricky to use correctly: I would think of 
it as a hook for higher-level tools.)

-Philip

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/dd82c2f0-af52-41d4-8231-2cd659389f62%40www.fastmail.com.


[racket-users] raco pkg for a one-directory, moveable installation

2022-08-08 Thread [email protected]
Hello all

I'm trying to generate an installation that is self-contained, that I can 
move to another machine just by tar-untar or zip-unzip.

The target machine may never be connected to the internet, so if I want to 
install packages I must follow this procedure. 

This command 
.\raco pkg install  --scope-dir ../PKGS 

fails with this message:
raco pkg install: cannot link a directory that overlaps with a collection 
path
  collection path: C:\sks\bin\rkt85\collects\
  link path: C:\sks\bin\rkt85\
  as package: rkt85

Any suggestions on how to proceed? 

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/a031a5df-f85e-4942-8cbd-247d990ef435n%40googlegroups.com.