Install Packages in Racket

I installed DrRacket, the full version is not minimal, but I have no packages.

When I run this code:

#lang racket

(provide (all-defined-out))

(require rsound)

(play ding)

This gives me this error:

standard-module-name-resolver: collection not found
  for module path: rsound
  collection: "rsound"
  in collection directories:
   C:\Users\Theodor\AppData\Roaming\Racket\6.3\collects
   C:\Program Files\Racket\collects
   ... [161 additional linked and package directories] in: rsound
  no packages suggestions are available .

In "collects" I have only "catalog.sqlite".

How to install packages for DrRacket? "Updates directory" does not work. Other similar questions did not help.

+4
source share
1 answer

Posted by rsound here. Yes, liweijian is correct, you need to install the package. There are two ways to do this:

  • In DrRacket, go to “File> Package Manager ...” and enter “rsound” in the “do what I mean” box.

  • Or, on the command line, run

    raco pkg install rsound
    

, - !

+7

Source: https://habr.com/ru/post/1624767/


All Articles